Wordpress installation shows Cannot redeclare wp_get_server_protocol() error

Created:

2016-11-16 12:45:23 UTC

Modified:

2017-08-08 13:28:50 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Wordpress installation shows Cannot redeclare wp_get_server_protocol() error

Applicable to:

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

Symptoms

  • Domain example.com is running under Word Press installation.

  • The following error in Websites & domains tab for domain example.com:

    PHP Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php:18) in /var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php on line 23 Fatal error: Cannot redeclare wp_get_server_protocol() (previously declared in /var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php:18) in /var/www/vhosts/example.com/httpdocs/wordpress/wp-includes/load.php on line 23

Cause

Unsupported/corrupted Word Press plugin is installed.

Resolution

Disable plugins one by one in /var/www/vhosts/example.com/httpdocs/wp-content/plugins/ to determine which plugin causes the error:

# mv /var/www/vhosts/example.com/httpdocs/wp-content/plugins/test_plugin{,_off}
Have more questions? Submit a request
Please sign in to leave a comment.