Colonel_mortis Posted January 2, 2023 Posted January 2, 2023 I have some gallery images that are failing to load with Quote [[Template gallery/front/view/imageFrame is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] even on the default theme. In the DB the image_notes column is serialized using PHP serialization rather than JSON: a:1:{i:0;a:6:{s:2:"id";s:32:"f8ea194da97843715f1a41ceae34e3a9";s:3:"top";i:343;s:4:"left";i:76;s:5:"width";i:52;s:6:"height";i:52;s:4:"note";s:42:"Crucial M55 and 8GB of Corsair Vengeance. ";}} which throws off the deserialization in \IPS\gallery\Image::get__notes and subsequently the \count( $image->_notes ) in imageFrame.phtml. This seems to be the case for all of the images with an image_date value prior to Jan 2016 (when we upgraded from IPB 3.x to IPS 4.x) that have a non-empty image_notes column. I am fixing them manually for my site, although it's definitely not a high priority issue because it has presumably been an issue for years.
Daniel F Posted January 2, 2023 Posted January 2, 2023 Thanks. The issue with the broken images when json decoding fails was fixed for the next release, but we haven't noticed the issue with the serialized data from IPB3.x. I have logged that to our bug tracker.
Marc Posted January 10, 2023 Posted January 10, 2023 This has now been resolved in our latest 4.7.6 release. Please upgrade to that release if you are seeing this issue. If you have the same problem after upgrading, please let us know.
Recommended Posts