Post by ehsancapri » Sat Jul 22, 2017 2:30 am

I'm using opencart 2.3.0.2 and I know many people have seen this issue before.I've never had this issue until yesterday, when i was adding new product and edit its image.
( I didn't install any extension last 2 month)
>>>>
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 29292 bytes) in /home/aapaa/public_html/system/library/image.php on line 26
>>>>

But all of the fixes that have been suggested have not worked so far:
• Change memory limit in php.ini ( root and admin folder)
• Change memory limit in my cpanel 128 to 256
• I spoke to my webhost technician and they changed my memory limit 128 to 256
• I added a line in .htaccess
• Removed all image files bigger than 450 kb.((((all my pictures are less than 40kb.
300x300 Pixel - 72 DPI & save for web- RGB and 8bit.))))
• I restart my php server!
and .....
--------
and as I know 128M is enough for opencart so, why I need more than 256?something wrong?
I will really appreciate it if you can help me.
Thanks.
Image
Image
Last edited by ehsancapri on Sat Jul 22, 2017 7:10 am, edited 1 time in total.

Newbie

Posts

Joined
Sat Jul 22, 2017 2:26 am

Post by artcore » Sat Jul 22, 2017 5:09 am

Try to lessen the dimensions and or bitdepth. The size is not only affecting the amount of memory needed to process the image.

Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: I moved on to Laravel ;D

Thanks!


User avatar
Active Member

Posts

Joined
Tue Jul 09, 2013 4:13 am
Location - The Netherlands

Post by ehsancapri » Sat Jul 22, 2017 7:04 am

I did. all my pictures are less than 40kb.
300x300 Pixel - 72 DPI & save for web- RGB and 8bit.

Newbie

Posts

Joined
Sat Jul 22, 2017 2:26 am

Post by webcorvo » Mon Jul 24, 2017 7:06 pm

you have already fix the problem?

Opencart Developer - For custom work and support contact @ webcorvo@gmail.com


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by ehsancapri » Tue Jul 25, 2017 2:47 am

webcorvo wrote:
Mon Jul 24, 2017 7:06 pm
you have already fix the problem?
Not Yet! Do you have any idea?

Newbie

Posts

Joined
Sat Jul 22, 2017 2:26 am

Post by ehsancapri » Thu Jul 27, 2017 3:30 am

Nobody knows a solution? :-[

Newbie

Posts

Joined
Sat Jul 22, 2017 2:26 am

Post by webcorvo » Fri Jul 28, 2017 1:21 am

try to install a new OC in a test folder

Opencart Developer - For custom work and support contact @ webcorvo@gmail.com


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by ehsancapri » Mon Jul 31, 2017 1:01 am

webcorvo wrote:
Fri Jul 28, 2017 1:21 am
try to install a new OC in a test folder
I installed new oc in a folder and it's working good and I don't have any problem!!! So, something wrong with my opencart not my php-memory limit.correct?
any suggestion?

Newbie

Posts

Joined
Sat Jul 22, 2017 2:26 am

Post by IP_CAM » Mon Jul 31, 2017 6:07 am

Well, by use of GTMetrix.com, a 20product Category Page Load can easy result in short term
Load Use of 200+MBytes, I would have tried 512MB, then, one never run's into a Memory
Problem. But this depends on the Hosting Agreement, and one should try, to use the max.
allowed Server Memory anyway, if one cares for a speedy Shop, when it comes to multiple
Visitors, browsing at the same time.

But I guess, that the Site ROOT Section may be 'controlled' by .htaccess settings, thereby
possibly disabling, what OC requires and asks for.
But it's only an idea - STILL, to have a SHOP running in the ROOT - Section means, NOT to have
anything else on that Site, exept for OC-Shops, to make sure. For Pro's, at least. ;)
Good Luck !
Ernie

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/ - http://www.velomech.ch/cart/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 16 guests