Have a blog with a few post categories and a basic navigation menu you just set up: you want to sort your categories order manually, then search and decide to test Intuitive custom post order.
In the end, you’re not satisfied and, going to switch to another plugin of the same type, you leave that one just deactivated.
Then, you install Category Order and Taxonomy Terms Order, and you’re happy with the UI and results.
Time to clean up plugins: you click delete on Intuitive custom post order.
and BUM
you just lost all of your post categories, even the default Uncategorized, and the navigation menu entries are gone as well.
Don’t even mention if you tried doing the same on a big woocommerce catalogue with tens of categories and crowded menus and submenus.
That was my scenario and luckly I made a immediate restore from automated server backup.
I tested it also with a clean WP installation and it happened as well.
Why this happens:
Credits for the first warning goes to this support request, 5 years old now, where @leeppolis detailed the issue in the table term_order
in wp_terms
using the same name in both plugins and being deleted the very moment you remove Intuitive custom post order plugin.
How to mitigate:
testing further, I discovered that uninstalling e deleting Category Order and Taxonomy Terms Order, and then installing it again restores the wp_terms > term_order column, and even if the ordering data are lost, it looks like categories and main menu show back again.
Be aware that I tested this in a simple testing installation, and I’d not rely on this as “the” solution.
@NSP-Code maybe renaming wp_terms
term_order
column to something else in a future release could made the trick.
TL;DR;
if you tested / used Intuitive custom post order plugin and decided to deactivate and delete it, please be careful, mostly If you switched to this one or another sort ordering plugin.
First make a full backup.
Then deactivate Intuitive custom post order.
Finally, remove Intuitive custom post order manually via FTP, in /wp-content/plugins/intuitive-custom-post-order.
This way you’ll be able to delete the plugin without triggering the database column deletion that can cause the conflict.`
As a result, I need to associate the matching product ids with the taxonomy.
As in the picture https://joxi.ru/v29lPgwIZ1b9nm
WordPress database error: [Table ‘myDB.wp_terms’ doesn’t exist]
SELECT object_id, t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN (‘category’) AND tr.object_id IN (0)
I do have table prefix, so my terms table is nx_terms
instead of wp_terms
.
If I modify the /easyindex/lib/EasyIndex.php
on line 1043-1044 to:
$q = "SELECT object_id, t.*, tt.* FROM MYDBPREFIX_terms AS t INNER JOIN MYDBPREFIX_term_taxonomy AS tt ON tt.term_id = t.term_id ";
$q .= "INNER JOIN MYDBPREFIX_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id ";
And I do the same modification in EasyIndexIndex.php
line 1067-1068, then the error disappears.
Cheers!
I have checked the table and it and it’s setup as below.
Keyname Type Unique Packed Column Cardinality Collation
PRIMARY BTREE Yes No term_id 8741 A
slug BTREE Yes No slug 8670 A
name BTREE No No name 8741 A
Are they correct that it shouldn’t be unique? They referred my to the following article but its a bit over my head tbh.https://core.trac.www.ads-software.com/ticket/22023
Also if there is an issue with this table, is there any plugins out there that I can install to check all my tables are correctly setup and correct for the current version(version 5.3.2–en_GB) I am running.
]]>The process ‘Creating sort index’ are hanging and do not seem to be terminating causing the processes to build up once again. The tables they are referring to, wp_terms and wp_term_taxonomy, are fairly large tables, 238109 rows each.
How can I go in and optimize the databases? Or, is there another fix without using plugins? I am getting a little shy of the plugins.
Thank you for any direction you can share.
]]>I tried disabling all plugins leaving woocommerce. My storefront child theme is not much changed.
Im using caching plugin but while not cached, pages loads really slow.
Cart page loads on average 1.5 sec but test woocommerce site on same server with no products but same theme – 0.7 sec.
]]>Recently ran into a problem where a particular author was not being added to notifications. Upon clicking this author’s checkbox in the notifications meta box, the row would flash green indicating the notification was saved, but upon reload of the edit page, that author was not listed as “selected.” Other authors were being saved correctly for this post.
Digging into the database, I found the wp_terms table entry for this particular user had the wrong display name in the “name” field. I suspect this user’s display name had changed since she was first added to post notifications, but the wp_terms table was still using her old display name.
I was ultimately able to resolve the issue by updating the name field in wp_terms to the author’s correct display name. Hopefully this is helpful to others facing a similar issue.
It’s surprising (to me anyway) the plugin uses the WordPress taxonomy system to manage notifications. I’m not a sophisticated plugin author by any means, but I would have linked notifications into the wp_postmeta table and used the authors’ user IDs instead of their names to tie everything together… Using the author’s display name as a key seems problematic, especially if that name ever changes.
]]>your plugin is amazing
but there are few issues
when the tags are deleted it is not deleting from wp_terms and wp_term_relationships
i could clean up wp_terms using various database cleaning plugin but non of them could delete orphaned data from wp_terms_relationships
removing tags is not only important but removing left overs and orphaned files is important
can you look into this and do the needful
https://www.ads-software.com/plugins/wp-delete-tags/
]]>