Critical Error Duplicating Child Pages
-
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
- You must be logged in to reply to this topic.