Unable to update/install WordPress in Plesk: Allowed memory size of X bytes exhausted

Created:

2016-11-16 13:21:09 UTC

Modified:

2017-08-08 13:41:43 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to update/install WordPress in Plesk: Allowed memory size of X bytes exhausted

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Unable to install WordPress or check WordPress updates in Plesk, the following error is shown:

PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 1966080 bytes) in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/js_composer/config/map.php on line 2352
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1966080 bytes) in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/js_composer/config/map.php on line 2352

In /var/log/plesk/panel.log the following error appears:

PleskUtilException: '/opt/psa/admin/bin/wpmng' '--user=collage' '--' '--path=/var/www/vhosts/example.com/httpdocs' 'core' 'info' '--format=json' '--check-updates=true' failed with code 255.

Cause

Too low memory_limit value is set in PHP configuration files.

Resolution

  1. Increase memory_limit value in two PHP configuration files. For example:

    [root@server ~]# grep 'memory_limit' /etc/php5/cgi/php.ini
    memory_limit = 128M

    [root@server ~]# grep 'memory_limit' /etc/php5/cli/php.ini
    memory_limit = 128M
  2. Go to Plesk > Subscriptions > example.com > Websites & Domains > WordPress Installations and click Refresh button.

Have more questions? Submit a request
Please sign in to leave a comment.