- Plesk for Linux
- Plesk for Windows
- Unable to access the WordPress admin dashboard with the following error:
PLESK_ERROR: PHP Fatal error: Call to undefined function add_filter() in /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1017) : eval()'d code on line 86
- The following line can be found in the Domains > example.com > File Manager > wp-config.php file:
- The WordPress instance example.com is marked as Broken in Plesk > WordPress.
Attempt to apply a filter in
Actions and filters don't work in
wp-config.php because the functions are not defined yet. It does not affect the website, because the entirety of WordPress is loaded before the filter is defined.
- Log into Plesk.
Open wp-config.php file in Domains > example.com > File Manager.
Remove the line below and save the changes:
- Press the Refresh button(highlighted with red color) in Plesk > Domains > example.com > WordPress: