Sauter la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The client was unable to see the box for translating selected strings and sending them to automatic translation on their website. Additionally, changing the website language did not work.
Solution:
We resolved the issue by manually updating the database, as the root cause was not identifiable through normal troubleshooting. We recommend the client to:
1. Select strings and send them to the translation basket.
2. Assign a translator.
3. Go to WPML > Translations and take the translation.
Once in our Advanced Translation Editor (ATE), the client will be able to use the automatic translation feature.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, 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 further assistance is needed, please open a new support ticket at WPML support forum.

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par benjaminK-50 Il y a 1 mois et 2 semaines.

Assisté par: Nicolas V..

Auteur Articles
Novembre 29, 2024 à 11:31 am #16459116

Nicolas V.
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: America/Lima (GMT-05:00)

Hello,

I tried to add the manage translation capability which was missing but it broke the serialization.

In the _user_roles key, please remove: b:1;s:19:"manage_translations"

Usually the code below would fix WPML capabilities but that doesn't work on your site (maybe a conflict or restriction).

---

The code below performs a reset on icl capabilities (add and run once in your active site's functions.php )

To be used when some WPML menus are missing or authorization is required

Add the code below into the functions.php file of your active theme
Visit your homepage (frontend - to run the code)
Remove the code from the functions.php file and see if anything changed in the backend

function wpmlsupp_1706_reset_wpml_capabilities() {
    if ( function_exists( 'icl_enable_capabilities' ) ) {
        icl_enable_capabilities();
    }
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );
Novembre 29, 2024 à 12:55 pm #16459579

benjaminK-50

I have restored the user_roles option from a previous state - before the beta version update. That should fix the issue maybe ? Please review and let me know if you can fix it now.

Novembre 29, 2024 à 4:00 pm #16460570

Nicolas V.
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: America/Lima (GMT-05:00)

Thank you,

I think that the issue is resolved now. I couldn't identify the root cause or why you were missing this capability (or even why our code couldn't reset capabilities). But manually updating the database seems to work.

Could you please run some test and see if you have access to all WPML functionalities?
- Try to select strings, send them to the basket, assign a translator, go to WPML > Translations and take the translation?
Once in our Advanced Translation Editor (ATE) you will be able to use the automatic translation.

décembre 2, 2024 à 6:52 am #16464255

benjaminK-50

Things are working as expected now.
Thanks for your help.