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

Last updated by Chainalysis 1 year, 10 months ago.

Assisted by: Kor.

Author Posts
January 17, 2023 at 4:41 pm #12836237

Chainalysis

WPML String Translation is attempting to write .mo files with translations to folder:
/Users/joe/www/wp-content/uploads/languages

This folder appears to be not writable. This is blocking translation for strings from appearing on the site.

To resolve this, please contact your hosting company and request that they make that folder writable.

For more details, see WPML's documentation on troubleshooting .mo files generation..

January 17, 2023 at 5:30 pm #12836471

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hi there,

Here is the ticket. Let me know how it goes.

Thanks!

Kor

January 17, 2023 at 5:55 pm #12836631

Chainalysis

I found the solution.

It was not a permissions issue, but instead a need to set the correct path for WP_LANG_DIR locally within wp-config.php -- or wp-config-pantheon.php if you use that -- like so:

define( 'WP_LANG_DIR', ABSPATH . 'wp-content/uploads/languages' );

This solution is specific people who use Pantheon hosting, where they've applied Pantheon's WP_LANG_DIR solution to this known issue with WPML:

hidden link

...

For other people who are having this problem but not using Pantheon, this alternative line might solve their problem:

define( 'WP_LANG_DIR', ABSPATH . 'wp-content/languages' );

This line of code is not normally needed within wp-config.php, if you're using the default language directory within WordPress.

But if you're managing WP_LANG_DIR in your configuration, this line of code might solve the problem for you.