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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

Tagged: 

This topic contains 3 replies, has 0 voices.

Last updated by Marcel 5 days, 7 hours ago.

Assisted by: Marcel.

Author Posts
December 16, 2024 at 2:18 pm #16517735

thomasS-14

Background of the issue:
I am trying to fix an issue that occurs after updating the WPML String translation plugin. The function fallbackDefaultTranslations() in the file /wpml-string-translation/classes/MO/Hooks breaks websites that have 'mo' in the domain name. The code is intended to load custom translations when WordPress version is greater than 6.6.999, but it seems to fail under certain conditions.

Symptoms:
The website breaks if the domain contains the string 'mo'.

Questions:

December 16, 2024 at 5:24 pm #16518464

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

thank you for your report. I’ve reviewed the code and have escalated the issue to our development team. I’ll keep you updated and let you know as soon as we receive any feedback.

Best regards,
Marcel

December 16, 2024 at 6:21 pm #16518566

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

We’ve reviewed the issue, and generally, it should not cause any problems. The l10n.php files are generated from the corresponding .mo files, so this would only become an issue if a .php file exists without its corresponding .mo file.

That said, we’ll continue investigating to ensure we don’t rely solely on the presence of the .mo file.

Could it be that the .mo file was deleted, leaving the corresponding .l10n.php files behind? This might be the root of the issue.

Best regards,
Marcel

December 17, 2024 at 12:29 pm #16521618

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

you can find a temporary workaround here: https://wpml.org/errata/php-warning-file_exists-open_basedir-restriction-in-effect-warning-possible-with-current-string-translation/.

Best Regards,
Marcel