Title: PHP 8 errors
Last modified: January 7, 2022

---

# PHP 8 errors

 *  Resolved [dmiyares](https://wordpress.org/support/users/dmiyares/)
 * (@dmiyares)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-8-errors-5/)
 * 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 4 years, 5 months ago by [dmiyares](https://wordpress.org/support/users/dmiyares/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Enrico Battocchi](https://wordpress.org/support/users/lopo/)
 * (@lopo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-8-errors-5/#post-15235330)
 * Hi [@dmiyares](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dmiyares/)
 * (@dmiyares)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/php-8-errors-5/#post-15237876)
 * Ugh… yeah that’s the issue. I’ll reach out to them.. Thank you Enrico!
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/php-8-errors-5/#post-15246927)
 * 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.

 * ![](https://ps.w.org/duplicate-post/assets/icon-256x256.png?rev=2336666)
 * [Yoast Duplicate Post](https://wordpress.org/plugins/duplicate-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicate-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicate-post/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicate-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicate-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicate-post/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)

 * 3 replies
 * 3 participants
 * Last reply from: [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/php-8-errors-5/#post-15246927)
 * Status: resolved