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.

This topic contains 36 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 1 month ago.

Assisted by: Long Nguyen.

Author Posts
November 20, 2023 at 1:50 am #14872439

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I'm waiting for your feedback.

Thanks.

November 20, 2023 at 11:33 am #14875925

tuomoN-2

Hi Long,

I got more information from wordpress:
https://wordpress.org/support/topic/utf8mb4_unicode_ci-to-utf8mb4_unicode_520_ci/

I would think the plugin’s source code could be modified to utilize the 520_ci variant. I’m not sure how essential the 520_ci variant is. What’s more essential is that the utf8mb4 charset is used and that all the collations are the same. The importance of 520_ci likely only matters to a few specific languages. Even then, the worst that would happen is alphabetical order of special characters might be incorrect.

The suggested SELECT CONCAT query is supposed to alter the collation of all tables in your DB, so I don’t understand your concern about needing to do so one by one.

Note that not only do tables have assigned collation, the overall DB has a setting and every textual column in every table also has a collation setting. You generally want them all to be the same. I imagine a query similar to the one for tables can be used to alter columns.

Be sure everything is already using utf8mb4 charset (not collation). Do not attempt to change the charset if it’s not already utf8mb4. That kind of change requires the data be re-encoded.

Please make a complete backup of your DB before attempting any sort of change. It’s all too easy to accidentally corrupt things. You need a way to revert back to what you have now.

November 21, 2023 at 2:51 am #14881527

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

While you are fixing the issue with the database collation, could you please try to replicate the issue on the test site that I shared above? So we can confirm it is a compatibility issue between WPML and WP Global Cart or just a specific issue on your site.

Thanks.

November 27, 2023 at 7:41 am #14926851

tuomoN-2

Has WP Global Cart added their plugin in to your test site? If not I can do that as well.

November 27, 2023 at 8:46 am #14927583

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Not yet, I still do not see the plugin WP Global Cart activated on the test site. Can you please ask them to install it on the test site and replicate the issue?

Also, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

December 4, 2023 at 6:27 pm #14990481

tuomoN-2

Hi Long,

My brother came and looked the tables from phpMyAdmin and found that these tables should be changed from your plugin utf8mb4_unicode_ci to utf8mb4_unicode_520_ci if it is okay?

ALTER TABLE sukkianet_wp1.wp_icl_string_positions CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_string_status CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_languages CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translations CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translation_downloads CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translation_batches CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translation_status CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_string_packages CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_node CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_string_batches CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_strings CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translations CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_content_status CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_cms_nav_cache CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_flags CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translate_job CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_translate_job CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_background_task CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_reminders CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_locale_map CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_core_status CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_languages_translations CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_string_translations CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_message_status CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sukkianet_wp1.wp_icl_mo_files_domains CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;

December 4, 2023 at 6:39 pm #14990681

tuomoN-2

This is because the other site has already the utf8mb4_unicode_520_ci database collation so both of them should be the same.

wp_5_icl.jpg
December 4, 2023 at 10:36 pm #14991907

tuomoN-2

I just added the WP Global Cart to the test site and I changed all the collations of all tables in phpMyAdmin.
For some reason these 3 tables didn't change from utf8mb4_unicode_ci to utf8mb4_unicode_520_ci:
wp_icl_translate
wp_woocommerce_gpf_google_taxonomy
wp_litespeed_url
The site didn't break and the same problem still exists.
You can send me the private shared info again so I can send the wp-admin and FTP.

December 5, 2023 at 2:29 am #14992293

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I see the plugin WP Global Cart is installed on the test site. I also setup the multisite environment and WPML, WooCommerce plugins. Please help me activate a license key of the WP Global Cart plugin and replicate the issue there and let me know the steps to replicate it.

If you want to share your site credentials (wp admin and FTP), please add them to your next reply. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

WooCommerce Global Cart ‹ Network Admin: wordpress-278662-4065231.cloudwaysapps.com Sites — WordPress 2023-12-05 09-21-07.png
December 5, 2023 at 10:05 am #14995095

tuomoN-2

I guess you are doing something on the website at the moment? Let me know when you have checked everything. 🙂

December 5, 2023 at 2:22 pm #14999195

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

The issue is also related to the theme Basel on your site. If I switch the theme to a default one of WordPress (2021), it works properly. It is more complex than I think, a compatibility issue between WPML, WP Global Cart plugins and Basel theme.

I'm discussing this issue with our 2nd tier support and update you here when I have something to share.

Thanks for your patience.

December 5, 2023 at 5:36 pm #15001661

tuomoN-2

Hi Long,

Basel/Xtemos tested your plugin with wordpress default theme 2022 or 2023. I can ask which theme they tested your plugin with if you want?

Btw WP Global Cart plugin coders tested compatibility with your plugin some time ago.
The person was Bigul from your side.
https://onthegosystems.com/team/bigul-malayi/

This was the last messages from WP Global Cart that I got then Rick and Bigul talked together about the plugin codes:
Hi,
We created a test environment, which can be downloaded at hidden link
The mapped domain which would be used is wpml-global-search.ldev

To replicate the issue, go to hidden link and you will notice the products that match the Logo keyword, from 2 different shops. If you go to hidden link and activate the WPML, it will return no returns. That is because the WPML insert into the search MySQL query language arguments, which fails for other sites.

Thank you,
Rick
Support Department
hidden link
contact@wpglobalcart.com

December 5, 2023 at 9:13 pm #15002757

tuomoN-2

I added a new license key to your test site.

December 6, 2023 at 2:52 am #15003421

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I activate the theme Twenty TwentyOne on the site sukat.com, the error won't happen. Please check this screen record hidden link

The issue isn't related to only WP Global Cart in this case, but both WP Global Cart and Basel. If it is possible, please create a full backup of your site and database then share it with me. I will escalate it to our Compatibility team.

You can use the following plugins to create the backup: 
https://wordpress.org/plugins/duplicator/
https://wordpress.org/plugins/all-in-one-wp-migration/

Thanks.

December 6, 2023 at 10:08 am #15005981

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I'm asking our 2nd tier support about this issue and I will update you here when I have something to share.
Meanwhile, please try to replicate the issue on the test site and let me know steps to do that.

Thanks.