What would cause this error? E_WARNING: exif_read_data(upload_OEkvSF): Illegal IFD size

6 posts by 2 authors in: Forums > CMS Builder
Last Post: September 26, 2018   (RSS)

By Codee - September 21, 2018

Just got this warning and haven't duplicated it, but it was recent:

Sep 21st, 2018 - 01:53:34 PM
E_WARNING: exif_read_data(upload_OEkvSF): Illegal IFD size
/home/xxsiteinfoxx/public_html/CMSBAdmin271/lib/image_functions.php (line 177)
https://sitename.com/CMSBAdmin271/admin.php

Is this familiar to anyone here? Thanks in advance.

Hi equinox,

This is a bug we're aware of - the error itself is relatively benign, and is caused when uploading images that were created or compressed in certain ways. We are working on a more permanent fix, but in the meantime, you can silence this error by adding an "@" to line 177 in /cmsb/lib/images_functions.php, which should look like this:

$exif = @exif_read_data($imageFilePath);

Let me know if you have any further questions!

Thanks,

Daniel
Technical Lead
interactivetools.com

By Codee - September 25, 2018

Understood, Daniel. It would be nice (or helpful) to know when the bug is fixed permanently.  thank you kindly!

Hi equinox,

In this specific case, there is very little danger in turning off the error. It relates to reading data from an uploaded image to see if it should be rotated (e.g. a photo taken in portrait may have the orientation saved to it by the camera), so the theoretical worst case scenario is that this rotation does not happen. However, this error doesn't specifically indicate a problem (the rotation might still work even after an error here, and the error can show up on images that don't need to be rotated) - so it's not very helpful for users to see it.

Thanks,

Daniel
Technical Lead
interactivetools.com

By Codee - September 26, 2018

Thanks for the clarifying, Daniel.