Deprecation Warnings in Backup Logs with PHP 8.1+
Before submitting an issue please check that you’ve completed the following steps:
- Made sure you’re on the latest version
- Used the search feature to ensure that the bug hasn’t been reported before
Describe the bug When running backups (both manual and scheduled) with BackWPUp on PHP 8.1+ and WordPress 6.6.2, users are encountering thousands of deprecation warnings. The errors mainly involve passing null to parameters that expect a string or array input. Examples include warnings from strlen() and preg_replace(). These notices clutter the logs with thousands of lines, impacting usability.
Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming
https://wordpress.org/support/topic/passing-null-to-parameter-errors-php-8-2-20/ https://wordpress.org/support/topic/deprecation-warnings-in-log/ https://wordpress.org/support/topic/error-after-upgrading-to-php-8-2/
https://secure.helpscout.net/conversation/2733186337/517555 https://secure.helpscout.net/conversation/2659864967/504119 https://secure.helpscout.net/conversation/2449003217/462948 https://secure.helpscout.net/conversation/2598530515/491710