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: Bug
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: Symptoms: Questions: |
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, |
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. |
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:
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. |
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. Regards, |
August 5, 2025 at 4:02 pm #17297322 | |
mahmoudA-39 |
Hi 1- ok en site Now still 1- product_type error issue is not resolved 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, |
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 |