• Resolved sandeep2408

    (@sandeep2408)


    Hi Team

    I just update the Yoast Duplicate Post plugin to version 4.0 and start getting “Fatal error: Uncaught TypeError: Argument 1 passed to Yoast\WP\Duplicate_Post\Permissions_Helper::is_rewrite_and_republish_copy() must be an instance of WP_Post, null given, called in /wp-content/plugins/duplicate-post/src/ui/class-post-states.php on line 58 and defined in /wp-content/plugins/duplicate-post/src/class-permissions-helper.php on line 57”. Getting “There has been a critical error on this website.” message while accessing the site.

    WP version is 5.6 and All plugins are updated. Please help me

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello,

    Thanks for reaching out and sorry about the error.

    We are currently looking into the issue and a patch will be released soon to fix this. We appreciate your patience.

    Hi @sandeep2408,

    Thanks for your patience. We’ve released version 4.0.1.
    Can you please confirm this resolves the problem you are facing?

    Thank you!

    Thread Starter sandeep2408

    (@sandeep2408)

    Hi @tacoverdo

    Thank you for your quick response and fix. The issue is fixed now.

    Thank you

    Thread Starter sandeep2408

    (@sandeep2408)

    Hi @tacoverdo

    After updating new version 4.0.1, I am able to work with classic editor, but I am still getting same error on website for some pages. I am working on Multisite and observed that I am getting
    Fatal error: Uncaught TypeError: Argument 1 passed to Yoast\WP\Duplicate_Post\Permissions_Helper::is_rewrite_and_republish_copy() must be an instance of WP_Post, null given, called in \wp-content\plugins\duplicate-post\src\ui\class-post-states.php on line 59 and defined in \wp-content\plugins\duplicate-post\src\class-permissions-helper.php on line 57

    If I add following condition before “if ( $this->permissions_helper->is_rewrite_and_republish_copy( $post ) ) {” this code then fatal error disappear

    if ( ! $post instanceof WP_Post ) {
    return false;
    }

    can you please help me

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting Fatal error after Upgrade plugin to V4.0’ is closed to new replies.