Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Runtime error after page reordering

Started by grund 5 years ago · 0 replies · 652 views
5 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 motorambler, 1 month ago
9 654 2 weeks ago
Installation & Hosting · by jeremycherfas, 4 weeks ago
1 319 4 weeks ago
Installation & Hosting · by antoinep, 4 months ago
8 1142 4 months ago
Installation & Hosting · by Jürgen Dietrich, 10 months ago
0 783 10 months ago
Installation & Hosting · by rappluk, 12 months ago
0 820 12 months ago