PHP Error on Plugin Update, and Deprecation Notices
-
Hi,
We received the following PHP error when updating the plugin:
An error of type E_ERROR was caused in line 258 of the file /xxxxxxx/public_html/sandbox/wp/wp-content/plugins/wp-asset-clean-up/classes/PluginReview.php. Error message: Uncaught Error: Class "WpAssetCleanUp\MiscAdmin" not found in /xxxxxxx/public_html/sandbox/wp/wp-content/plugins/wp-asset-clean-up/classes/PluginReview.php:258
Stack trace:
#0 /xxxxxxx/public_html/sandbox/wp/wp-content/plugins/wp-asset-clean-up/classes/PluginReview.php(118): WpAssetCleanUp\PluginReview->showReviewNotice()
#1 /xxxxxxx/public_html/sandbox/wp/wp-includes/class-wp-hook.php(324): WpAssetCleanUp\PluginReview->noticeScripts()
#2 /xxxxxxx/public_html/sandbox/wp/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#3 /xxxxxxx/public_html/sandbox/wp/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /xxxxxxx/public_html/sandbox/wp/wp-admin/includes/template.php(2222): do_action()
#5 /xxxxxxx/public_html/sandbox/wp/wp-admin/update.php(53): iframe_footer()
#6 {main}
thrownAlso it appears that the plugin seems to be generating PHP deprecation notices:
PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /xxxxxxx/public_html/sandbox/wp/wp-includes/functions.php on line 7300
PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /xxxxxxx/public_html/sandbox/wp/wp-includes/functions.php on line 218## Some additional background information
WordPress version 6.6.2
Current plugin: Asset CleanUp: Page Speed Booster (version 1.3.9.7)
PHP version 8.2.23Using a custom theme
Disabling the plugin seems to get rid of the PHP deprecation notice, though we can’t pinpoint its origin with the plugin itself since it’s coming from core WP functions.
Any advice that you can provide would be appreciated. We can provide additional information — link to site, etc directly.
- You must be logged in to reply to this topic.