Same thing happening for me, with same versions.
It doesn’t happen with all images, in my case the problem was with an old PNG, created with Adobe ImageReady (or at least that’s what was in meta).
A custom error handler could filter out these error messages, but it seems like overkill for the issue.
The logo for the CustomSearch extra causes this error message every time the page is loaded, yet the image looks fine. Is there some good reason that MODX is pulling exif information for every image, even though it’s likely that some images will cause this error message?
It’s not just with old images. PNGs generated with current versions of Photoshop and Affinity software produce the same error. Images displayed on the front end don’t generate the error for me; it seems confined to viewing images in the Media Manager.
I’m having this same issue on 3.0.5-pl. I’m using a lot of .webp images and every visit to the media browser generates a few dozen errors in the log. How do I suppress these? The log is filling up and it makes it hard to find errors I should actually be paying attention to.
You can modify the media source class file if you don’t need exif data.
The file is core/src/Revolution/Sources /modMediaSource.php.
Around line 2260.
If you add false && to the beginning of the line above, the exif code will never run and the errors should stop.
if (false && function_exists('exif_read_data')) {
I see there’s an error suppression @ sign in the code, which should suppress the error, but it’s been there for three years so it’s clearly not working.
I’m not sure what the side effects of the fix would be, but it seems likely that the height, width, and orientation are already correct at that point, so it should have no effect. I could be wrong.