Jump to content

Fatal error: 500 internal server error and Allowed memory size


Karcsixyz

Recommended Posts

Hello. Please help me.

 

I use prestashop 1.5.2 and after payment confirmation throws me the following (payment fails)

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

 

and after switching to news PHP throws me the following:

 

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /hosting/xxxxxxxx/eshop/classes/Configuration.php on line 169

 

 

allocation was increased but still consumes all memory.

 

Please urgently help me..

Sorry about my English.

 

Link to comment
Share on other sites

PHP 5.2 is not how much memory you have allocated, it is the version of PHP you are using.

 

If we assume you have 128mb allocated and you are getting a fatal error due to lack of memory, then you need to increase your memory allocation... try 256mb

Link to comment
Share on other sites

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /hosting/xxxxxxxx/eshop/classes/Configuration.php on line 169

 

One more look. The line 169 contains:

elseif (Configuration::hasKey($key, $id_lang))

Look at ps_configuration and ps_configuration_lang tables for abnormalities. There should be up to 1000 records in these tables and no extra large content in the value field.

Link to comment
Share on other sites

Try
SELECT LENGTH(value) FROM `ps_configuration` WHERE value IS NOT NULL ORDER BY LENGTH(value) DESC

and

SELECT LENGTH(value) FROM `ps_configuration_lang` WHERE value IS NOT NULL ORDER BY LENGTH(value) DESC

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...