• Resolved neoword

    (@neoword)


    It might be a coincidence that I just upgraded to WordPress 5.5. But I received a WordPress email notification that the system caught an error.

    This happened while editing and saving a WordPress post. This likely might be a coincidence that a visitor posted a comment at that time.

    Here’s the English translation of the error.

    WordPress-Version 5.5
    Plugin: Subscribe to Comments Reloaded (Version 200629)
    PHP-Version 7.4.8

    An error of type E_ERROR was caused in line 316 of the file /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php
    Error message: Uncaught Error: Object of class WP_Post could not be converted to string in /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php:316
    Stack trace:
    #0 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-content/plugins/subscribe-to-comments-reloaded/utils/stcr_utils.php(316): preg_replace()
    #1 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-content/plugins/subscribe-to-comments-reloaded/wp_subscribe_reloaded.php(1089): stcr\stcr_utils->clean_email()
    #2 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-includes/class-wp-hook.php(287): stcr\wp_subscribe_reloaded->delete_subscriptions()
    #3 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #4 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-includes/plugin.php(478): WP_Hook->do_action()
    #5 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-includes/post.php(3078): do_action()
    #6 /var/www/vhosts/[DOMAIN REDACTED]/httpdocs/wp-includes/revision.php(456): wp_delete_post()
    #7 /var/www/vhosts/
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WPKube

    (@wpkube)

    Hi @neoword

    Is it a issue that can be replicated or did it happen once and didn’t show again?

    Plugin Author WPKube

    (@wpkube)

    Hi @neoword,

    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.

    Thread Starter neoword

    (@neoword)

    Hi @wpkube,

    thank you very much for the prompt update. I’ve updated the plugin and will look out for any errors.

    So far the system looks stable again when posting new comments or adding and deleting posts.

    Plugin Author WPKube

    (@wpkube)

    Hi @neoword

    You’re welcome and thanks for letting us know about the issue.

    Thanks for fixing this. Had te same problem!

    Plugin Author WPKube

    (@wpkube)

    You’re welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WP 5.5: ObjectWP_Post could not be converted to string’ is closed to new replies.