Skip Navigation

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

Last updated by thomasD-100 1 year, 11 months ago.

Assisted by: Bobby.

Author Posts
December 15, 2022 at 1:37 am #12653729

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for updating me!

I went to /sitepress-multilingual-cms/classes/language-switcher/class-wpml-ls-model-build.php file. Line 244 and replaced it with the solution provided in our errata here
https://wpml.org/errata/wpml-4-5-12-language-switcher-listing-change-order-when-switching-language/

however, I must have added a typo as I am getting an error.
note: looking at the screenshot I can see that I accidentally removed the } bracket.

Unfortunately, the FTP details are not working for me to access it and resolve it remotely.

Please access and follow the steps from the Errata, let me know when done.

Note; This is only affecting the dev environment.

Screen Shot 2022-12-14 at 5.30.03 PM.png
December 15, 2022 at 3:25 pm #12658749

thomasD-100

So.. I have used the workaround and now it works correctly.
It is strange to me, because I used it before opening the ticket and now I have noticed it was not there. This way I thought the issue was related somewhere else.