Sauter la navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 8:00 – 12:00 6:00 – 12:00 -
- 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 13:00 – 17:00 13:00 – 15:00 -

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

Marqué : 

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

Dernière mise à jour par Nicolas V. Il y a 2 jours et 14 heures.

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.