• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Xavier12

Regular Pleskian
Hey guys,

It seems that a recent update may have affected the Wordpress toolkit on our end. Most sites are not connected/synchronized and show either a "Decoding failed: Syntax error" error, or a bunch of php. Here is a snippet of the php issues below:

{"err_code":40002,"err_message":"Unable to locate configuration path"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40002,"err_message":"Unable to read configuration file: "}

Tried restarting service such as psa, mysql, php, nginx and apache.. even rebooted the system. Nothing seems to work.

Please advise, thanks.
 
@Xavier12

First, have a look at the contents of the wp-config.php file of some WP instances: specific define() functions are not supported by WPT and/or will cause an error when using WPT.

For instance, "sloppy" plugins like W3TC tend to put some "code inserts" at random or improper places, in many files (including the wp-config.php file).

Second, try to find "not really normal" locations (i.e. paths) of the wp-config.php file: for instance, have a look at the WP instances, installed in a subdirectory.

Anyway, the problem seems to be more general, in the sense that it seems to be the case that all WP instances are affected.

Is that correct? If true, than we have to look in more detail.

Please provide some specific information about the number of WP instances affected, what distinguishes them from not affected WP instances and so on.

Regards.......
 
Hi Trialotto,

Thank you for the response, appreciate your feedback. Out of 20, about 4-6are affected. One with the "decoding failed" was fixed when disabling a coming soon plugin that was enabled. Hare are errors for two different ones. These two do not have extra define options in wp-config.php.

