Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was unable to update the English translation of a static block, and products on translated pages were leading to broken links after translating some categories.
Solution:
We recommended translating categories in bulk using automatic translation. The client should create a product, assign all available categories to it, and send it for automatic translation via WPML > Translation Management > Dashboard. This should translate all assigned categories. Additionally, for the issue with the widget not being translated, the client should translate the widget at WPML > String Translation by selecting the text-domain "widgets". If this does not resolve the issue, creating one widget per language might be necessary. For further guidance, we suggest reading the quick guide on sending content for automatic translation at https://wpml.org/documentation/translating-your-contents/#sending-content-for-automatic-translation.

If the provided solution does not apply or is outdated, we recommend opening a new support ticket. It is also advisable to check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/.

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 52 replies, has 3 voices.

Last updated by Andreas W. 3 months, 3 weeks ago.

Assisted by: Andreas W..

Author Posts
September 5, 2024 at 2:58 am #16142959

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies, WPML AI currently is yet only available from English to German, Spanish, French, Portuguese, and Italian.

It looks as you can not yet translate from Portuguese into other languages, but I am positive that this engine will support such feature very soon.

Source:
https://wpml.org/announcements/2024/08/introducing-wpml-ai-superior-translation-engine-for-wordpress/

I have now enabled DeepL on your site as the only engine and the language mapping was successful.

September 5, 2024 at 8:33 am #16143590

danielS-231

Thank you,i will use the DeepL, now i just need to know how to do for the product title not to be translated, has i asked before i dont want any product title to be translated, i did not managed to understand how to do this...

Thank you for all the help!

September 5, 2024 at 12:44 pm #16145095

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

As I mentioned earlier, usually you would use the Glossary. We do sadly not have any option to exclude titles from translation.

Maybe you could give this custom code solution a try?
https://wpml.org/forums/topic/how-to-prevent-the-title-field-of-each-page-from-being-translated/#post-13558975

September 5, 2024 at 1:00 pm #16145138

danielS-231

Hello,

But that custom code is for Page titles, will it work for product names?

If so could you implement the code, I have never done it before...

Thank you!

September 5, 2024 at 2:04 pm #16145598

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I had not tested this snippet yet, but from what I see it should work with all titles.

I gave it a quick test now, and it works for posts, pages and products.

September 5, 2024 at 4:01 pm #16145941

danielS-231

Hello,

Still having problems, i had to revert for a backup of yestarday because cloudflare messed the site up wen i was translating all the products...

Now i placed the code you sended again in the php file, i added my credit card (unfortonatly the cost of translating all the products is almost 200€, very expensive...but ok), now that i try to translate it asks to buy credits...

I already opted for the option pay has you go, it is the cheapest one i think, i dont want to add credits, what do i need to do now?

Just want to finish this once for all 🙂

Thank you once more for the help!

September 5, 2024 at 10:09 pm #16146923

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You will need to go to WPML > Translation Management > Dashboard, select "Products" from the dropdown, then mark all products, and send them for automatic translation.

Please read this very short guide and check out the screenshots:
https://wpml.org/documentation/translating-your-contents/#sending-content-for-automatic-translation

The WordPress Screen Display Option in the top right corner of the screen allow you to change the amount if items per page. I have changed it for you to 200 items now.

September 6, 2024 at 7:27 am #16147485

danielS-231

Hello,

I already understood how to do the translations, but i cant advance because it askes me credits: hidden link

I have setup the pay has you go here witch is the way i want to pay, its the cheaper option:
hidden link

Has it was not working i thought of removing it and adding it again but i have a legacy pricing on wpml and i dont want to lose it:
hidden link

Please check so i can finnaly translate the products.

Thank you!

September 7, 2024 at 1:31 am #16150652

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The Legacy Subscription model works with limits and according to our system your site is scurrently set to a limit of 2000 credits. You have reached this limit.

Please adjust the limit to a higher amount and you should be able to use credits.

See your screenshot two. Click "Enable". Then test again.

September 7, 2024 at 7:53 am #16150916

danielS-231

Thank you, that solved it, unfortonatly after putting all products to translate i got a 504 Gateway Time-out error wen translating, i contacted our hosting and they sended me a log of error of WPML, i send it here:

Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:

0 [internal function]: WPML\FP\Obj::WPML\FP{closure}(NULL, 'ate_job_id', 'a679b597cbcb4fc...')
1 /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
2 [internal function]: WPML\FP\Obj::WPML\FP{closure}(NULL, 'ate_job_id', 'a679b597cbcb4fc...')
3 /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
4 /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPML\FP\Obj::__callStatic('propOr', Array)
5 [internal function]: WPML\FP\Obj::WPML\FP{closure}('ate_job_id', 'a679b597cbcb4fc...', 'cw_request in /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112
[07-Sep-2024 06:01:35 UTC] PHP Fatal error: Uncaught InvalidArgumentException: item should be a Collection or an array or an object in /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php:112
Stack trace:

0 [internal function]: WPML\FP\Obj::WPML\FP{closure}(NULL, 'ate_job_id', '88443bac9b0b4c1...')
1 /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
2 [internal function]: WPML\FP\Obj::WPML\FP{closure}(NULL, 'ate_job_id', '88443bac9b0b4c1...')
3 /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
4 /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php(90): WPML\FP\Obj::__callStatic('propOr', Array)
5 [internal function]: WPML\FP\Obj::WPML\FP{closure}('ate_job_id', '88443bac9b0b4c1...', 'cw_request in /home/chipncha/jardimdapini.pt/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Obj.php on line 112

And now i got the translations like this:

hidden link
hidden link

How should i proceed to make them finish the job?

Thank you!

September 9, 2024 at 8:40 am #16154454

danielS-231

Hello,

We still have the shop limited to make no sales until we fix this problem...If possible i would kindly ask to help us finish the trasnlation of the products has soon has possible so we can have the shop back online.

Thank you!

September 9, 2024 at 4:53 pm #16157978

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can investigate the issue further.

However, I would also be very grateful if you could provide a staging site or copy of the website from your server yourself for this purpose. This step would only be required if the issue is replicable on such a staging site.

If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.

If you are unable to provide such a copy of the site for testing, please let me know on this ticket.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

September 9, 2024 at 5:58 pm #16158424

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Before taking any further steps I need to ask you to update the Xstore Partent Theme, the Xstore Core plugin and any other plugin that is currently not updated.

After that, test again if the issue persists and let me know if further assistance is needed.

Please make sure to always take a backup of the site and database before running updates.

September 9, 2024 at 6:34 pm #16158484

danielS-231

Hello,

This was no solution, same problem persists, i sended the errors log text from my hosting that reports the errors from WPML, would not it be better to check those?

Thank you!

September 9, 2024 at 6:52 pm #16158526

danielS-231

I think i found a workaround, i cannot translat all at the same time, i will try to translate in parts, ill let you know how it goes.

Thanks!