• Resolved highlyresponsivetech

    (@highlyresponsivetech)


    The problem: I get a fatal error any time I click “Rewrite & Republish” even though the draft actually gets created but not everything gets copied over most of the time.

    The error: 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 /home/cheerfulcook/public_html/wp-includes/formatting.php:5022 Stack trace: #0 /home/cheerfulcook/public_html/wp-includes/formatting.php(5017): map_deep(Object(__PHP_Incomplete_Class), Array) #1 /home/cheerfulcook/public_html/wp-content/plugins/duplicate-post/src/utils.php(52): map_deep(Array, Array) #2 /home/cheerfulcook/public_html/wp-content/plugins/duplicate-post/src/post-duplicator.php(302): Yoast\WP\Duplicate_Post\Utils::recursively_slash_strings(Array) #3 /home/cheerfulcook/public_html/wp-content/plugins/duplicate-post/src/post-duplicator.php(169): Yoast\WP\Duplicate_Post\Post_Duplicator->copy_post_meta_info(29236, Object(WP_Post), Array) #4 /home/cheerfulcook/public_html/wp-content/plugins/duplicate-post/src/handlers/link-handler.php(217): Yoast\WP\Duplicate_Post\Post_Duplicator->create_duplicate_for_rewrite_and_republish(Object(WP_Post)) #5 /home/cheerfulcook/public_html/wp-includes/class-wp-hook.php(308): Yoast\WP\Duplicate_Post\Handlers\Link_Handler->rewrite_link_action_handler(”) #6 /home/cheerfulcook/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array) #7 /home/cheerfulcook/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /home/cheerfulcook/public_html/wp-admin/admin.php(419): do_action(‘admin_action_du…’) #9 {main} thrown in /home/cheerfulcook/public_html/wp-includes/formatting.php on line 5022

    Attempted resolutions: I’ve made sure all plugins are updated and that WordPress is updated. I’ve deactivated all non-critical plugins and plugins that have any interaction with the post editing side of things. I’ve tried it on all kinds of posts. I’ve also waited for various updates to be released on other plugins and WordPress to make sure it’s not a temporary compatibility issue.

    Can you please provide any assistance or direction on how I can solve this problem?

Viewing 1 replies (of 1 total)
  • @highlyresponsivetech

    In addition, I would suggest checking the PHP version you’re using. Plugin is not yet fully compatible with PHP 8.0+. Therefore, we recommend using PHP 7.4 or at least it should be fine with PHP 8.0.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error When Rewrite and Republish Is Clicked’ is closed to new replies.