PHP error logs keep getting quarantined – WP_DEBUG

Home Forums BulletProof Security Pro PHP error logs keep getting quarantined – WP_DEBUG

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45337
    AITpro Admin
    Keymaster

    Email Question:

    Hi,

    I had someone log in to a client’s site to do some work on it, and now the past several days — I’m getting hundreds of quarantined files that all have to do with errorlogs that point to wp-config.php file. I deleted the setting the debug log as true – and deleted all mentions of a debug log on the wp-config.php file. Must have been one of the people we hired. But still I’m seeing the same error messages.

    Specifically — repetitions of these two files:

    File: /home/customer/www/xxxxx/public_html/php_errorlog — Quarantine Time: 2025-10-02 13:15:50
    File: /home/customer/www/xxxxx/public_html/wp-admin/php_errorlog — Quarantine Time: 2025-10-02 13:13:50

    When I look at the error logs, they still refer to DEBUG:

    [02-Oct-2025 20:12:22 UTC] PHP Warning: Constant WP_DEBUG already defined in /home/customer/www/xxxxx/public_html/wp-config.php on line 97

    I am attaching two files that keep getting quarantined for your review.

    Can you please tell me how to stop this?

    #45338
    AITpro Admin
    Keymaster

    The people who were working on your site added the filter wp_debug_mode() or enable_wp_debug_mode_checks() in the website’s Theme functions.php file.

    https://developer.wordpress.org/reference/functions/wp_debug_mode/

    Might have something to do with this php error > /wp-content/themes/tt4dogg/functions.php on line 219

    Go to BPS Pro > AutoRestore > Turn Off AutoRestore > edit the functions.php file and remove the wp_debug code from your theme.

    If WP_DEBUG does not exist in the wp-config.php file then it will be loaded from another WordPress Core file, but you should have WP_DEBUG in the wp-config.php file and the value should be set to false. See below.

    Add the WP_DEBUG code below back in the wp-config.php file

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    */
    define('WP_DEBUG', false);
    define('WP_DEBUG_LOG', false);
    define('WP_DEBUG_DISPLAY', false);

    Then go back to AutoRestore click the wp-content Files > Backup Files button.
    Then turn AutoRestore back on.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.