Hey everyone,
I hope you're doing well. I'm currently facing an issue with my WordPress website and I was wondering if any of you could help me out.
Recently, I noticed that whenever I activate or deactivate a plugin, my `wp-config.php` file loses all the database constants. It's really frustrating because I have to manually add them back every time.
I've tried disabling all the plugins and then activating them one by one to identify the culprit, but that didn't seem to work. I also checked for any errors in my `wp-config.php` file but everything seems to be fine there.
Has anyone else ever encountered this problem or have any idea what might be causing it? I would really appreciate if someone could guide me on how to troubleshoot or fix this issue.
Thanks in advance for your help!

Hey there,
I've actually experienced a similar issue with my WordPress website before. It can definitely be frustrating when the `wp-config.php` file loses the database constants after activating or deactivating a plugin.
In my case, the problem was caused by a conflict between two plugins. It took some time to figure out which ones were causing the issue, but I eventually narrowed it down. One of the plugins was modifying the `wp-config.php` file, causing the constants to be removed.
To solve this, I had to disable both plugins and manually restore the database constants in the `wp-config.php` file. Then, I activated the plugins one by one, checking if the issue would occur again. This helped me identify the specific plugin causing the conflict.
I would recommend trying this troubleshooting method, especially if you've already disabled all the plugins without success. It might take some patience and trial and error, but it's worth a shot to pinpoint the problematic plugin.
Hopefully, this helps you resolve the issue. Don't hesitate to ask if you have any more questions!