Home›Support›English Support›[Escalated to WPML Developers team] function fallbackDefaultTranslations() breaks Website if domain contains string "mo"
[Escalated to WPML Developers team] function fallbackDefaultTranslations() breaks Website if domain contains string "mo"
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/
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'.
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.
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.