Plesk

PHP Fatal error: Allowed memory size of X bytes exhausted (tried to allocate X bytes) on WordPress Admin Dashboard

Symptoms

PHP Fatal error: Allowed memory size of X bytes exhausted (tried to allocate X bytes)

Cause

Configuration in wp-config.php restricts available memory for scripts execution

Resolution

1. Connect to the server via SSH

2. Open file /var/www/vhosts/example.com/httpdocs/wp-config.php with any text editor, vi for example, and find memory_limit option

3. Increase memory_limit to fulfill application requirements:

@ini_set( 'memory_limit', '256M' );

Exit mobile version