Hi,
I have my ZenPhoto gallery hosted on 1and1 and it was working perfectly fine since the beginning. It was using php 5.2.17, but now 1and1 requests to upgrade the php version.
I tried to move to php 5.5.16, and all is still working fine, except the fact the thumbnails are not generated anymore.
I thought it was a memory_limit error, but it seems it's not the case, since the memory limit displayed in the ZenPhoto BO is even greater in the new setup (120M against 96M with php 5.2.17).
The php GC library bundle version changed from 2.0.34 to 2.1.0.
Nothing else changed.
I have nothing into the debug.log file.
I will try to contact 1and1 but honestly I don't think that their customer service will be very helpful.
Did anyone already have this issue ?
Thanks a lot by advance for your help.
Regards.
Comments
I forgot to say that I'm using the last version of ZenPhoto 1.4.6.
Regards.
I still have the same issue, but I have investigated further.
Following the user guide (http://www.zenphoto.org/news/problems-with-albums-and-images), I have added the debug parameter at the end of the image URL used to generate the thumbnail, and I have the following error :
------------------------------------------------------------
Image filesize: 6447963
Debug i.php | Arguments:
size = 800
width =
height =
cw = 0
ch = 0
cx =
cy =
quality = 85
thumb =
crop =
Fatal error: Out of memory (allocated 84410368) (tried to allocate 5184 bytes) in /homepages/[...]/photos/zp-core/lib-GD.php on line 91
------------------------------------------------------------
So it seems that real PHP memory limit is around 80M, and not 120M as displayed in the ZenPhoto back-office. I tried to increase the memory limit thanks to a php.ini file, but it seems it doesn't work, even if the 1and1 documentation is saying that it should work (https://assistance.1and1.fr/hebergement-c65619/programmation-c65626/php-c65653/creer-un-phpini-a703435.html). => I will contact my hosting provider and ask for some support.
Other point, my image has dimension 5184 x 3456. I tried to reduce the size of the image step by step, and the thumbnail is generated for an image 4941 x 3294 (and below, of course).
So at the end of the day, if I can't increase the PHP memory limit, I'm afraid that the only solution I have is to reduce the size of my images. The very weird thing is that the thumbnails were generated correctly with php 5.2 for the same image size, and now with php 5.5 it doesn't work anymore... "Please migrate to php 5.5 for better performances" said my hosting provider :-)
Regards.
There is a difference which graphics libary on the server is active. GD needs more memory than Imagick. The latter is less common on shared hosts though (I bet 1and1 does not provide it).
If you are on a normal shared hoster - which I assume - you are for sure not allowed to change any memory limit at all. That is why Zenphoto reports regarding it that "your server may allocate less".
If your server behaves differently with an newer php version something is not right with the server configuration. That is something only your host can check.