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

Grav can't create cache image

Started by Muut Archive 9 years ago · 2 replies · 712 views
9 years ago

Hi,

In my theme if I enable cache for images, like this:

TWIG
{{ page.media.images[image].cache.url() }}

Grav creates a fallback.jpg image with the red text "Error" for every image.

If I disable cache:

TWIG
{{ page.media.images[image].url() }}

The images are shown correct as normal.

The site is hosted on Digital Ocean and GD is installed and enabled:

TXT
GD Support: enabled
GD Version: bundled (2.1.0 compatible)
GIF Read Support: enabled
GIF Create Support: enabled
PNG Support: enabled
libPNG Version: 1.2.49
WBMP Support: enabled
XBM Support: enabled

Do you have any suggestions to fix this? Thanks!

9 years ago

Thank you for your reply, I already asked the site owner to check the permissions but it didn't help, so he decided to move to a different hosting provider

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1328 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago