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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

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

Tagged: 

This topic contains 0 replies, has 2 voices.

Last updated by Bruno Kos 1 week, 2 days ago.

Assisted by: Bruno Kos.

Author Posts
November 22, 2024 at 7:12 am #16431920

Bruno Kos
Supporter

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

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

We are still checking this but in the meantime, can you update your site to https://wordpress.org/documentation/wordpress-version/version-6-7-1/?

It fixed this https://core.trac.wordpress.org/ticket/62337 which caused quite a lot of issues in multilingual sites.

Let me know about the results after the update!

November 22, 2024 at 9:25 am #16432792

Bruno Kos
Supporter

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

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

It did not work in our testing, our developers found the cause of this and are working on the solution.

I will keep this thread updated as soon as there is some movement there.

November 22, 2024 at 10:02 am #16433026

nicoC-5

How and when do I get a reply from?

November 22, 2024 at 11:22 am #16433543

Bruno Kos
Supporter

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

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

You will receive an answer here, as the ticket will remain open.

In the meantime, we may explore a possible workaround in the code. I will provide updates here about that as well. However, the issue is quite complex, so we currently do not have a solution.

November 28, 2024 at 7:54 am #16453245

nicoC-5

Hi, how is the fix going? It has been 5 days since I heard back.

November 28, 2024 at 11:30 am #16454594

Bruno Kos
Supporter

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

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

Can you please try the following:

1. Follow the instructions in the WPML Errata for WordPress 6.7 regarding `.mo` files not being loaded and causing missing translations: https://wpml.org/errata/wordpress-6-7-mo-files-not-loaded-and-leading-to-missing-translations-on-front-end/

2. If that doesn't work, try this:
- Open the file `wp-content/plugins/wpml-string-translation/classes/MO/Hooks/LoadTextDomain.php`.
- Update the `loadCustomMOFile` method as shown below:

   private function loadCustomMOFile( $domain, $mofile, $locale ) {
       $wpml_mofile = $this->file_manager->get( $domain, $locale );
    
       if ( $wpml_mofile && $wpml_mofile !== $mofile ) {
           load_textdomain( $domain, $wpml_mofile );
           load_textdomain( $domain, $mofile ); //workaround!!!!
       }
    
       $this->setCustomMOLoaded( $domain );
   }

3. If the above steps do not resolve the issue, use the [Core Rollback Plugin](https://wordpress.org/plugins/core-rollback/) to revert WordPress to a version prior to 6.7.0. Test the functionality after the downgrade.

This issue originates from WordPress itself and affects all translation plugins.

Let me know if any of the above workarounds helped!

December 3, 2024 at 12:29 pm #16471689

nicoC-5

Yes this works. Will this be part of the next plugin update?

December 3, 2024 at 12:43 pm #16471745

Bruno Kos
Supporter

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

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

It was just published in String Translation version 3.2.16 (this one https://wpml.org/errata/wordpress-6-7-mo-files-not-loaded-and-leading-to-missing-translations-on-front-end/)