exif_imagetype() in functions.php on line 2494

edited November 5 in General support

I just wanted to share this quick workaround for anyone else that may run across a similar issue. It is not a fix, just a workaround for now, but I thought it might prove helpful.

After upgrading to 1.6.4, my nothing was showing up album- or picture-wise in the front end and though I could see the album folders and their correct number of pictures, neither the thumbnails or information would show for any picture in any album on the admin side of things. In debug, I was met with:

ERROR: Call to undefined function exif_imagetype() in /../../../../zp-core/functions/functions.php on line 2494

.

Simply going to zp-core/functions/functions.php and removing the complete exif_imagetype() if statement (lines 2494 - 2511 for me) restored complete functionality as far as I can tell.

While this restored functionality, it is not a fix as a warning now appears in the debug log:

WARNING: Undefined variable $rslt in /../../../../zp-core/functions/functions.php on line 2494

read_exif_data_protected called from Image->updateMetaData (class-image.php [370])

from Image->__construct (class-image.php [69])

from Image::newImage (class-image.php [117])

from AlbumBase->getAlbumThumbImage (class-albumbase.php [571])

from printAlbumThumbImage (template-functions.php [1877])

from include (index.php [87])

from include (index.php [128])

from index.php [79]

which, I know isn't a huge deal, but it is extra strain of the server and isn't great. I may go through and edit each of these, but for now I think I will take a break from this project for a bit and wanted to share this (not so great, but functional) workaround incase it would benefit someone else. Happy coding!

Comments

Sign In or Register to comment.