• Resolved Sapphire

    (@sapphire)


    On one of my websites, sometimes Rewrite & Republish works. The rest of the time, and all the time on two of my other websites, it results in a “critical error” and the new draft doesn’t have a “Republish” option, which defeats the purpose. I used the Health Check plugin to deactivate all plugins and themes, chose “enable during troubleshooting” for Yoast Duplicate, and the error still keeps happening.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Sapphire

    (@sapphire)

    On further testing, I’m finding this feature works on some posts but not others. I’ve ruled out that the age of the posts is the issue. Not sure what else to check.

    Thread Starter Sapphire

    (@sapphire)

    Here are relevant entries from the error log. My host checked to make sure the problem isn’t on the server end. I’ve altered the site name for privacy.

    [Fri Jun 07 07:18:15.790076 2024] [fcgid:warn] [pid 3037498:tid 140329638426368] [host mysite.com] [remote 141.158.28.105:58753] 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 /var/www/html/my/mysite.com/wp-includes/formatting.php:5148, referer: https://mysite.com/wp-admin/edit.php?post_status=publish&post_type=post&paged=55
    ), referer:
    https://mysite.com/wp-admin/edit.php?post_status=publish&post_type=post&paged=55
    [Fri Jun 07 07:18:15.790143 2024] [fcgid:warn] [pid 3037498:tid
    140329638426368] [host?mysite.com] [remote?141.158.28.105:58753]
    mod_fcgid: stderr: #2
    /var/www/html/mi/mysite.com/wp-content/plugins/duplicate-post/src/post-duplicator.php(302)
    : Yoast\\WP\\Duplicate_Post\\Utils::recursively_slash_strings(),
    referer:
    https://mysite.com/wp-admin/edit.php?post_status=publish&post_type=post&paged=55

    Thread Starter Sapphire

    (@sapphire)

    I managed to fix this after finding another post with the exact same error, and I’m sharing the solution because no one in any of the other threads I found did. This fix worked on all three of the sites I was testing.

    This “Wpil_Model_Link” was the problem. It’s from LinkWhisper. I haven’t used that plugin in about a year. I removed the database tables it had left behind, but the error persisted. Then I had to search my database for “Wpil_Model_Link”. On each site’s db, there were entries for that in the post meta and term meta tables. After backup up the db, I clicked “delete” beside all those entries to remove them. The error stopped happening. Nothing on any of my sites appears to be broken, and I’ve looked carefully.

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