Fatal error: Allowed memory size of 33554432 bytes exhausted

General Viewed: 2051

When you get a allowed memory size exhausted error you need to increase your php memory_limit value. If you’re allowed to edit the PHP.ini file, update your memory_limit in PHP.ini by modifying the below line:

memory_limit = 256M;

If you can not access the php.ini file, try adding the following to your .htaccess file:

php_value memory_limit 256M

OR, if this also does not work, edit wp-config.php file and add the following before the comment thats all Happy Blogging.

define('WP_MEMORY_LIMIT', '256M');
If 256M is not enough, try more (like 512M).

One thought on “Fatal error: Allowed memory size of 33554432 bytes exhausted

  1. Vadim says:

    Hi, I give 1024 MB, but can’t create full catalog, this is error: atal error: Out of memory (allocated 574464000) (tried to allocate 62526144 bytes) in /home/madika/domains/madika.lt/public_html/wp-content/plugins/woocommerce-pdf-catalog/vendor/mpdf/mpdf/src/Writer/BaseWriter.php on line 35
    Can you help?

Leave a Reply

Your email address will not be published. Required fields are marked *