Site icon Manarty | Your Technology lighthouse

Fatal Error: Allowed Memory Size of – Fix Allowed memory size exhausted with WordPress and php

To fix a fatal memory error in PHP when using WordPress on Windows (such as “Allowed memory size exhausted”), you need to increase your PHP memory limit. This issue happens when your website needs more memory than your server or PHP settings allow.

Edit wp-config.php:

define('WP_MEMORY_LIMIT', '256M');

Save and close the file. This raises the PHP memory limit to 256 megabytes

Change php.ini (if needed):

memory_limit = 256M
php_value memory_limit 256M
Exit mobile version