Member
Member
rjpedrosa   2014-05-29, 18:57
#1

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.

Administrator
Administrator
acrylian   2014-05-29, 19:05
#2

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.

Member
Member
rjpedrosa   2014-05-29, 19:20
#3

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

Member
Member
rjpedrosa   2014-05-29, 19:36
#4

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]

Administrator
Administrator
acrylian   2014-05-29, 19:55
#5

Please try a database refresh (button on admin main page) and clearing the image cache. Could be the file system being out of sync.

Member
Member
rjpedrosa   2014-05-29, 20:45
#6

Done the database refresh with no luck.
How do I clean the image cache?

Member
Member
rjpedrosa   2014-05-29, 20:56
#7

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.

Administrator
Administrator
acrylian   2014-05-29, 21:19
#8

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.

Member
Member
rjpedrosa   2014-05-29, 21:28
#9

Image cache clearance did not work...

Member
Member
rjpedrosa   2014-05-29, 21:51
#10

Re-upload did not work too...

Administrator
Administrator
acrylian   2014-05-29, 22:21
#11

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

Member
Member
rjpedrosa   2014-05-29, 22:55
#12

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?

Administrator
Administrator
acrylian   2014-05-30, 07:55
#13

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.

Member
Member
rjpedrosa   2014-05-30, 11:49
#14

Already contacted my host regarding this issue. Will keep you updated.
Thank you very much for all your help. You've been very useful.

Member
Member
rjpedrosa   2014-05-30, 11:59
#15

Server admins have now added JPEG support to GD, and everything is running smoothly.
Many thanks again!

Administrator
Administrator
acrylian   2014-05-30, 12:07
#16

You're welcome!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.