When building a new website, or adding new themes/plugins/modules in to an existing website, you may come across the following error on your website:

Fatal error: Allowed memory size of X bytes exhausted (tried to allocate X bytes) in /home/X/public_html/wp-includes/plugin.php on line XX

What this error means is that the plugin (for example) plugin.php requires a certain amount of PHP memory to function correctly, but that this requirement is above the amount allowed on the account. To fix the above error on your website you can update your php.ini file from your cPanel:

 

  • Log in to your LetsHost client area and click on Services > My Services
  • You will see your products/services listed out here. Click on Active beside your hosting package
  • On the menu on the left, click on Login to cPanel
  • Once logged in to your cPanel control panel, click on the icon for File Manager
  • Navigate to your public_html folder
  • Right click on your php.ini file (or create one if its not there) and click Code Edit
  • Add the following and click Save: memory_limit = 64M

64MB is the limit on PHP memory on our Starter hosting plans. Should your website require more than this, you can upgrade to a higher plan. Our Business Hosting plans allow for up to 256MB PHP memory, WordPress hosting plans up to 512MB and Enterprise plans up to 1GB PHP memory. We do not impose any such limit on our Irish VPS server plans.

If you require further information/assistance on this, please submit a ticket and a member of the team will be happy to assist further.