Hello,
I have just upgraded to 5.3. I have been experiencing PHP memory errors since before the upgrade.
My previous solution was to increase the amount of memory that a PHP script can use, and to turn off the 'Resize if image is larger than allowed dimensions' option in the admin panel.
In 5.3, it seemed to fail with that error even after I had set the above option to 'no'. In image-inc.php (function resize_jpeg), this line fails, even if i set that option to 'no':
Code:
Content visible to verified customers only.
The call to this function that appears to break it is in uploadphoto.php:
Code:
Content visible to verified customers only.
The function create_thumb contains no check to see if the large image shoudl be resized or not. What I did to keep that memory error away is to change the following in create_thumb from this:
Code:
Content visible to verified customers only.
To this:
Code:
Content visible to verified customers only.
This has gotten rid of the ugly php error in favor of a PhotoPost error, but I don't know enough about PHP to know if i have accidentially broke somethign else. As well, I'd love to know what's wrong, whether it's something in my installation, or if it's a bug.
The problem that I would like information on is that PhotoPost appears to resize images regardless of the setting of the option mentioned above. Whether it is creating the images, or just not exiting out of the script correctly i'm not sure.
Has anyone else experienced this problem? Do you have any information that would help me to fix it?
Thanks in advance!
EDIT: I got so wrapped up in my above question, I forgot to ask about my second problem:
We are posting images no larger than 600 x 750. When a single file is posted, it works fine. When more than 1 file is posted (if I set the files to upload setting to, say 2), I get either the php memory error, or with the fix above, the photopost error. Has there been any reported cases of this with multiple uploads? And any suggestions on how to fix?
If you need more informaton, please let me know!