• Resolved prodport

    (@prodport)


    When I click Rewrite & Republish, I seem to get an error page telling me to look at my admin email box and critical error. If I go back to my posts, I do see another post in “draft” status. However, there is no longer the blue Republish button in the top right. Instead, it’s the regular publish button. And if I click that, I end up with two similar posts.

    I checked my Apache error logs and don’t see anything linked to the plugin. It seems to me the problem started around the time I updated to PHP 8.

    Is there anything I can do apart from stepping through and turning off plugins which would be disruptive.

Viewing 3 replies - 1 through 3 (of 3 total)
  • We’re sorry you’re having issue with Republish button. You mentioned you are not seeing any errors either. It could likely be a PHP 8 issue, however, more error details would help rule out the main cause.

    In the meantime, can you please check the browser console for errors? How to find JavaScript errors with your browser’s console?

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    We look forward to hearing from you.

    Thread Starter prodport

    (@prodport)

    I set up a staging site and can reproduce the error. I also installed the wp-debugging plugin to get details. When I click Rewrite and Republish, I get this 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/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-includes/formatting.php:5022 Stack trace: #0 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-includes/formatting.php(5017): map_deep() #1 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-content/plugins/duplicate-post/src/utils.php(52): map_deep() #2 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-content/plugins/duplicate-post/src/post-duplicator.php(302): Yoast\WP\Duplicate_Post\Utils::recursively_slash_strings() #3 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-content/plugins/duplicate-post/src/post-duplicator.php(169): Yoast\WP\Duplicate_Post\Post_Duplicator->copy_post_meta_info() #4 /home/583436.cloudwaysapps.com/esxhhnzscb/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() #5 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-includes/class-wp-hook.php(308): Yoast\WP\Duplicate_Post\Handlers\Link_Handler->rewrite_link_action_handler() #6 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #7 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-admin/admin.php(419): do_action() #9 {main} thrown in /home/583436.cloudwaysapps.com/esxhhnzscb/public_html/wp-includes/formatting.php on line 5022

    If I hit the browser back button and get to the admin panel, I do have a new Draft article. However, there is no Republish button, only Publish.

    Thread Starter prodport

    (@prodport)

    I think the issue might be a conflict with the Cloudflare plugin v4.11.0. When I set up my staging site, I brought over all the plugins. I’ve never logged into this version. However, when it’s active, it triggers the errors above. If I clear out my cache and deactive the Cloudflare plugin, I can successfully use the Duplicate Post plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clicking Rewrite & Republish Doesn’t Always Produce Republish button’ is closed to new replies.