Background of the issue:
I am trying to fix an issue with WPML on my site hidden link. I have custom HTML code on the main page with links to categories. When I disable all WPML plugins, the issue disappears, but it comes back once reactivated.
Access main page on hidden link
Symptoms:
WPML keeps changing some category slugs to ?product-category=?. For example, the link for 'GSXR 1000' starts with ?, but 'Hayabusa' shows the correct link.
Questions:
Why does WPML change some category slugs to ?product-category=?
How can I prevent WPML from altering the category slugs?
Apologies for the delay due to the weekend. I have reviewed your custom HTML code and noticed that it lacks the necessary text translations for strings or links. Could you please refer to this section of the documentation, particularly the "link within strings" method, to see if it resolves your issue? You can find it here: https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/
I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.
To guide you further, please adhere to these instructions:
1. View the Duplicator instructions video: hidden link
3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.
Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.
Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.
Thanks for your reply. Yes, I noticed some issues with the site yesterday when I inspected it. It keeps crashing. Ok, please let me know once it's done and I will show you how to fix the issue.
I notice this error It ony shows up when browsing producut and checking out. It comes from WPML suite
2024/06/21 18:15:12 [error] 11661#11661: *423781 FastCGI sent in stderr: "PHP message: WordPress database error Unknown column 'posts.ID' in 'on clause' for query SELECT SUM( order_item_meta.meta_value ) as qty, order_item_meta_2.meta_value as product_id FROM wp_tkqbrzh17a_posts AS orders INNER JOIN wp_tkqbrzh17a_woocommerce_order_items AS order_items ON orders.ID = order_id INNER JOIN wp_tkqbrzh17a_woocommerce_order_itemmeta AS order_item_meta ON order_items.order_item_id = order_item_meta.order_item_id INNER JOIN wp_tkqbrzh17a_woocommerce_order_itemmeta AS order_item_meta_2 ON order_items.order_item_id = order_item_meta_2.order_item_id INNER JOIN wp_tkqbrzh17a_postmeta AS currency_postmeta ON posts.ID = currency_postmeta.post_id WHERE orders.post_type IN ( 'shop_order' ) AND orders.post_status IN ( 'wc-completed','wc-processing','wc-on-hold' ) AND order_item_meta.meta_key = '_qty' AND order_item_meta_2.meta_key = '_product_id' AND orders.post_date_gmt >= '2024-06-01' AND orders.post_date_gmt <= '2024-06-21 22:15:10' AND currency_postmeta.meta_key = '_order_currency'" while reading response header from upstream, client: 172.71.135.2, server: hidden link, request: "GET /wp-admin/index.php HTTP/1.1", upstream: "hidden link:", host: "mp-performance.ae", referrer: "hidden link"
root@mp-performance:/var/www/html/wordpress/wp-content/themes/elessi-theme-child#
The topic ‘[Closed] WPML keeps changing’ is closed to new replies.