Errors after changing from PHP 5.3 to PHP 5.4 or 5.5

Hi,

Today I changed my server's PHP version to 5.5.12 .
After that, I opened Zenphoto and the setup popped up, and everything went well.
But when opening albums in the admin panel, I get "Notice: Bad filename suffix in newImage()". And no photos are displayed.
The same happens with PHP 5.4.28.

Any help?

Thanks in advance.

Comments

  • acrylian Administrator, Developer
    Could you please post a complete error log entry of that and details about the install (Theme etc, GD or Imagick libary). I did use PHP 5.4 for a long time and for 1.4.6 all on 5.5.9 without having seen this.

    Also try a database refresh and check permissions.
  • I tried to chenge to php 5.4 and now I am getting this error:

    Fatal error: Call to undefined function zp_loggedin() in /srv/disk10/1523626/www/pedrofilipe.pt/zenphoto/zp-core/reconfigure.php on line 110
  • Managed to solve the "Fatal error: Call to undefined function zp_loggedin()" problem by re-uploading files.

    I am using version 1.4.6 and Basic theme.
    GD is enabled, Imagick is disabled.

    Here is a complete error log:

    {30584:Thu, 29 May 2014 19:33:44 GMT} Zenphoto v1.4.6[bbddab76753e1d753a54ead4eb74b41d7d46cf73]
    USER NOTICE: Bad filename suffix in newImage(IMG_7101.jpg) in /srv/disk10/1523626/www/pedrofilipe.pt/zenphoto/zp-core/class-image.php on line 73
    trigger_error called from newImage (class-image.php [73])
    from AlbumBase->getAlbumThumbImage (class-album.php [431])
    from printAlbumEditRow (admin-functions.php [2032])
    from printNestedAlbumsList (admin-functions.php [3519])
    from admin-edit.php [876]
    {30584:Thu, 29 May 2014 19:33:44 GMT}
    USER NOTICE: Bad filename suffix in newImage(20120915_163921.jpg) in /srv/disk10/1523626/www/pedrofilipe.pt/zenphoto/zp-core/class-image.php on line 73
    trigger_error called from newImage (class-image.php [73])
    from AlbumBase->getAlbumThumbImage (class-album.php [431])
    from printAlbumEditRow (admin-functions.php [2032])
    from printNestedAlbumsList (admin-functions.php [3519])
    from admin-edit.php [876]
    {30584:Thu, 29 May 2014 19:33:44 GMT}
    USER NOTICE: Bad filename suffix in newImage(20130208_215733-1.jpg) in /srv/disk10/1523626/www/pedrofilipe.pt/zenphoto/zp-core/class-image.php on line 73
    trigger_error called from newImage (class-image.php [73])
    from AlbumBase->getAlbumThumbImage (class-album.php [431])
    from printAlbumEditRow (admin-functions.php [2032])
    from printNestedAlbumsList (admin-functions.php [3519])
    from admin-edit.php [876]
    {30584:Thu, 29 May 2014 19:33:45 GMT}
    USER NOTICE: Bad filename suffix in newImage(20121013_153444.jpg) in /srv/disk10/1523626/www/pedrofilipe.pt/zenphoto/zp-core/class-image.php on line 73
    trigger_error called from newImage (class-image.php [73])
    from AlbumBase->getAlbumThumbImage (class-album.php [431])
    from printAlbumEditRow (admin-functions.php [2032])
    from printNestedAlbumsList (admin-functions.php [3519])
    from admin-edit.php [876]
    {30584:Thu, 29 May 2014 19:33:45 GMT}
    USER NOTICE: Bad filename suffix in newImage(IMG_0229.jpg) in /srv/disk10/1523626/www/pedrofilipe.pt/zenphoto/zp-core/class-image.php on line 73
    trigger_error called from newImage (class-image.php [73])
    from AlbumBase->getAlbumThumbImage (class-album.php [431])
    from printAlbumEditRow (admin-functions.php [2032])
    from printNestedAlbumsList (admin-functions.php [3519])
    from admin-edit.php [876]
  • acrylian Administrator, Developer
    Please try a database refresh (button on admin main page) and clearing the image cache. Could be the file system being out of sync.
  • Done the database refresh with no luck.
    How do I clean the image cache?
  • I've noticed the DB table "zenphoto_images" only contains 2 images when using PHP 5.4. When I switch back to PHP 5.3, I get all the images in the DB.
  • acrylian Administrator, Developer
    The image cache clearance is a button on the same page.. Enable the cacheManager plugin.

    ZP is file system based so it will take the images in the albums within the root /albums folder. If there are no further errors try a reupload of zp-core. Maybe something else not correctly uploaded.
  • Image cache clearance did not work...
  • Re-upload did not work too...
  • acrylian Administrator, Developer
    Please check that your server is really correctly setup and the graphics libary is installed correctly on the php version.

    See also this older topic:
    http://www.zenphoto.org/support/topic.php?id=116255#post-283588
  • Can you show me your PHP.ini for 5.5?
    You are right. As opposed to version 5.3, my 5.5 version does not show jpeg support on GD. How can I enable it?
  • acrylian Administrator, Developer
    The one I could show you only is the one of my ready made local server package for Mac called MAMP. You could look directly here: http://www.mamp.info/de/

    In general it is not only the php.ini it is also if the PHP packages on the server are compiled the right way. If you manage the server your self and add a new php version that does not necessarily mean the graphics libary of the others is in automatically correctly. But please note I personally have no real knowledge about setting up a server, I always leave that to hosts.
  • Already contacted my host regarding this issue. Will keep you updated.
    Thank you very much for all your help. You've been very useful. :)
  • Server admins have now added JPEG support to GD, and everything is running smoothly.
    Many thanks again!
  • acrylian Administrator, Developer
    You're welcome!
Sign In or Register to comment.