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'.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02: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.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: Europe/Madrid (GMT+02: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.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.