Can't add new post for registered custom post type
-
Hi,
I have a perplexing issue with not being able to add a new post for a custom post type. I am getting the “Submit for Review” button instead of “Publish” when trying to add a new post.
After researching, I know this can be caused by a number of issues: problems with the database, auto_increment not set or working correctly on tables, improper database user privileges, etc. – I have looked into all of these and can’t find anything wrong.
This problem did only appear after exporting and importing the database to a new domain, so it does seem likely it’s an issue with the database. However, the only post type affected by this is the one created by this plugin. All other post types (pages, posts, attachments, custom posts created by other plugins, etc) don’t have this problem.
So far I have:
— tried switching themes
— tried disabling plugins
— verified correct database user permissions
— checked all tables using CHECK TABLE and mysqlcheck (none needed to be repaired)
— verified auto_increment is set for all primary_keys, and auto_increment values are reasonable
— tried changing wordpress user permission from admin to contributor, then back to adminBy using chrome dev tools, I have discovered that the post_ID is 0 when adding a new post with this post_type instead of the proper auto_increment value, so it does seem there is some kind of issue there: https://dl.dropboxusercontent.com/s/g5v65sfekegzcvk/2016-01-06%20at%2011.49%20AM.png
What I can’t figure out is why it only affects this one post_type.
Any direction on how to address this would be super appreciated – I’m a bit at my wits end.
Thanks!
- The topic ‘Can't add new post for registered custom post type’ is closed to new replies.