Fixing the Allowed memory size exhausted error Print

  • php
  • 74

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.

Was this answer helpful?

« Back