• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue DOMAIN_CURRENT_SITE matches

Kingsley

Silver Pleskian
Hello;

I am trying to clone an existing wordpress multi site install with the WP TOOLKIT but it keeps showing me the below error.

Code:
[2018-09-08 01:19:58.241] ERR [panel] Task failed: id=338, pid=5662, type=ext-wp-toolkit-task\manage, error=Site 'healthable.org/' not found. Verify DOMAIN_CURRENT_SITE matches an existing site or use `--url=<url>` to override.
{"err_code":true,"err_message":"Site 'healthable.org\/\/' not found. Verify DOMAIN_CURRENT_SITE matches an existing site or use `--url=<url>` to override."}

i have checked my wp-config and data base and my domain 'healthable.org' is there.

Code:
/* MULTI SITE SETTINGS. */
define('WP_ALLOW_MULTISITE', true);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', 'healthable.org');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

/* CUSTOME SITE SETTINGS. */
define('WP_MEMORY_LIMIT', '300M');

I have attached screenshots
 

Attachments

  • Edit Site  Healthable ‹ Network Admin  Healthable Sites — WordPress (1).png
    Edit Site Healthable ‹ Network Admin Healthable Sites — WordPress (1).png
    12.7 KB · Views: 11
  • Edit Site  Healthable ‹ Network Admin  Healthable Sites — WordPress.png
    Edit Site Healthable ‹ Network Admin Healthable Sites — WordPress.png
    23.2 KB · Views: 10
  • boma riolohost com 8443   localhost   healthable   ha_blogs   phpMyAdmin 4 7 8.png
    boma riolohost com 8443 localhost healthable ha_blogs phpMyAdmin 4 7 8.png
    43.8 KB · Views: 9
Last edited:
Code:
root@boma:~#

/usr/local/psa/admin/bin/filemng healthable exec /var/www/vhosts/healthable.org /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/wp --path=/var/www/vhosts/healthable.org/httpdocs site list --debug

Debug (commandfactory): No doc comment for fix_keys. (0.38s)
Debug (commandfactory): No doc comment for fix_keys. (0.381s)
Debug (bootstrap): No readable global config found (0.387s)
Debug (bootstrap): No project config found (0.387s)
Debug (bootstrap): argv: /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php --path=/var/www/vhosts/healthable.org/httpdocs site list --debug (0.387s)
Debug (bootstrap): ABSPATH defined: /var/www/vhosts/healthable.org/httpdocs/ (0.388s)
Debug (bootstrap): Begin WordPress load (0.388s)
Debug (bootstrap): wp-config.php path: /var/www/vhosts/healthable.org/httpdocs/wp-config.php (0.388s)
Debug (bootstrap): Set URL: healthable.org/ (0.388s)
Debug (bootstrap): Loaded WordPress (1.19s)
Debug (bootstrap): Running command: site list (1.191s)
+---------+------------------------+---------------------+---------------------+
| blog_id | url | last_updated | registered |
+---------+------------------------+---------------------+---------------------+
| 1 | http://healthable.org/ | 2018-09-08 05:24:55 | 2018-08-30 20:30:06 |
+---------+------------------------+---------------------+---------------------+
 
Code:
root@boma:~#

/usr/local/psa/admin/bin/filemng healthable exec /var/www/vhosts/healthable.org /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/wp --path=/var/www/vhosts/healthable.org/httpdocs config get --constant=DOMAIN_CURRENT_SITE --debug

Debug (commandfactory): No doc comment for fix_keys. (0.059s)
Debug (commandfactory): No doc comment for fix_keys. (0.06s)
Debug (bootstrap): No readable global config found (0.063s)
Debug (bootstrap): No project config found (0.063s)
Debug (bootstrap): argv: /opt/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php --path=/var/www/vhosts/healthable.org/httpdocs config get --constant=DOMAIN_CURRENT_SITE --debug (0.063s)
Debug (bootstrap): ABSPATH defined: /var/www/vhosts/healthable.org/httpdocs/ (0.064s)
Debug (bootstrap): Running command: config get (0.065s)
healthable.org
 
Hi, it's an very old topic and I'm sorry for posting here. But I've ran into the same issue and was wondering how you overcome this issue. Thanks alot!
Ps: The knowledge article didn't helped me.

Edit:

Solved the issue by simply removing define('DOMAIN_CURRENT_SITE', ''); from the wpconfig. Before cloning the instance.
 
Last edited:
Back
Top