• Resolved Webliberty

    (@webliberty)


    Hello!

    After updating WordPress to version 5.5, there was a problem: Unable to delete files uploaded to the library. By experience, we managed to find out that when the Subscribe To Comments Reloaded plugin is deactivated, the error disappears.

    This behavior is observed on my main blog and on the test site (the plugin is installed everywhere).

    They helped me find out the reason on the Russian-language support forum in this thread: there you can see the details.

    This is most likely due to an update to the built-in jQuery library in WordPress: https://make.www.ads-software.com/core/2020/06/29/updating-jquery-version-shipped-with-wordpress/

    Could you please check this and report if the plugin is compatible with WordPress 5.5?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Webliberty

    (@webliberty)

    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.

    Thread Starter Webliberty

    (@webliberty)

    Thanks!

    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!

    Thread Starter Webliberty

    (@webliberty)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error on WP 5.5’ is closed to new replies.