WPR Settings page fatal error when debug file is so large even though debug mode is disabled #6581
Labels
priority: medium
Issues which are important, but no one will go out of business.
severity: moderate
Feature isn't working as expected but has work around to get same value
type: bug
Indicates an unexpected problem or unintended behavior
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
When we leave our debug mode enabled for some time, we find that the file grows rapidly and in some cases it exceeds 500MB without a limit.
We expect when we disable this debug mode, that this large size of the log file won't affect the site at all, but I found that we load the file in our Settings page (exactly in tools section) and this is loaded even when we disable the debug mode.
In a customer's site, this led to full memory consumption.
The code is here:
wp-rocket/views/settings/page-sections/tools.php
Lines 15 to 28 in cc3edc2
and this code is only used in a commented area here:
wp-rocket/views/settings/page-sections/tools.php
Lines 99 to 118 in cc3edc2
To Reproduce
Steps to reproduce the behavior:
WP_ROCKET_DEBUG
to true inwp-config.php
Expected behavior
We should remove this code completely because it's not used anymore and is affecting the memory consumption.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
The text was updated successfully, but these errors were encountered: