Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Runtime error after page reordering

Started by grund 6 years ago · 0 replies · 729 views
6 years ago

When i reorder pages in the admin panel (Advanced Tab) i get a Runtime error as Grav can't find the image related to the page anymore. This only happens with the hoster (Apache) but not local with php -S. Experienced in 1.7.6 and 1.7.12

TXT
An exception has been thrown during the rendering of a template 
("exif_imagetype(/var/www/virtual/username/html/user/pages/01.pagename/01.childpage/image.png):
failed to open stream: No such file or directory").

Related to this template line.

TWIG
{{ child.media.all|first.cache.html|raw }}

After i clear the cache everything works fine again but can't it reproduce locally. Is this normal behavior, an error by me or possibly the hoster?

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by DrPen, 6 days ago
4 117 4 days ago
Installation & Hosting · by vollstock, 3 weeks ago
3 221 3 weeks ago
Installation & Hosting · by David, 7 years ago
3 3508 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
3 345 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
0 269 1 month ago