PeteM
-
Posts
4 -
Joined
-
Last visited
Posts posted by PeteM
-
-
17 hours ago, bsmither said:
Ok.
"allocated 33030144"
This tells me that your PHP is only getting about 32MiB to operate. Whereas, the commands in the file above is suppose to give PHP 256MiB.
In admin, PHP info, scroll to the "Core" table and look for the "memory_limit" values. The value in the middle column is 'local value' (set by a local PHP.INI file, web server .htaccess directives, or PHP statements), and right column is the 'master value' (set by PHP's primary PHP.INI configuration).
If the Core table shows you have 32MiB in the 'local value' column, then, as I understand it, there is a way to disallow any local changes to certain master values - perhaps this is such a case.
Generally, CubeCart can operate at that memory limit, but when trying to work with images, where they can get really huge when PHP's GD image library decompresses already large JPG files, memory will get exhausted.
Using FTP or your hosting control panel's File Explorer, look at the filesizes of images in /images/source/. Try to not have any file larger than 50K.
Thanks. With the ini-custom.inc.php I get:
memory_limit Local Value 256m
memory_limit Core Value 256mWhen I remove the ini-custom.inc.php I get:
memory_limit Local Value 128m
memory_limit Core Value 256mLooking at my images, they are between 18kb and 300kb. Do you think I should compress them?
Incidentally, all the equivalent images in the cache folder are less than <50kb. What are the source images used for, are they used in the store or just the source for the conversion to the images in the cache folder?
-
Thanks Bill. I get the following in my error_log:
[04-Jun-2016 16:12:44 Europe/London] PHP Fatal error: Out of memory (allocated 33030144) (tried to allocate 385 bytes) in /homepages/17/d72034191/htdocs/smartmarine/classes/gd.class.php on line 146
Pete
-
Title says it all really. All other admin functions working but can no longer access the Images / File manager Admin screen to add and update images. Used to work fine but has mysteriously stopped working.
Updated to latest version to see if that would help but has made no difference.
Any idea how I can de-bug the issue?
Thanks.
[Resolved] Admin - Images (File manager) HTTP ERROR 500
in Technical Help
Posted
Bingo! I resized the largest image and uploaded it and it works perfectly now.
Thanks for all you help, I really appreciate it. Enjoy the rest of your weekend.