Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was unable to generate .mo files for WPML String Translation even though the folder permissions were set to 755. The error suggested trying again via WPML->Theme and plugins localization. A discrepancy was found between the Site Address (URL) and the WordPress Address (URL), and the .htaccess file was not writable.
Solution:
We matched the Site Address (URL) and the WordPress Address (URL) temporarily and attempted to generate the .mo files again, which was successful. This confirmed that the issue was related to the URL mismatch. However, since this mismatch normally shouldn't cause problems, we reverted the settings back to their original state. Additionally, to resolve the .htaccess file issue, we recommend making the .htaccess file writable so that WordPress can update it as needed. This might resolve the problem entirely.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by Bruno Kos 2 months ago.

Assisted by: Bruno Kos.

Author Posts
January 7, 2025 at 6:53 am

georgK-5

Background of the issue:
I am trying to generate .mo files for WPML String Translation on my site hidden link. WPML String Translation uses .mo files instead of database calls, and these files need to be generated for translations to appear on the front-end. The folder permissions are already set to 755.

Symptoms:
There was a problem creating the .mo files. The error message suggests trying again now or later by going to WPML->Theme and plugins localization.

Questions:
Why is there a problem creating the .mo files even though the folder permissions are set to 755?
How can I successfully generate the .mo files for WPML String Translation?

January 7, 2025 at 7:28 am
January 7, 2025 at 11:09 am #16569112

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

In the General Settings of your site, we noticed a discrepancy between the Site Address (URL) and the WordPress Address (URL). We temporarily adjusted them to match and then tested generating the .mo files again. It worked, which confirms the issue is related to this difference. However, this mismatch normally shouldn't cause problems, so we have reverted the settings back to their original state.

Additionally, while re-saving the permalinks, we encountered an error indicating that the .htaccess file is not writable. This means WordPress cannot update the file as needed.

To resolve this issue, the .htaccess file needs to be made writable so that WordPress can apply the necessary updates. Once that's addressed, it might resolve the issue entirely.