Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 17 replies, has 2 voices.

Last updated by Kor 7 months, 2 weeks ago.

Assisted by: Kor.

Author Posts
June 7, 2024 at 5:32 pm #15717579

omarA-71

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?

June 10, 2024 at 9:20 am #15720980

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

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/

June 10, 2024 at 9:29 am #15721020

omarA-71

This will only work for php files. Not full HTML code which I have on the elementor page.

June 10, 2024 at 9:32 am #15721049

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I see what you mean now. Let me recheck and I will come back to you shortly.

June 10, 2024 at 2:24 pm #15722688

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience.

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

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

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.

June 13, 2024 at 6:54 pm #15737634

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Could you check again now and see if the links are what you'd like it to be?

June 14, 2024 at 4:37 am #15738142

omarA-71

Still the same. Product category link in hard html coded changes to /?product_cat=gsxr_1000_2017

June 14, 2024 at 11:34 am #15739870

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I found a solution to fix this. However, your Website is currently down and could you please check?

Screenshot_229.png
June 14, 2024 at 1:16 pm #15740267

omarA-71

I’m currently switching hosting provider. As my current provider has weak server resources and too pricey.

June 14, 2024 at 1:17 pm #15740270

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

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.

June 16, 2024 at 3:56 pm #15742720

omarA-71

You can resume. The website is live now

June 17, 2024 at 8:20 am #15743877

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've adjusted the category slug for you and this is fixed. Could you check?

June 17, 2024 at 3:30 pm #15746320

omarA-71

Its good now. Could you elaborate how you fixed it?

June 18, 2024 at 5:27 am #15747259

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've changed the underscore _ to dash - on the category slugs. Let me know if you need anything further.

June 21, 2024 at 7:28 pm #15778370

omarA-71

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.