- Plesk for Linux
- Plesk for Windows
WordPress instance in WordPress Toolkit is shown as "Broken instance of "example.com" at /wp-directory"
The following error shows on the administrative WordPress page in Plesk:
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
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.
Login to Plesk and go to Domains > example.com > File Manager and find
httpdocs\wp-config.phpfile. Click edit remove the following string:
- Synchronize WordPress instance with Plesk in WordPress Toolkit > click at "/httpdocs" of broken instance > Refresh.