# Incorrect Paths (Mac OS X)

**URL:** <https://community.kinsta.com/t/incorrect-paths-mac-os-x/362>\
**Category:** Application Support\
**Created:** [February 13, 2021, 3:51pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362 "2021-02-13T15:51:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![onebigidea](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@onebigidea](https://community.kinsta.com/u/onebigidea)\
**Post date:** [February 13, 2021, 3:51pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/1 "2021-02-13T15:51:54Z")

</div>

**Q: Date/Time this occurred (Provide your time zone also)**  
\*\*A:13 Feb 2021 10:44a (GMT-5)

**Q: DevKinsta Version**  
\*\*A:Version 1.0.1 (1.0.1.1173)

**Q: OS Version**  
\*\*A:Mac OS X (Catalina) 10.15.7

**Q: Docker Desktop Version**  
\*\*A:3.1.0

**Q: Were any error codes or messages observed? If so, what were they?**  
\*\*A:None

**Q: Detailed Description of the Problem**  
\*\*A:  
In my wp-config.php (e.g. DevKinsta/public/sitename/wp-config.php) - I have a php statement - require ‘…/debug.php’ (pointing to the debug.php file in the public folder above)  
My site fails - since it can’t find the debug.php  
However if I use  
require ‘/www/kinsta/public/debug.php’ - it works just fine

I have seen other failures in my php code when I am doing  
include ‘vendor/autoload.php’; which has caused all kinds of debuggin issues

Can we get some clarity on what’s assumptions we should be making - but it seems like the “document root” of the site is not getting set as expected.

[2021-01-19 10:07:58.820] [info] Using devkinsta-updates for auto update  
[2021-01-19 10:09:47.826] [info] Checking for update  
[2021-01-19 10:09:47.835] [info] Generated new staging user ID: dd84b44f-db96-5226-a788-e7a17c3072fa  
[2021-01-19 10:09:48.251] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).  
[2021-01-31 16:12:00.755] [info] Using devkinsta-updates for auto update  
[2021-01-31 16:12:05.904] [info] Checking for update  
[2021-01-31 16:12:06.147] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).  
[2021-02-03 14:08:06.379] [info] Using devkinsta-updates for auto update  
[2021-02-03 14:08:12.461] [info] Checking for update  
[2021-02-03 14:08:12.791] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).  
[2021-02-04 10:35:35.636] [info] Using devkinsta-updates for auto update  
[2021-02-04 10:35:41.556] [info] Checking for update  
[2021-02-04 10:35:41.942] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).  
[2021-02-11 09:57:39.662] [info] Using devkinsta-updates for auto update  
[2021-02-11 09:57:44.686] [info] Checking for update  
[2021-02-11 09:57:44.988] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).  
[2021-02-11 09:58:34.289] [info] Checking for update  
[2021-02-11 09:58:34.418] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).  
[2021-02-11 10:00:40.261] [info] Using devkinsta-updates for auto update  
[2021-02-11 10:00:45.301] [info] Checking for update  
[2021-02-11 10:00:45.547] [info] Update for version 1.0.1 is not available (latest version: 1.0.1, downgrade is disallowed).

---

<div class="post-metadata">

**Author:** ![jeff](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jeff/32/16_2.png) [@jeff](https://community.kinsta.com/u/jeff)\
**Post date:** [February 15, 2021, 3:15pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/2 "2021-02-15T15:15:51Z")

</div>

Hi Tom,

I’m not able to duplicate this on Windows. I did the same here, I set up a file in my /DevKinsta/public/ directory as **test.php** and then included it in my /DevKinsta/public/testingsite/wp-config.php as:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/b5826e54fe510329a3e10695801118b60d7a1688.png)  
However, for me, it worked. It echoed what I had typed.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/c07da4b6e4b8263ae611a7eb3c103afaffcf1718.png)

I’ll ask one of my colleagues running MacOS if they can try to duplicate the behavior on their end and will get back to you.

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [February 16, 2021, 5:04pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/3 "2021-02-16T17:04:50Z")

</div>

Hi @onebigidea . Sorry for the wait. I’ve tested on MacOS and it appears to work for me as well. Could you tell us a bit more about where the code is being inserted within your `wp-config.php` file? Not sure if it was a typo but I noticed you had an extra period . in your require. Could that be it?

---

<div class="post-metadata">

**Author:** ![onebigidea](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@onebigidea](https://community.kinsta.com/u/onebigidea)\
**Post date:** [February 16, 2021, 5:33pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/4 "2021-02-16T17:33:54Z")

</div>

Interesting - I have no issues with recreating the bug. Attached are my wp-config and debug files (as .txt instead of .php)  
debug.php should be located at /www/kinsta/public/debug.php  
Each has a permissions as -rw-r–r-- and www-data:www-data

if you change the require in the wp-config.php to a absolute path - it works fine (breaks with relative path)

---

<div class="post-metadata">

**Author:** ![onebigidea](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@onebigidea](https://community.kinsta.com/u/onebigidea)\
**Post date:** [February 16, 2021, 5:43pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/5 "2021-02-16T17:43:02Z")

</div>

Just as an interesting observation - if I  
echo getcwd(); in wp-config.php  
I get " /www/kinsta/public/unboxed/wp-admin"  
I am going to check WPEngine to see what the value is there (but I have a guess)

---

<div class="post-metadata">

**Author:** ![onebigidea](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@onebigidea](https://community.kinsta.com/u/onebigidea)\
**Post date:** [February 16, 2021, 5:53pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/6 "2021-02-16T17:53:49Z")

</div>

Just an aside - checking on WPEngine - the document root is/should be the Wordpress directory - the same one as wp-config.php - NOT wp-admin

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [February 16, 2021, 6:04pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/7 "2021-02-16T18:04:44Z")

</div>

I tested this on a new site and came up with the following:

 ![Screen Shot 2021-02-16 at 1.00.23 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/c8c572855b7f25ccce4af344d3983a2ad3f43bae.png)

Here’s what I have:

 ![Screen Shot 2021-02-16 at 1.00.39 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/6784c18f800413a7b0405d426630872d7ab813eb.png)

And within the file itself I have: `<?php echo getcwd(); ?>`.

It all appeared normal for me on a brand new site. Is the issue appearing on a brand new site or on an existing site? Do you have any configurations that could be changing its path?

---

<div class="post-metadata">

**Author:** ![onebigidea](https://avatars.discourse-cdn.com/v4/letter/o/df705f/32.png) [@onebigidea](https://community.kinsta.com/u/onebigidea)\
**Post date:** [February 16, 2021, 6:44pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/8 "2021-02-16T18:44:48Z")

</div>

Yep - my apologies - it appears to be something my local setup.

If I add getcwd() to index.php in my document root - the value is correct. I am going to do some more debugging to track down the issue.

Once I track it down - I’ll share here in case someone else has similar issues.

---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [March 3, 2021, 5:14pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/9 "2021-03-03T17:14:17Z")

</div>



---

<div class="post-metadata">

**Author:** ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)\
**Post date:** [March 3, 2021, 5:15pm UTC](https://community.kinsta.com/t/incorrect-paths-mac-os-x/362/10 "2021-03-03T17:15:01Z")

</div>

HI @onebigidea . I’ll be closing this thread here but if you still experience issues, please feel free to create a new post. Thanks again!