{"err_code":40002,"err_message":"Unable to locate configuration path"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40002,"err_message":"Unable to read configuration file: "} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40003,"err_message":"Unable to read or execute files from wp-admin\/includes directory': \/var\/www\/vhosts\/domain.com\/httpdocs\/wp-admin\/includes"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40004,"err_message":"Unable to read or execute files from wp-includes directory: \/var\/www\/vhosts\/domain.com\/httpdocs\/wp-includes"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40005,"err_message":"Unable to read or execute files from wp-content directory: \/var\/www\/vhosts\/domain.com\/httpdocs\/wp-content"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":10001,"err_message":"This does not seem to be a WordPress install.\nPass --path=`path\/to\/wordpress` or run `wp core download`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(): Failed opening '/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php' for inclusion (include_path='/usr/share/plesk-wp-cli/vendor/phpunit/php-token-stream:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit-mock-objects:/usr/share/plesk-wp-cli/vendor/phpunit/php-code-coverage:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit:/usr/share/plesk-wp-cli/vendor/symfony/yaml:.:/opt/plesk/php/5.4/share/pear') in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 540 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 543 {"err_code":10002,"err_message":"WP-CLI needs WordPress 3.7 or later to work properly. The version currently installed is .\nTry running `wp core download --force`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":10003,"err_message":"wp-config.php not found.\nEither create one manually or use `wp core config`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":10001,"err_message":"This does not seem to be a WordPress install.\nPass --path=`path\/to\/wordpress` or run `wp core download`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(): Failed opening '/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php' for inclusion (include_path='/usr/share/plesk-wp-cli/vendor/phpunit/php-token-stream:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit-mock-objects:/usr/share/plesk-wp-cli/vendor/phpunit/php-code-coverage:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit:/usr/share/plesk-wp-cli/vendor/symfony/yaml:.:/opt/plesk/php/5.4/share/pear') in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 540 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 543 {"err_code":10002,"err_message":"WP-CLI needs WordPress 3.7 or later to work properly. The version currently installed is .\nTry running `wp core download --force`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":0,"err_message":"wp-config.php not found.\nEither create one manually or use `wp core config`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: file_get_contents(): Filename cannot be empty in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 358 {"err_code":0,"err_message":"Strange wp-config.php file: wp-settings.php is not loaded directly."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: require(/var/www/vhosts/domain.com/httpdocs/wp-includes/load.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/wp-settings-cli.php on line 16 PHP Warning: require(/var/www/vhosts/domain.com/httpdocs/wp-includes/load.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/wp-settings-cli.php on line 16 PHP Fatal error: require(): Failed opening required '/var/www/vhosts/domain.com/httpdocs/wp-includes/load.php' (include_path='/usr/share/plesk-wp-cli/vendor/phpunit/php-token-stream:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit-mock-objects:/usr/share/plesk-wp-cli/vendor/phpunit/php-code-coverage:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit:/usr/share/plesk-wp-cli/vendor/symfony/yaml:.:/opt/plesk/php/5.4/share/pear') in /usr/share/plesk-wp-cli/php/wp-settings-cli.php on line 16
 
Error 2 on 2nd website:

{"err_code":40002,"err_message":"Unable to locate configuration path"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40002,"err_message":"Unable to read configuration file: "} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40003,"err_message":"Unable to read or execute files from wp-admin\/includes directory': \/var\/www\/vhosts\/domain.com\/httpdocs\/wp-admin\/includes"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40004,"err_message":"Unable to read or execute files from wp-includes directory: \/var\/www\/vhosts\/domain.com\/httpdocs\/wp-includes"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":40005,"err_message":"Unable to read or execute files from wp-content directory: \/var\/www\/vhosts\/domain.com\/httpdocs\/wp-content"} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":10001,"err_message":"This does not seem to be a WordPress install.\nPass --path=`path\/to\/wordpress` or run `wp core download`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(): Failed opening '/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php' for inclusion (include_path='/usr/share/plesk-wp-cli/vendor/phpunit/php-token-stream:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit-mock-objects:/usr/share/plesk-wp-cli/vendor/phpunit/php-code-coverage:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit:/usr/share/plesk-wp-cli/vendor/symfony/yaml:.:/opt/plesk/php/5.4/share/pear') in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 540 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 543 {"err_code":10002,"err_message":"WP-CLI needs WordPress 3.7 or later to work properly. The version currently installed is .\nTry running `wp core download --force`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":10003,"err_message":"wp-config.php not found.\nEither create one manually or use `wp core config`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":10001,"err_message":"This does not seem to be a WordPress install.\nPass --path=`path\/to\/wordpress` or run `wp core download`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Warning: include(): Failed opening '/var/www/vhosts/domain.com/httpdocs/wp-includes/version.php' for inclusion (include_path='/usr/share/plesk-wp-cli/vendor/phpunit/php-token-stream:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit-mock-objects:/usr/share/plesk-wp-cli/vendor/phpunit/php-code-coverage:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit:/usr/share/plesk-wp-cli/vendor/symfony/yaml:.:/opt/plesk/php/5.4/share/pear') in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 535 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 540 PHP Notice: Undefined variable: wp_version in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 543 {"err_code":10002,"err_message":"WP-CLI needs WordPress 3.7 or later to work properly. The version currently installed is .\nTry running `wp core download --force`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 {"err_code":0,"err_message":"wp-config.php not found.\nEither create one manually or use `wp core config`."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: file_get_contents(): Filename cannot be empty in /usr/share/plesk-wp-cli/php/WP_CLI/Runner.php on line 358 {"err_code":0,"err_message":"Strange wp-config.php file: wp-settings.php is not loaded directly."} PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 503 PHP Notice: Undefined variable: exit in /usr/share/plesk-wp-cli/php/class-wp-cli.php on line 505 PHP Warning: require(/var/www/vhosts/domain.com/httpdocs/wp-includes/load.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/wp-settings-cli.php on line 16 PHP Warning: require(/var/www/vhosts/domain.com/httpdocs/wp-includes/load.php): failed to open stream: No such file or directory in /usr/share/plesk-wp-cli/php/wp-settings-cli.php on line 16 PHP Fatal error: require(): Failed opening required '/var/www/vhosts/domain.com/httpdocs/wp-includes/load.php' (include_path='/usr/share/plesk-wp-cli/vendor/phpunit/php-token-stream:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit-mock-objects:/usr/share/plesk-wp-cli/vendor/phpunit/php-code-coverage:/usr/share/plesk-wp-cli/vendor/phpunit/phpunit:/usr/share/plesk-wp-cli/vendor/symfony/yaml:.:/opt/plesk/php/5.4/share/pear') in /usr/share/plesk-wp-cli/php/wp-settings-cli.php on line 16

Please advise, thnx.
 
@Xavier12

I am reading in the output that it might be the case that you have an old WP version for these two (other) domains. Is that correct?

If true, just update the WP instance to a more recent version (note that the version should be higher than version 3.7).

Otherwise, WPT has difficulties reading (amongst others) the wp-includes directory.

You should try the following:

a) verify that the ownership/permission structure is correct, run the command: ls -l /var/www/vhosts/<domain>/<dir>/wp-includes/version.php

If you have a WP version larger than 3.7 and this test does not yield strange results, than have a look at the contents of version.php: it should have the correct version.

Note that manually changing the $wp_version variable is not adviceable, but that manual or automatic edits from the past can be the cause of the current problem.

b) verify that the ownership/permission structure is correct, do the same for the directories wp-content and wp-admin/includes.

If you see that the ownership is something else than <user>:psacln, just do a "chown -R" command to change the ownership structure of files and directories.

Note that checks of individual files are not really necessary in this step, the two checks above give you a proper indication.


If the above does not help, just go to the WP Dashboard and "Update" the files, in order to have all WP files and directories properly installed (note that customizations can get lost).

Hope the above helps a bit.

Regards.....
 
Hi,

Thanks for the feedback. Yes, mostly all of the Wordpress sites have been updated but the issue still occurs. Check both the wp-admin/includes and wp-content folders, and they both are permission 755.

Tried re-updating the Wordpress installation as well, still the same issue occurs.

Please advise, thanks.
 
@Xavier12

How many sites are affected at this moment?

If the answer to that is five or less, then I propose to do a common work-around:

1 - create a new WP instance via WPT,
2 - merge (old) data into the new database,
3 - copy plugin and theme folder,

and that is about it.

However, in your case, we will take a different approach to this common work-around: let´s use one of my machines, so I can do some testing.

Otherwise, it will remain "educated guessing" (and that does not help you fast enough).

Moreover, it will give me an opportunity to do some testing with conflicts related to the WPT, which can help bug detection.

Can you agree with this approach? If yes, just send me a PM.

Regards....
 
Back
Top