# WP\_DEBUG values are still incorrect

**URL:** <https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441>\
**Category:** Bug Reports\
**Created:** [April 25, 2022, 2:05pm UTC](https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441 "2022-04-25T14:05:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![maven1129](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/maven1129/32/435_2.png) [@maven1129](https://community.kinsta.com/u/maven1129)\
**Post date:** [April 25, 2022, 2:05pm UTC](https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441/1 "2022-04-25T14:05:59Z")

</div>

**Q: Date/Time this occurred (Provide your time zone also)**  
**A:** 2022-04-25 9:00AM CST

**Q: DevKinsta Version**  
**A:** Version 2.5.0 (2.5.0.3658)

**Q: OS Version**  
**A:** MAC OS 12.3.1 (21E258)

**Q: Docker Desktop Version**  
**A:** 4.6.1 (76265)

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

**Q: Detailed Description of the Problem**  
**A:**

A bug reported and closed as “fixed” is still errant. I turn it on and it works fine, but toggling it off does not turn it off.

Original thread for bug that was fixed:

> [@WP-Config - invalid values for WP\_DEBUG defines](https://community.kinsta.com/t/wp-config-invalid-values-for-wp-debug-defines/126/15):
>
> Q: Date/Time this occurred (Provide your time zone also) A: Q: DevKinsta Version A: 2.2.0 Q: OS Version A: macOS Big Sur Q: Docker Desktop Version A: 4.1.1 Q: Were any error codes or messages observed? If so, what were they? A: No Q: Detailed Description of the Problem A: When activating WP\_DEBUG from DevKinsta UI, it is turned on, but when deactivating the settings returned to wp\_config.php file is added with strings instead of f boolean, so the setting is not interpreted. It works…

I validated that wp-config.php is being updated by devkinsta toggle to still quote the ‘true’ and ‘false’ values.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [April 25, 2022, 9:28pm UTC](https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441/2 "2022-04-25T21:28:11Z")

</div>

Hi @maven1129, thanks for reporting this. I will review/reproduce and bring it up with our devs!

---

<div class="post-metadata">

**Author:** ![philippstracker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/philippstracker/32/638_2.png) [@philippstracker](https://community.kinsta.com/u/philippstracker)\
**Post date:** [August 12, 2022, 1:16pm UTC](https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441/3 "2022-08-12T13:16:54Z")

</div>

This issue was resolved once, but apparently is back again:

> [@WP-Config - invalid values for WP\_DEBUG defines](https://community.kinsta.com/t/wp-config-invalid-values-for-wp-debug-defines/126/15):
>
> Q: Date/Time this occurred (Provide your time zone also) A: Q: DevKinsta Version A: 2.2.0 Q: OS Version A: macOS Big Sur Q: Docker Desktop Version A: 4.1.1 Q: Were any error codes or messages observed? If so, what were they? A: No Q: Detailed Description of the Problem A: When activating WP\_DEBUG from DevKinsta UI, it is turned on, but when deactivating the settings returned to wp\_config.php file is added with strings instead of f boolean, so the setting is not interpreted. It works…

I’m also seeing this in all DevKinsta sites on my local machine, using DevKinsta 2.7.0

How to reproduce:

1. Create a new site, or pull an existing site from Kinsta to DevKinsta.
2. Toggle the Debug mode via the DevKinsta UI
3. Review the wp-config.php file. The boolean values are wrapped in quotes - which ironically makes “false” equal to true…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0386d1936f72679c8d47473d7afbc714eb99095c.png)

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [August 12, 2022, 4:06pm UTC](https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441/4 "2022-08-12T16:06:37Z")

</div>

Thank you for pointing this out @philippstracker, I have brought this to the attention of our Devs.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [September 21, 2022, 4:27pm UTC](https://community.kinsta.com/t/wp-debug-values-are-still-incorrect/1441/5 "2022-09-21T16:27:59Z")

</div>

Hi everyone, this should now be fixed again in DevKinsta 2.8.0: [DevKinsta Releases (Minor) - #13 by Kevin](https://community.kinsta.com/t/devkinsta-releases-minor/371/13)
