WordPress installation fails with error: PHP Fatal error: Call to undefined function apply_filters()

Created:

2016-11-16 12:49:41 UTC

Modified:

2017-07-05 09:07:43 UTC

1

Was this article helpful?


Have more questions?

Submit a request

WordPress installation fails with error: PHP Fatal error: Call to undefined function apply_filters()

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux
  • Plesk 12.5 for Windows

Symptoms

Wordpress installation fails with an error:

PHP Fatal error: Call to undefined function apply_filters()

The following error is shown in Hosting panel or can be found in %plesk_dir%admin\\logs\\php_error.log on Windows-based installation:

PHP Fatal error: Call to undefined function apply_filters() in /var/www/vhosts/example.com/httpdocs/wp-includes/load.php on line 317

Cause

plesk-wp-cli utility is not updated.

Resolution

  1. Check the utility version:

    # rpm -qa | grep wp-cli
    plesk-wp-cli-0.23.0-centos6.16080218.noarch
  2. Install the latest micro-updates:

    # /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --upgrade-installed-components --reinstall-patch
  3. Ensure that the utility is updated:

    # rpm -qa | grep wp-cli
    plesk-wp-cli-0.25.0-centos6.16113011.noarch

If the issue persist after performing steps from above, and the latest version already installed, remove the plesk-wp-cli package and reinstall the latest micro-updates anew:

  1. # rpm -e plesk-wp-cli-0.25.0-centos6.16113011.noarch --nodeps
  2. # /usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --upgrade-installed-components --reinstall-patch

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