This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported issues with 'ghost' product categories in their database, where certain term IDs appeared in the term_taxonomy table but not in the terms table, causing discrepancies and errors. Solution: We identified that the problem was due to corrupted terms in the database, which is not directly related to WPML but to the WordPress database itself. To address this, we recommended: 1. Deleting records from the term_taxonomy table that do not exist in the terms table using the following SQL query:
DELETE FROM `eb21term_taxonomy` WHERE term_id NOT IN (SELECT term_id FROM eb21terms);
2. Deleting records from the term_relationships table that do not exist in the term_taxonomy table using this SQL query:
DELETE FROM `eb21term_relationships` WHERE term_taxonomy_id NOT IN (SELECT term_taxonomy_id FROM eb21term_taxonomy);
We advised the client to ensure a complete backup of their database before proceeding with these queries to prevent any potential data loss and suggested consulting a WordPress professional if they are not comfortable performing these operations themselves.
Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Our next available supporter will start replying to tickets in about 4.22 hours from now. Thank you for your understanding.
1.) I have adjusted some of the required assets to: "Translatable
use translation if available or fallback to default language" as this functionality seems to make the most sense for our purpose.
2.) None of my options within "Taxonomies Translation" are set to "use translation if available or fallback to default language"?
3.) The counter being off is a problem, and applicable to WPML. Please feel free to create a new ticket, as I would like it resolved (hence me incorporating it in the ticket)
You can do this on the live server, just download that table prior to your actions for restoration if anything goes astray. We have over 100GB of content on the site; staging for such a minor issue seems excessive.
If you insist, then please define "whitelist this action" and the steps you would like us to take to whitelist this action
You can also let us know the steps you would like us to take in the DB as well.
I definitely recommend including as much viable content in each of your replies to actually ensure there is progress by the time we reply if you do want a positive review from us
Unforutnately the error we are getting is quite vague, otherwise, I would have provided more information, I was hoping you would be aware of any firewalls in place that would prevent the migration from happening.
Based on the information you shared in your previous thread let's proceed this way for now to expedite this.
Please provide us with PHPmyAdmin access, I have enabled the private field reply.
Also, please verify that you have a recent and working backup before proceeding.
We will not delete anything before confirmation, for now, we will inspect, however, For any accidental action a backup made by your team is crucial.
We have reviewed the database and can confirm that the terms tables are corrupted.
For example, term ID 10129 is showing because it exists in the _term_taxonomy table (see screenshot), but we can't edit or delete it because it doesn't exist in the _terms table (see screenshot). There are many terms like this.
This issue is not related to WPML and should be addressed by WordPress support.
If you are not comfortable working with the database and making the necessary fixes, we highly recommend reaching out to a WordPress professional to patch it.
We can suggest some queries to clear the corrupted terms, but these queries are not tested, so you would be using them at your own risk.
Additionally, we will not be responsible for any data loss. It is crucial to have a complete backup before proceeding.
1. First, delete the records from term_taxonomy table those does not exist in terms table.
DELETE FROM `eb21term_taxonomy` WHERE term_id NOT IN (SELECT term_id FROM eb21terms);
2. Now delete records from term_relationships table those does not exist in term_taxonomy table.
DELETE FROM `eb21term_relationships` WHERE term_taxonomy_id NOT IN (SELECT term_taxonomy_id FROM eb21term_taxonomy);
I'm glad to hear that the queries worked ok to resolve this issue!
The Cpanel details are not working anymore, however, after discussing this with my colleague, if the queries were executed successfully without any error the records should be deleted from DB.