[Zen Cart] Cannot allocate memory

Magic SEO URLs for Zen Cart.
trupit
Posts: 24
Joined: Sun Mar 01, 2009 2:05 pm
Contact:

[Zen Cart] Cannot allocate memory

Postby trupit » Mon Jun 03, 2013 4:52 pm

Hi J,

Could you tell to me if the new version of SEO require more memory? Sometime, I got the error message below, the support team for my website provider tell to me, did I added a plugins?

Code: Select all

Error:
Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/owallyco/public_html/pechesud/index.php


http://www.pechesud.com
Version of Zencart: 1.39H
Magic SEO URLs for Zen Cart v1.3.x/1.5.x 4.1

Actually my PHP configuration is:

Code: Select all

Resource Limits    max_execution_time       60
Resource Limits    max_input_time       180
Resource Limits    memory_limit       512M
Data Handling    register_globals    You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of.    Off
Language Options    safe_mode       Off
File Uploads    upload_max_filesize    Maximum allowed size for uploaded files.    128M

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby inveo » Mon Jun 03, 2013 6:48 pm

No. MSU have a very tiny memory requirements and new version released recently is even more optimized regarding memory consumption. I guess it is some RegExp inside Zen Cart what is causing this error message.

trupit
Posts: 24
Joined: Sun Mar 01, 2009 2:05 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby trupit » Tue Jun 04, 2013 5:29 pm

Hi J,

What do you mean per "some RegExp inside Zen Cart what is causing this error message", could you explain it to me? I validate in the ressource usage on my cPanel, I got these message when I reach 2 gig of memory usage. I really don't understand what PHP module could cause this memory usage, I didn't update nothing, except add some new products.

Need help !

Thanks

Peter

trupit
Posts: 24
Joined: Sun Mar 01, 2009 2:05 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby trupit » Tue Jun 04, 2013 6:02 pm

Also, I don't understand why my php.ini parameters in /public_html/pechesud/cgi-bin is not loaded. I fixed the memory_limit to 90Meg and when validate it with www.pechesud.com/phpinfo.php is 512 Meg.

I tried to move it to the root directory of www.pechesud.com, but I have a error from SEO.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby inveo » Tue Jun 04, 2013 7:36 pm

trupit wrote:I tried to move it to the root directory of http://www.pechesud.com, but I have a error from SEO.


Please make sure you've re-generated the .htaccess file.

trupit
Posts: 24
Joined: Sun Mar 01, 2009 2:05 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby trupit » Tue Jun 04, 2013 7:42 pm

I don't want make any error, how I should do it?

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby inveo » Tue Jun 04, 2013 7:48 pm

Please follow instructions for re-generation. they are in the manual (backup your old .htaccess file).

trupit
Posts: 24
Joined: Sun Mar 01, 2009 2:05 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby trupit » Tue Jun 04, 2013 8:03 pm

I followed the instruction and it's .htaccess was regenerated. But If I try to place the php.ini file in pechesud directory and regenerate, I receive this message in my store page:

Magic SEO URLs were not initialized because required Zend Guard Loader is not installed.
Zend Guard Loader is available without charge at www.zend.com/en/products/guard/downloads.
Inveo s.r.o. can assist you with Zend Guard Loader installation on both shared and dedicated servers. Please contact us in this case.

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby inveo » Wed Jun 05, 2013 5:17 pm

It is because when custom php.ini file is loaded zend_extension directive is not applied. You need to copy that line from original php.ini file or upload your own Zend Optimizer/Zend Guard Loader and set the path to new location.

trupit
Posts: 24
Joined: Sun Mar 01, 2009 2:05 pm
Contact:

Re: [Zen Cart] Cannot allocate memory

Postby trupit » Wed Jun 19, 2013 6:17 pm

Finally I found the problem. Too much youtube video has been embed inside my Zencart product pages, consuming all physical memory on the server. (<iframe></iframe>)

Thanks for your help