Page 1 of 2

Problem: Blank images + PHP Memory Limit

Posted: 13 Jul 2011, 17:30
by CedricVF
Hi.

I have a problem (maybe 2?) with my PG install. I use an FTP client to upload my images then add them via admin panel, then use "Recreate thumbnails" to get my thumbs. Previously it worked okay so I'm not sure what could have changed.

All added images appear blank in Front and Back end (but appear fine in Media Manager etc) and auto-thumbnail creation won't work.

The errors I get, when auto-thumbnails is Enabled are like:
Fatal error: Out of memory (allocated 20185088) (tried to allocate 14452 bytes) in /home/isigtute/public_html/paperfacephotography.com/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214
I have read the forums/FAQ (and external sites) re: this error and have been in contact with my hosting provider. They have tried different server settings but nothing so far has worked. Host says my PHP memory limit is currently set at 48MB.

My setup for this site is:

Joomla 1.5.22
Phoca Gallery 2.8.0

I have checked CHMOD = 755 for all relevant folders (I tried 777 temporarily but the result was the same). There are no spaces/special characters in the filenames either.

Not sure if these two problems are directly related but they happened at the same time.

Any help would be much appreciated, spent a lot of hours on this so far!

Cheers...

Re: Problem: Blank images + PHP Memory Limit

Posted: 13 Jul 2011, 19:50
by vaxt
Did you find a solution to the problem? Or can someone else help with this. I'm experiencing the same problem and have tried many of the same steps to solve. I can't find any help on forum or documentation. I receive the following error message below. I would appreciate help solving. Thanks. JDT

Fatal error: Out of memory (allocated 65536000) (tried to allocate 4752 bytes) in /home/vaxtmark/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagemagic.php on line 214

Re: Problem: Blank images + PHP Memory Limit

Posted: 13 Jul 2011, 22:39
by CedricVF
No joy yet, mate. I've been on this all week!

Let me know how you get on yourself. If I work it out I'll be sure to post.

Re: Problem: Blank images + PHP Memory Limit

Posted: 14 Jul 2011, 08:22
by Benno
Hi,
see this post viewtopic.php?f=1&t=14763 Perhaps it helps...

Kind regards,
Benno

Re: Problem: Blank images + PHP Memory Limit

Posted: 14 Jul 2011, 18:28
by CedricVF
Cheers, Benno. But when I add "php_value memory_limit 48M" to my .htaccess I get a 500 Internal Server Error error. Any ideas?

I'll forward this info to my host too.

Re: Problem: Blank images + PHP Memory Limit

Posted: 14 Jul 2011, 19:05
by Benno
Hi,
did you check other values eg. 32M ?

Kind regards,
Benno

Re: Problem: Blank images + PHP Memory Limit

Posted: 14 Jul 2011, 20:16
by CedricVF
Apparently only my host can change the PHP mem limit etc. I will ask if they can try 32M.

Is any of the info on this page of any use in determining the problem? http://paperfacephotography.com/info.php

Cheers...

Re: Problem: Blank images + PHP Memory Limit

Posted: 14 Jul 2011, 21:59
by Hababok
Hi, I had same problem. asked server admin to increase my php memory from 32 to 64M, tumb creation now working OK. So increase your memory as much as you can.

Re: Problem: Blank images + PHP Memory Limit

Posted: 14 Jul 2011, 22:20
by CedricVF
They upped it to 64M - same problem. It is not only the thumbnail creation that is the problem, all my added images are blank too (whichever way I upload them).

The error message always says there is 20MB allocated, no matter what they set it as server-side.

This was my last communication from my host:
Given that the script seems unable to allocate memory above 20MB, I'd assume there's something non-functional about it (perhaps it has its own memory limit set somewhere?). At any rate, without a clue from the developers of this script as to what may be causing this I'm uncertain what further adjustments at a server level to make.

Re: Problem: Blank images + PHP Memory Limit

Posted: 15 Jul 2011, 17:45
by Hababok
Hi, In PG Global Parameters: Is your setting for "Maximum size of all user's Images" grater than all your files?