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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Mohamed Sayed 1 year, 11 months ago.

Assisted by: Mohamed Sayed.

Author Posts
June 2, 2023 at 8:48 am #13759495

cesarB-8

I am trying to: Change words in both language

Link to a page where the issue can be seen: kpginc.com

I expected to see: Necesito acceder para cambiar palabras de traducción.

Instead, I got:The menus do not appear for me to do the translation, it says there is an error, when I click on it then a page appears "you do not have permission to access"

Screen Shot 2023-06-02 at 4.47.00 AM.png
Screen Shot 2023-06-02 at 4.47.16 AM.png
Screen Shot 2023-06-02 at 4.47.21 AM.png
June 4, 2023 at 5:18 am #13765259

Mohamed Sayed

Hi,
Thanks for contacting WPML support.

Please create a full backup then add the following code to your active theme's functions.php file and visit any page in the back or front end:

function wpmlsupp_1706_reset_wpml_capabilities() {
    if ( function_exists( 'icl_enable_capabilities' ) ) {
        icl_enable_capabilities();
    }
}
add_action( 'shutdown', 'wpmlsupp_1706_reset_wpml_capabilities' );

Then remove the code and see if you can access the Troubleshooting page in WPML > Support > Troubleshooting.

If you can access the page, click the "Clear language information and repopulate languages" option and check if the admin message about the missing records is gone.

Let me know please how that goes.

Kind Regards.