If WordPress show a message error “Fatal error: Allowed memory size”, for example to add a picture or installing a new plugin in your wordpress account. This is because you are exceeded memory limit reserved to PHP and you need increase it. I propose different solutions.

Wordpress error "Fatal error: Allowed memory size"

Solution at WordPress error “Fatal error: Allowed memory size”

Login via FTP client (Filezilla for example) to your hosting account and try to solve the problem
with one of the following solutions:

  1. Edit wp-config.php file, the file is in the blog root folder and add at the end define(‘wp_memory_limit’,’XXM’); where XXM is the amount of memory you need:

    If you don’t solve the problem, try with define(‘WP_MAX_MEMORY_LIMIT’, ‘XXM’)
  2. Edit .htaccess file, this file is in the blog root folder (probably hidden)
    and add the code line php_value memory_limit XXM:
  3. Try to increase a memory specified in the default-constants.php file,
    this file find it in wp-includes folder. Edit line 9 where in the example
    is define(‘WP_MEMORY_LIMIT’, ’48M’); and especified increasing the memory you need:

    If your wordpress install is multisite, then modify line 7 where in the example is define(‘WP_MEMORY_LIMIT’, ’64M’);