Getting an error when creating new post
-
Hi there. I just did an upgrade to WordPress 2.0 from 1.5.2 and the upgrade seem to go fine. Minor issues were around some rewrite not working for pages.
Now when I try to create a new POST, I get an error WordPress database error: [Duplicate entry ‘0’ for key 1]. When I look in the database, there is a post with an ID of 0 that was the first post I created after the upgrade. The last number of the post is 522 but the new post always wants to use ID #0 instead of incrementing the next ID. Please help.
Here’s more on the database post error:
WordPress database error: [Duplicate entry ‘0’ for key 1]
INSERT INTO wp_posts (post_author,post_date,post_date_gmt,post_content,post_title,post_status,comment_status,ping_status,post_name,post_modified,post_modified_gmt) VALUES (1, ‘2006-01-29 02:45:29’, ‘2006-01-29 06:45:29’, ‘BLOG ENTRY HERE’, ‘Daily Del.icio.us for Jan 28, 2006’, ‘publish’, ‘open’, ‘open’, ‘delicious-1138435200’, ‘2006-01-29 02:45:29’, ‘2006-01-29 06:45:29’);WordPress database error: [Duplicate entry ‘0’ for key 1]
INSERT INTO wp_post2cat (post_id,category_id) VALUES (‘522’, ‘6’);
The topic ‘Getting an error when creating new post’ is closed to new replies.