failed to obtain WP Configuration , undefined constant DB_USER

Bug Report Template

Description

When navigating to a customer wordpress site via WebApps, Its failing to detect the configuration and giving an error.

Expected Behavior

Describe what you expected to happen when the bug occurred.
The site detects wordpress, and will show the configuration.

Actual Behavior

When going into WebApps, I get the following error:
failed to obtain WP configuration for `/var/www/html': PHP Fatal error: Uncaught Error: Undefined constant "DB_USER" in Command line code:1 Stack trace: #0 [internal function]: {closure}() #1 {main} thrown in Command line code on line 1

Environment

ApisCP version: cpcmd misc:cp-version
revision: dc17cacc523c77f0ec582ddf21e3c292f0911e5c
timestamp: 1745540622
ver_maj: 3
ver_min: 2
ver_patch: 47
ver_pre: ‘’
dirty: false
debug: false

Operating System: uname -r
4.18.0-553.40.1.el8_10.x86_64

It seems this is similar to 'failed to obtain WP configuration' Error - #10 by msaladna however it seems the panel isn’t even resolving the DB_USER variable.

This is simple. The wp-config file somehow got obliterated. This is a customer facing issue, tested with other domains on the panel with no issues. Will figure out the best way to restore the site!