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.
Tagged: Not WPML issue
This topic contains 8 replies, has 2 voices.
Last updated by Carlos Rojas 1 year, 9 months ago.
Assisted by: Carlos Rojas.
Author | Posts |
---|---|
August 21, 2023 at 1:20 pm #14264523 | |
louisN-4 |
As you know, every product has a different product ID depending on the language. The problem we are experiencing is that sometimes when editing a product using the Hebrew product Id (the main language for the website), it instead tries to edit the Dutch version of that product. In the WPAI logs I can see it is actually trying to update the Dutch product using the Dutch product ID, instead of the Hebrew product. I did contact WPAI support but they referred me to you. Here is the log below. We provided ID 2468286 (the Hebrew product), but as you can see the plugin is editing ID 6833117 (the Dutch product). Also, the update has no effect and nothing has changed, even though the log says it was successful: |
August 21, 2023 at 3:16 pm #14265559 | |
louisN-4 |
in the past we were asked to put in our functions.php this code, so images won't duplicate to other languages, maybe this has an effect on wp all import, and if it does, you need to ask wp all import to fix the bug on their end /** |
August 22, 2023 at 11:35 am #14270597 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Hello, 1.- Could you provide the URL where this code was advised to add to your functions.php file? 2.- If you remove the code, does the issue disappear? Regards. |
August 22, 2023 at 12:04 pm #14270863 | |
louisN-4 |
this is - is in our functions.php, and it was provided to us after very long debug by sumit from ontrack systems (he is a senior there) our dev louis, don't think the code mentioned above could affect wp all import, but maybe you know better what could cause the mixup for wp all import not to update the hebrew (which is our main language) do you want admin access? |
August 22, 2023 at 1:02 pm #14271395 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Hi, I don't think this code will affect the site either. You mentioned that if you manually edit a product in Hebrew it will work as expected, so I understand that you are trying to edit the products in Dutch via WPML All Import. If the above is correct, then I would recommend you try the following: Also, I recommend you to check the import files as most of the problems with WPML All Import comes from a wrong configuration, specially in the 'connector' field |
August 22, 2023 at 1:09 pm #14271491 | |
louisN-4 |
i am not certain about your solution and its not so easy, since, we have 50000 products on the site this is the product maybe will try your solution just on this |
August 22, 2023 at 1:10 pm #14271495 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Yes, please. Try the solution on that product and check if the issue disappeared. Also, don't forget to check the import files and the structure |
August 23, 2023 at 7:26 am #14274985 | |
louisN-4 |
I have found the problem. WPAI has a setting "Content language". Even though the default is Hebrew, it seems that Dutch was always selected automatically. I'll just have to ensure manually that Hebrew is also selected. Thanks for your time. |
August 23, 2023 at 7:48 am #14275157 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Hi there, I'm glad to hear that the issue is solved 🙂 Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to help. |