grav icon indicating copy to clipboard operation
grav copied to clipboard

Page Object media exception on filesystem image change

Open daniel-mannheimer opened this issue 6 months ago • 11 comments

With all caches disabled I still get an exception when changing images on the filesystem

An exception has been thrown during the rendering of a template ("exif_imagetype(/html/grav/user/pages/02.products/01.systems/01.default/111-002-1.png): Failed to open stream: No such file or directory").

What I did was deleting 111-002-1.png and adding newimage.png via ftp. After that my macro crashes

(...)
    {% for p in page.children.visible %}
(...)
        <a class="product__image" href="{{ p.url }}">
            {{ p.media.images|first.cropZoom(200,200).html|raw }}
        </a>
(...)
    {% endfor %}
(...)

Seems the page object still holds 111-002-1.png somewhere, even with all Caches disabled.

Any hints on ths?

--> Grav 1.7.46 with PHP 8.1

daniel-mannheimer avatar Aug 22 '24 09:08 daniel-mannheimer