Bugs when Syncing (Pull) with multisite

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:

  1. in the wp-config.php the domain is not set. It is set to the following value: **
    define( ‘DOMAIN_CURRENT_SITE’, ‘undefined’ );
  2. 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:**

Unfortunately I can only add one screenshot because of some limitation for new users.

Hi @levels

Welcome to the Community.

Setting up multisite in DevKinsta may need some additional configuration. Have you checked this article below?

https://kinsta.com/docs/devkinsta/devkinsta-site-management/subdomain-multisite/

Anyways, are you able to provide the main.log file from DevKinsta and send it here? Troubleshooting - Error Codes - Kinsta® Docs

We would like to look into it further and make some tests. Thank you.

Thanks Merineth!

I sent you the main.log via DM.

Thanks for pointing out the help article!
My multisite is configured to be run by sub-directory tough.

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.