Skip to content Skip to sidebar

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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

Tagged: 

This topic contains 8 replies, has 0 voices.

Last updated by mahmoudA-39 7 hours, 37 minutes ago.

Assisted by: Itamar.

Author Posts
July 29, 2025 at 6:13 am #17277084

mahmoudA-39

Background of the issue:
I am trying to change the language on my site hidden link, and I attempted to generate .mo files for two plugins: Custom Room Datepicker and Custom Global Datepicker. The .pot and .po files are already created. In Support > troubleshooting, when I click 'Show custom MO Files Pre-generation dialog box', no box appears, but the dialog box shows when I click 'Check for String Issues'.

Symptoms:
1. The site breaks when changing language. 2. I cannot see any .mo files after clicking the blue button to generate them. 3. All strings are shown in the table titled 'This is the list of strings that are not used or they are linked to wrong translation data' when I click 'Check for String Issues'.

Questions:
Why does the site break when changing language?
Why can't I generate .mo files for the plugins?
Why does the 'Show custom MO Files Pre-generation dialog box' button not display the dialog box?
Why are all strings shown as not used or linked to wrong translation data?

July 29, 2025 at 11:52 am #17278595

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I can see that when I switch your site to English, a fatal error occurs. Please see the attached screenshot. Let's please check for PHP errors while this happens.

If the problem persists, please share with us WordPress's debug log (not WPML debug information). Please check this page for instructions.

https://wpml.org/documentation/support/debugging-wpml/

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);

After this, repeat the action that causes the problem on your site--switch from Arabic to English. In this case, the errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us.

Thanks,
Itamar.

2025-07-29_14-48-22.jpg
July 30, 2025 at 3:26 pm #17282820

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Thanks for sharing the debug.log with me. I'm consulting our second-tier supporters about those errors. I'll update you here once I have their reply.

I appreciate your patience.
Itamar.

July 31, 2025 at 2:33 am #17283442

mahmoudA-39

Hi

Appreciate your urgent attention.

Regards

August 1, 2025 at 8:23 am #17287241

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Regarding the message, "We detected that the product_type field was set incorrectly for some product translations." Please try the following and check if it fixes the problem:

1. Create a full backup of the database and website.

2. Navigate to WPML > Settings > Taxonomies Translation.

3. Set the taxonomy product_type to "Not translatable".

4. Go to WooCommerce > WooCommerce Multilingual & Multicurrency > Settings > Troubleshooting.

5. Locate the "Fix product_type taxonomy terms" option and click Start.

If it does not help, our second-tier supporter identified the following, according to the errors you shared:

The problem is some unexpected value that Elementor Pro is receiving. As far as I can see, it happens on elementor-pro/modules/woocommerce/tags/product-terms.php:77, and it is possible that either the value returned by:

		$value = get_the_term_list( $product->get_id(), $settings['taxonomy'], '', $settings['separator'] );

is invalid. Or the taxonomy in the $settings variable is wrong (most likely)
So compare maybe the original vs the translation and check for taxonomy value in the elementor key meta, maybe for the widget woocommerce-product-terms-tag

If you can't solve the problem with the above information, please give me access to your site and allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.

If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

August 5, 2025 at 2:03 pm #17296816

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, and thanks for the access details.

I checked things on your site.

A. Regarding the fatal error that occurs when switching the language into English. I changed the theme from your custom Blocksy Child theme to the parent Blocksy theme. I also updated the Blocksy theme to its latest version. Now the English language is loading without a fatal error. Please see the attached screenshot en-is-ok.jpg. The reason for the fatal error lies in the custom code you added to the Blocksy child theme. Please review the code. If you find any piece of code that might cause this problem, and you have any questions about it and how you may write the code differently, we will be happy to advise about it.

B. In the backend, I see only three menu items under WPML. Please see the attached screenshot wpml-only-3.jpg. And when I try to access WPML -> Translation Management, I get this message: "Sorry, you are not allowed to access this page." Please see the attached screenshot, sorry-not-allowed.jpg. To toggle this problem, please proceed with the following.

We suspect a collision with another plugin might cause this problem. Please get your site into a minimum environment by deactivating the third-party plugins except WPML and Strings Translation. Then, please check if the problem persists. If it does not continue, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

Needless to say, if you know what is preventing users from accessing WPML's settings, please correct this.

Regards,
Itamar.

en-is-ok.jpg
wpml-only-3.jpg
sorry-not-allowed.jpg
August 5, 2025 at 4:02 pm #17297322

mahmoudA-39

Hi

1- ok en site
2- WPML menu is showing all submenu . May be the access given to you is limiting this even it is administrative access.

Now still

1- product_type error issue is not resolved
2- The errors shown in log about WPML

Regards

August 6, 2025 at 9:44 pm #17300882

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'm glad that the problem with switching the language is fixed now.

To debug the issue with the errors showing in the debug.log, please allow me to take a copy of your site. For this, I must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.

Regards,
Itamar.

August 7, 2025 at 3:05 am #17301095

mahmoudA-39

Hi

Sure, go ahead.

For your information, the errors related to cache key `category` , product_brand & product_cat.

"objectcache.notice: The cache key `category` is incompatible with prefetching and the group `WPML_Slug_Translation_Records::taxonomy` should be added to the list of non-prefetchable groups. For more information see: hidden link
objectcache.notice: The cache key `product_brand` is incompatible with prefetching and the group `WPML_Slug_Translation_Records::taxonomy` should be added to the list of non-prefetchable groups. For more information see: hidden link
objectcache.notice: The cache key `product_cat` is incompatible with prefetching and the group `WPML_Slug_Translation_Records::taxonomy` should be added to the list of non-prefetchable groups. For more information see: hidden link