Fatal Error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 30720 bytes)

Modified on Tue, 23 Jan 2024 at 08:54 PM

Your host's current memory allocation isn't sufficient for the process you're trying to accomplish. This often leads to errors and can hinder website functionality.


Solution:

  1. Increase Memory Limit in php.ini:

    • Locate the php.ini file on your server (the location varies depending on your hosting environment).
    • Find the line memory_limit and increase the value. For example, change it from memory_limit = 64M to memory_limit = 128M or higher, depending on your needs.
    • Save the changes and restart your web server.
  2. Contact Your Hosting Provider:

    • If you're unable to change the php.ini file or if the issue persists, contact your hosting provider. They can increase the memory limit or suggest an alternative solution.

  3. Resources for Assistance:

Note: Be cautious when editing the php.ini file or any server configuration file. Incorrect settings can disrupt your website's functionality. If unsure, seek assistance from a professional.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article