Applicable to:
- Plesk Onyx for Linux
Symptoms
-
WordPress toolkit report the error
PLESK_ERROR: Site 'example.com/' not found. Verify DOMAIN_CURRENT_SITE matches an existing site or use `--url=<url>` to override. {"err_code":true,"err_message":"Site 'example.com/' not found. Verify DOMAIN_CURRENT_SITE matches an existing site or use `--url=<url>` to override."}
-
The command below return "
www.example.com
"# '/usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/wp' '--path=/var/www/vhosts/example.com/httpdocs' db query "SELECT domain FROM wp_blogs"
+-----------------+
| domain |
+-----------------+
| www.example.com |
+-----------------+
Cause
wp_blogs.domains
from WordPress instance database table mismatches DOMAIN_CURRENT_SITE
directive value in wp-config.php
Resolution
-
Go to Domains > example.com > File Manager.
-
Edit WordPress instance
wp-config.php
and setDOMAIN_CURRENT_SITE
value to the same aswp_blogs.domain
from the WordPress database (www.example.com
).
Comments
4 comments
I am having this error even though my details are correct
Hello @iamkingsleyf,
As I can see, the investigation has finished with removing multisite DB tables and reinstalling WordPress
that means WPTOOLKIT can't clone a multisite??
Hello @iamkingsleyf,
Multisite is not officially supported by Plesk and it can not be configured using Plesk. This means that it was not tested and its work is not guaranteed
However, the investigation was stopped according to your request.
If required, we will be glad to continue the investigation in a scope of a ticket.
Please sign in to leave a comment.