Creating default object from empty value in post.php
-
I get this error “Creating default object from empty value in post.php” when I try to create a new post or edit an existing. If I use wp-sweep and remove revisions it works. What I have found in diagnosing this is if I have more that one revision I get this error. I can edit a page or post once than anything after that I get this error till I remove the revisions from database. I have minimal plugins active and does it on replicated test site with duplicated database. I have disabled all plugins and using very basic theme already, hello elementor but does it on any theme. Any suggestions?
The blog I need help with is: (visible only to logged in users)
-
what i have found further is the first revision has a guid but second and any after do not?
-
nobody? When I debug I get the following error but the page content, title etc. is not null. This happens on existing pages.
WordPress database error: [Duplicate entry ” for key ‘uc_guid’]
INSERT INTO
wp99_posts(post_author,post_date,post_date_gmt,post_content,post_content_filtered,post_title,post_excerpt,post_status,post_type,comment_status,ping_status,post_password,post_name,to_ping,pinged,post_modified,post_modified_gmt,post_parent,menu_order,post_mime_type,guid) VALUES (11, ‘2020-08-26 06:44:29’, ‘0000-00-00 00:00:00’, ”, ”, ‘Auto Draft’, ”, ‘auto-draft’, ‘post’, ‘closed’, ‘closed’, ”, ”, ”, ”, ‘2020-08-26 06:44:29’, ‘0000-00-00 00:00:00’, 0, 0, ”, ”) -
finally figured it out, it was caused by a transient index created in the posts table called uc_guid
-
Hi there,
You’re in the wrong forum. Your site is using the open-source WordPress software and therefore you need to seek help at these forums:
https://wordpress.org/support/forums/
These forums are for WordPress.com hosted sites only. If you want to know more about the differences between WordPress.com and the WordPress software you can read this document:
- The topic ‘Creating default object from empty value in post.php’ is closed to new replies.