Fixing the Allowed memory size exhausted error

Not having enough memory can result in errors that look similar to this one:

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

The php memory resource can be increased in the php.ini located in the public_html:

  • Login to your cPanel account
  • Go to the File Manager and open the public_html folder
  • Look for the php.ini file and open it
  • Set the memory_limit to 128M for example

Now visit your site. You shouldn't see the error anymore. 

If you need help making the changes, contact our support team to have them look into the error further.
  • php
  • 74 Users Found This Useful
Was this answer helpful?

Related Articles

Troubleshoot "Call to undefined function: exif_imagetype" error

On new hosting environments it may happen that you get an "Call to udefined function:...

Powered by WHMCompleteSolution