Q: Date/Time this occurred (Provide your time zone also) A: 13:20 UTC+1
Q: DevKinsta Version A: Version 2.13.6 (2.13.6.9096)
Q: OS Version A: macOS Tahoe 26.1
Q: Docker Desktop Version A: 4.51.0 (210443)
Q: Were any error codes or messages observed? If so, what were they? A: “Error connecting to undefined”, WP Error: “Error establishing a database connection”.
Q: Detailed Description of the Problem
**A: I’m trying to sync my wordpress multisite to local DevKinsta.
I pull the Live version.
2 Issues:
in the wp-config.php the domain is not set. It is set to the following value: **
define( ‘DOMAIN_CURRENT_SITE’, ‘undefined’ );
After adding the domain_current_site value. I get a database connection error:
From inside the fpm docker container i can connect to the database:
**But the issue is that the port number is missing for all my multisites.
If I update the urls do add the domain everything works fine!
Screenshot from inside DevKinsta where you can see the url + port:**
Hi @levels, thank you for sending the main.log via DM.
Apologies for the delayed response.
Based on the main.log, it appears that the .local domain may not be properly configured. This can prevent DevKinsta from recognizing the site, as WordPress multisite relies on the domain values stored in the database to match the local environment.
Please verify that the correct domain is set in the following database tables:
wp_options
wp_site
wp_blogs
You can check and update these by opening DevKinsta → Database Manager (Adminer).
Additionally, confirm that your wp-config.php file contains the correct domain.
define('DOMAIN_CURRENT_SITE', 'example.local');
Lastly, please ensure the domain is added to your system’s hosts file so it resolves locally.
Let us know if you still encounter difficulties.
Thank you.