• Resolved whistlerdan

    (@whistlerdan)


    I tried to duplicate a page today using both “New Draft” and “Rewrite and Republish”. Both gave me a WP critical error.

    I then disabled all other plugins on the site and tried again. Same issue.

    After testing these actions on some pages, I saw that they worked fine. The pages that created the critical error were all pages that had a defined parent page. The problem is, after creating a new page, and giving that a parent, the problem did not occur.

    For some reason, it’s only an issue on some of my older pages on the site that have a parent page.

    Any ideas why that might happen?

    EDIT: Ok, I think I figured this out from the server logs. Those older pages were created when I was using the Elegant Themes plugin, Divi. This theme leaves a whole load of garbage in the post meta when you remove it, and maybe this is the cause?

    2024/07/19 19:41:22 [error] 6436#6436: *750 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: The script tried to modify a property on an incomplete object. Please ensure that the class definition “ET_Core_PageResource” 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 /SITE/public/wp-includes/formatting.php:5137

    • This topic was modified 4 months, 1 week ago by whistlerdan.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @whistlerdan

    I am sorry to learn about the critical error you are facing. May I know if you still have Divi theme activated on your site?

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    This thread was marked resolved due to a lack of activity by the original poster. The original poster can change the status to Not Resolved to re-open the issue or open a new topic.

    If you are not the original poster but have a similar issue, please open a new topic.

    @whistlerdan yes, the cause is DIVI. You have to manually remove all records with the “ET_Core_PageResource” entry. In practice when you try to duplicate a post, it also duplicates all the records linked to that post, so since there is no more DIVI you get that error. I solved it by removing all the records from the database.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.