philarmon
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] Can’t create custom taxonomiesWell in case someone else is struggling with something similar – make sure you have the AUTO_INCREMENT set for the option_id of the wp_options table 😉
Forum: Plugins
In reply to: [Custom Post Type UI] Can’t create custom taxonomiesOh I think I have now figured it the problem and it looks like this problem is me (ofc).
While debugging I’ve noticed that it returns $success as true while updating to option
$success = update_option( ‘cptui_taxonomies’, $taxonomies );But there wa no option_name “cptui_taxonomies” in the database. And then I noticed there is an option_id 0 in the wp_options table – looks like instead of creating a new id because it’s the primary key new entries are just saved with the option_id 0. And since there is already something with the option_id 0 it fails to save. Strange that it still returns true though.
I have imported the database from a backup and on the import there were some problems with setting the primary key on this table so I did it manually and looks like I’ve still messed up something .
Anyways after adding this cptui_taxonomies option_name manually it is now working. Now I have to figure out what I have messed up on the table or the MySql settings.
Sorry for wasting your time!
Btw, love your plugin, it’s so simple yet so powerful. Thank you! Keep it up 🙂
Forum: Plugins
In reply to: [Custom Post Type UI] Can’t create custom taxonomiesYes, I don’t see anything in the “Add/Edit Taxonomies” and “Registered Types / Taxes” menus.
I am trying to create a “facility” taxonomy. I also thought it might be related to some reserved names so I have tried to create “aaaaa” and “bbbbbb” with the same result 🙂