# Regarding the issue where DOMAIN\_CURRENT\_SITE becomes undefined

**URL:** <https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945>\
**Category:** Questions\
**Created:** [March 27, 2025, 1:06am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945 "2025-03-27T01:06:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![keisuke](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@keisuke](https://community.kinsta.com/u/keisuke)\
**Post date:** [March 27, 2025, 1:06am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/1 "2025-03-27T01:06:18Z")

</div>

We are operating a subdirectory-based multisite.

Every time we push from devkinsta to remote, and transfer from remote staging to Live, the ‘DOMAIN\_CURRENT\_SITE’ in wp-config.php becomes ‘undefined’.

define(‘DOMAIN\_CURRENT\_SITE’, ‘undefined’);

We want ‘DOMAIN\_CURRENT\_SITE’ to automatically replace itself with the appropriate value for Live, staging (with subdirectory changes each time), and devkinsta.

We are also operating a single site on another site, and it automatically replaces itself.

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [March 27, 2025, 6:14am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/2 "2025-03-27T06:14:49Z")

</div>

Hello Keisuke 👋

This seems to be a bug and out developers are checking it. I found the same when you first reported an issue with the Multisite and DevKinsta.

It’s under review, but there’s no ETA so I’m not sure when is this going to be fixed. However, we are aware of the issue and intend to fix it.

---

<div class="post-metadata">

**Author:** ![keisuke](https://avatars.discourse-cdn.com/v4/letter/k/cdc98d/32.png) [@keisuke](https://community.kinsta.com/u/keisuke)\
**Post date:** [March 28, 2025, 8:25am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/4 "2025-03-28T08:25:32Z")

</div>

@VladimirM  
Thank you for your message. I understand that the issue is a bug. Could you please let me know if there are any measures or solutions currently available to address this issue?

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [March 28, 2025, 10:06am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/5 "2025-03-28T10:06:22Z")

</div>

Hello @keisuke 👋 At this moment, the only workaround is to change the line manually in wp-config on staging site before pulling to DevKinsta.

Until the bug is resolved, there’s no other workaround, I’m afraid.

---

<div class="post-metadata">

**Author:** ![landyman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/landyman/32/4994_2.png) [@landyman](https://community.kinsta.com/u/landyman)\
**Post date:** [September 8, 2025, 6:58pm UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/6 "2025-09-08T18:58:09Z")

</div>

I just wanted to add that we’re having the exact same issue as well and it would be great to get it fixed.

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [September 9, 2025, 6:48am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/7 "2025-09-09T06:48:18Z")

</div>

Hello @landyman 👋

This should be resolved in DevKinsta version 2.3.15. which was released recently.

Can you please tell me what operating system, Docker version and DevKinsta are you using? If you still have DevKinsta 2.3.14, I would suggest backing up your local sites’ files and database and attempting update.

Kind regards!

---

<div class="post-metadata">

**Author:** ![landyman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/landyman/32/4994_2.png) [@landyman](https://community.kinsta.com/u/landyman)\
**Post date:** [September 9, 2025, 3:54pm UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/8 "2025-09-09T15:54:30Z")

</div>

Thanks @VladimirM ! I fired up DevKinsta, and I am using 2.3.14 (Ubuntu version, but running on Fedora); but when I check for updates, it claims there is no update. I’ll try again later, then re-install it clean if it still says there’s no update.

---

<div class="post-metadata">

**Author:** ![Makiko](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Makiko](https://community.kinsta.com/u/Makiko)\
**Post date:** [September 10, 2025, 12:21pm UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/9 "2025-09-10T12:21:10Z")

</div>

Hi, @VladimirM  
I’m having the same issue.  
I tried pushing again with this version:  
・Docker Version 4.45.0  
・DevKinsta Version 2.13.5  
・multisite

But the staging config still shows `DOMAIN_CURRENT_SITE` as undefined.  
Is there a specific version I should be using?

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [September 10, 2025, 2:14pm UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/10 "2025-09-10T14:14:11Z")

</div>

Can you tell me if this is occurring when pulling to DevKinsta, pushing to Staging or both?

Also, are you on Windows, Mac or other?

Kind regards!

---

<div class="post-metadata">

**Author:** ![Makiko](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Makiko](https://community.kinsta.com/u/Makiko)\
**Post date:** [September 11, 2025, 11:21am UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/11 "2025-09-11T11:21:34Z")

</div>

Hi @VladimirM,

This issue occurs only when pushing to Staging.  
When pulling to DevKinsta, there is no problem.  
I’m using a Mac with macOS Sequoia 15.5.

After pushing, I can manually replace the staging config to fix the domain undefined issue,  
but if this is resolved in a newer version of DevKinsta, that would be great.

Kind regards,

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [September 11, 2025, 2:08pm UTC](https://community.kinsta.com/t/regarding-the-issue-where-domain-current-site-becomes-undefined/4945/12 "2025-09-11T14:08:43Z")

</div>

Hello @Makiko 👋

I have tested again, and both pull and push don’t set ‘undefined’ on DOMAIN\_CURRENT\_SITE.

Can you please check that;

- DOMAIN\_CURRENT\_SITE is correct on staging site before pulling to DevKinsta
- then recheck on DevKinsta before pushing to Staging

Kind regards
