HTTP 500 error - php_memory_limit ?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
fxv_cms
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 03, 2008 7:47 am

HTTP 500 error - php_memory_limit ?

Post by fxv_cms »

Hello,

After having successfully testing my website in 'local', I put it on my provider's [AMEN.fr] server, where I get for many pages, but not all a "HTTP 500" error. But, generally, when I do a refresh (F5), the page is correctly displayed.

After looking at some posts on this forum, I increased the memory limit in config.php, up to 256M :
$config['php_memory_limit'] = '256M';

but the problem continues.

Does anyone know how to prevent the HTTP 500 error ?

I run CMS 1.4.1

Example of page which returns the HTTP 500 error and is displayed correctly after refresh :
http://tinyurl.com/696ne3

and many other pages on the same site.

Thank you for your help

François
alby

Re: HTTP 500 error - php_memory_limit ?

Post by alby »

fxv_cms wrote: $config['php_memory_limit'] = '256M';
you set this but you have this memory?
Look to system information because I read:
Fatal error: Out of memory (allocated 37224448) (tried to allocate 194561 bytes) in /web/sites/vhbu3/2/184/109442/public/www/tmp/templates_c/%%67^679^67942640%%template%3A30.php on line 150

and check your error server logs

Alby
fxv_cms
Forum Members
Forum Members
Posts: 13
Joined: Wed Sep 03, 2008 7:47 am

Re: HTTP 500 error - php_memory_limit ?

Post by fxv_cms »

Thanks Alby,

The value was initially blank for php_memory_limit in my config.php
I successively increased the value to 32M,then 64M, then 128M, then 256M, but results did not improve really.
As to know if I "have this memory" and analyse the log, I am frantically looking into the jungle of provider's site to know the answer !

However, what is strange is that the page is correctly displayed after a refresh (F5). Why ? I don't know. Maybe that would help to solve th problem.

François
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: HTTP 500 error - php_memory_limit ?

Post by Nullig »

Generally, 500 errors are the result of servers that are incorrectly configured or overworked. Your hosting provider should be able to determine the problem from their error logs.

You should contact them to resolve the issue.

Nullig
Locked

Return to “CMSMS Core”