Out of interest, I'd like to know what the underlying problem and solution are?
To be sure that the official fix will work on the live site, I think it would indeed be good to apply the fix on our staging site. I prefer it to be applied on a different staging site, which is a newer copy of the live site. This is the staging site: hidden link.
Please let me know what you need from me to apply this fix.
Thanks for your reply. Our 2nd Tier Support did not mention anything about what went wrong but he escalated this to our developers already. Would you like us to apply the fix to your staging site here? hidden link
OK, thanks. No, I'd like it to be applied on hidden link, which is the same but a bit fresher, so easier to test for me. Do you only need an admin login?
Thanks for your patience. Our 2nd Tier Support applied the fix on your staging site hidden link . Could you try retranslating now and see if the links are pointing to the right language?
1) On the page hidden link, the links in bullet point 2 and 3 under "Zusammenfassung", are now correct, and we did not do anything. This does not apply to all pages, but that might be caused by caching. It's an improvement because of the fix I guess. But buttons like "Alle Preise und Rabatte ansehen" still link to English.
2) I wanted to try what happens if I retranslate, but I can't translate many of the posts. The WordPress backend screen simply refreshes, and I never get to see the WPML ATE. Please try and go to hidden link and edit post 223701, for example. There's no error in the browser console. I've never seen this before, so it must be caused by the fix.
Can you fix point 2? Only then can I really test what happens.
Thanks for your reply. We’ve released some updates, which you can see here: hidden link
. Could you please update all WPML plugins to their latest versions and test again? After that, try making a small edit to the primary language page first.
Ok, I updated all WPML plugins and changed one heading in the post hidden link. The links on hidden link are still pointing to English pages.
The links in bullet points 2 and 3 under "Zusammenfassung", are now incorrect again. I think they randomly switch between (mostly) incorrect and (sometimes) correct.
I assume you tested this on your end and it worked there? What's different on my end?
I even tried disabling Object Cache Pro, but it didn't make a difference.
Thanks for your reply. This is what our 2nd Tier Support mentioned.
I went back into that site and the first thing I did is check the edit I had made to the WPML file previously with the workaround.
But it had been reverted. Maybe the client did a plugin update or something, but—in any case—the workaround was missing, so it's expected it wasn't working.
I have re-applied the workaround, editing the file plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php.
The content with the un-transformed links needs re-translating; now when the post is translated, the links should get swapped out with the translated link targets.
Yes, I had updated WPML as instructed. I tried again: the text links are fine, but the button "Alle Gültigkeitsdetails ansehen" is not. Even though WPML is instructed to translate that custom field too, please see my very first message.
Please test this on your end and only let me know once you're 100% sure every instance of links gets translated.
Thanks for your reply. Could you try adjusting the button links in the Advanced Translation Editor when you translate it here? hidden link . check out the attached screenshot.
So, you mean open the ATE, find the URL, unlock it, and translate it manually? I did that and saved the translation. The link is still English in the frontend.
This is frustrating; it's taking very long to get to the bottom of this, unfortunately.