Missing data in wp_terms, wp_term_taxonomy & wp_term_relationships
-
Hi,
Just recently upgraded to 4.1 (no visible errors) but something very weird has gone on.
Firstly It would appear that some data (wp_terms, wp_term_taxonomy & wp_term_relationships) in relation to my Custom Post Types vanished.Its as though in the WP Admin area the list view and edit screen do infact show the correct references (taxonomies) – but my front-end code which pulls the records out can’t retrieve any records (front end code has not changed for ages).
Digging deeper, I can edit a post and can clearly see which taxonomy checkboxes are ticked. I can even select some more and save the post. But they are not appearing in the front-end.
So it appears that on a Add new post / Edit forms, the terms are being saved, BUT NO – just noticed even in WP Admin area, when listing the posts from a Custom Post Type it shows the correct taxomonies its linked to but when you click on the hyperlinks:
eg: https://my-domain/wp-admin/edit.php?post_type=saving_product&saving_type=affinity-accountsNothing shows up.
So I dug further and looked at the database and then spotted that somehow
a) some of the terms, relationships had vanished – mentioned earlier
b) even if I edit a post or create a new one and tick more tax terms – upon Save/Publish they ARE NOT being written to the term tables.If I (which I have) manually byhand put some data back in the those 3 tables – bingo both my front-end script and the links within the WP Admin listing screen then works!
I hope it makes sense because I’m confused – any help much appreciated as I really need some help please as my customer needs to be able to edit their posts and see the correct results.
All plugins upto date.
Even tried disabling all plugins except CPT and still no joy
Repaired and restarted DB – still no no joyThanks
- The topic ‘Missing data in wp_terms, wp_term_taxonomy & wp_term_relationships’ is closed to new replies.