Jump to content

Solved - Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)


Recommended Posts

My Prestashop v9.0 website has just moved from CentOS 8 to Almalux 8.

I get a white screen when I go to the first checkout page. When I turn on debug I get the following error:

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /home/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 291

Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 40960 bytes) in Unknown on line 0

I do not get this error on my v9.0 staging site. I cannot see any difference between the two.

Anybody got any suggestions?

Edited by skinnybloke
Issue solved (see edit history)
Link to comment
Share on other sites

As per the error, Issue with the PHP memory allowed.

Go to Backoffice -> Advanced Parameter -> Information & check the memory Limit of the server. 

image.png.20f6431a57fd60d8ef4d1199a0ed6fd0.png

 

Need to increase the same from the hosting. Check with the hosting to increase the same. 

 

Even if the memory limits are the same on both the servers, issues can appear based on the data size, modules etc.

 

 

Link to comment
Share on other sites

2 hours ago, Knowband Plugins said:

As per the error, Issue with the PHP memory allowed.

Go to Backoffice -> Advanced Parameter -> Information & check the memory Limit of the server. 

image.png.20f6431a57fd60d8ef4d1199a0ed6fd0.png

 

Need to increase the same from the hosting. Check with the hosting to increase the same. 

 

Even if the memory limits are the same on both the servers, issues can appear based on the data size, modules etc.

 

 

The memory limit shows as 1G in the back office, php.ini and the MultiPHP INI Editor in WHM

Link to comment
Share on other sites

  • skinnybloke changed the title to Solved - Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes)

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...