WP debug log:
[12-Aug-2020 16:05:43 UTC] PHP Fatal error: Uncaught Error: Object of class WP_Post could not be converted to string in /wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php:316
Stack trace:
#0 /wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php(316): preg_replace(Array, '', Object(WP_Post))
#1 /wp-content/plugins/subscribe-to-comments-reloaded/wp_subscribe_reloaded.php(1089): stcr\stcr_utils->clean_email(Object(WP_Post))
#2 /wp-includes/class-wp-hook.php(287): stcr\wp_subscribe_reloaded->delete_subscriptions(5547, Object(WP_Post))
#3 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#4 /wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#5 /wp-includes/post.php(5838): do_action('delete_post', 5547, Object(WP_Post in /wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php on line 316
Your post went way over my novice head, but I also had an issue immediately after updating to WP5.5. It warned me of a fatal error, so I deactivated this plugin and then my site was fine.
Plugin Author
WPKube
(@wpkube)
Hi @webliberty @heiditgtl
Thanks for the report, a change in the delete_post hook in WordPress 5.5 is what caused the issue, our plugin expected 1 parameter to be passed with it but in 5.5 another one was added (the WP Post object) and caused a problem.
Working on an update, will release in the next hour.
Plugin Author
WPKube
(@wpkube)
Just released the update. Give it a try, if you notice any issues please do let us know.
You’re welcome and thank you.
Thank you very much, will try it now!
Updated the plugin and repeated the steps that caused the error earlier. Now everything is fine, works without errors, WP debug log is clean.
Thank you very much for your prompt support!
Plugin Author
WPKube
(@wpkube)
Hi @webliberty @heiditgtl
Happy to hear that. You’re welcome and thank you for letting us know about the issue and also thank you for the rating.