Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Releases

Site Crash after Grav Update - short story

Solved by Werner Joss View solution

Started by Werner Joss 5 years ago · 1 replies · 860 views
5 years ago

so, yesterday I decided to try an Update to grav 1.7 on a local docker clone of my website.
update was done via cli - gpm and directly gave me this at the moment the cache would have been cleared:

TXT
In AbstractFile.php line 417:
Provided data is not a string  
cache [--invalidate] [--purge] [--all] [--assets-only] [--images-only] [--cache-only]

I could then still log into the admin and saw the update had happened, but the site itself crashes (crikey)
and the log gives this:

TXT
Grav System Log Output
Display the 20 most recent entries...
Date    Level   Message
January 21st at 2:36pm  CRITICAL    Provided data is not a string

I then checked with grav yamllinter to be sure the are no syntax errors anywhere and received this:

JS
Yaml Linter
===========
User Configuration
------------------
[OK] No YAML Linting issues with configuration                                                                         
Pages Frontmatter
-----------------
[OK] No YAML Linting issues with pages                                                                                 
Page Blueprints
---------------
[OK] No YAML Linting issues with blueprints                                                                            

I also switched theme (3 installed) to no change.
same after a new update from today to grav v 1.7.1

then I decided to deactivate all plugins one by one and voila:
after deactivating my own plugin ipcount, everything else worked again 😃

so, I'll have to fix this...

this little story is here to just show what can go wrong and eventually how to troubleshoot - have fun 😇

👍 1
5 years ago Solution

so, I found the reason for the crash: Grav 1.7 obviously requires a type cast when storing numeric data to a text file - issue solved 😃

Suggested topics

Topic Participants Replies Views Activity
Releases · by Hugh Barnes, 10 months ago
4 259 9 months ago
Releases · by Karmalakas, 2 years ago
3 301 2 years ago
Releases · by Kai, 3 years ago
3 618 3 years ago
Releases · by P David Cunningham, 4 years ago
2 429 4 years ago
Releases · by INOUE Daisuke, 5 years ago
3 730 5 years ago