• Resolved dmiyares

    (@dmiyares)


    Hello:

    Love this plugin but it has stopped working on our site ever since we upgraded to PHP 8. We are using 4.3 of the plugin and are on 5.8.3 of WordPress.

    When clicking the duplicate post on the top admin bar on any given post or page OR when clicking the clone in the post index get the “critical error” message. Dug into the log file and see this

    PHP Fatal error:  Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition "Wpil_Model_Link" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition in /mywordpressdirectory/wp-includes/formatting.php:4934
    Stack trace:
    #0 /mywordpressdirectory/wp-includes/formatting.php(4929): map_deep(Object(__PHP_Incomplete_Class), 'duplicate_post_...')
    #1 /mywordpressdirectory/wp-content/plugins/duplicate-post/admin-functions.php(423): map_deep(Array, 'duplicate_post_...')
    #2 /mywordpressdirectory/wp-content/plugins/duplicate-post/admin-functions.php(447): duplicate_post_addslashes_deep(Array)
    #3 /mywordpressdirectory/wp-content/plugins/duplicate-post/admin-functions.php(409): duplicate_post_wp_slash(Array)
    #4 /mywordpressdirectory/wp-includes/class-wp-hook.php(305): duplicate_post_copy_post_meta_info(259119, Object(WP_Post))
    #5 /mywordpressdirectory/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #6 /mywordpressdirectory/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #7 /mywordpressdirectory/wp-content/plugins/duplicate-post/admin-functions.php(744): do_action('dp_duplicate_po...', 259119, Object(WP_Post), 'draft')
    #8 /mywordpressdirectory/wp-content/plugins/duplicate-post/src/handlers/link-handler.php(87): duplicate_post_create_duplicate(Object(WP_Post), 'draft')
    #9 /mywordpressdirectory/wp-includes/class-wp-hook.php(303): Yoast\\WP\\Duplicate_Post\\Handlers\\Link_Handler->new_draft_link_action_handler('')
    #10 /mywordpressdirectory/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
    #11 /mywordpressdirectory/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
    #12 /mywordpressdirectory/wp-admin/admin.php(408): do_action('admin_action_du...')
    #13 {main}
      thrown in /mywordpressdirectory/wp-includes/formatting.php on line 4934, referer: https://www.website.com/a-post-on-website/
    • This topic was modified 3 years, 1 month ago by dmiyares.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Enrico Battocchi

    (@lopo)

    Hi @dmiyares,
    looking at the log, it seems that the problem lies in the Wpil_Model_Link class which is not a class from Duplicate Post nor, as far as I can see, from the WordPress core.
    It seems instead to be part of the Link Whisper plugin. Can you try to perform the same operation with Link Whisper disabled and see if it’s still failing?

    Thread Starter dmiyares

    (@dmiyares)

    Ugh… yeah that’s the issue. I’ll reach out to them.. Thank you Enrico!

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi,

    We’ll be closing this forum thread to keep the forum overview. Please do feel free to create a new topic should you have any other issues with the Yoast Duplicate Post plugin.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP 8 errors’ is closed to new replies.