Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are an administrator trying to manage WPML settings on your site but notice that some settings are missing, and you receive a permission error when attempting to translate WooCommerce products.
Solution:
We recommend you try the following steps to resolve the issue:
1. Add the following code to your active theme's

functions.php

file:

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

2. Open a page in the back and/or front-end once.
3. Remove the code added in step #1.

If the issue persists, it might be helpful to check if this is the first time you have installed WPML on this site or if you already have translated data by WPML.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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. Additionally, please feel free to open a new support ticket for further assistance at WPML support forum.

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 0 voices.

Last updated by edmondC-2 2 months, 1 week ago.

Assisted by: Noman.

Author Posts
March 27, 2025 at 2:45 am #16865970

edmondC-2

Background of the issue:
I am trying to manage WPML settings on my site hidden link. I am an administrator but noticed that WPML is missing some settings.

Symptoms:
WPML is missing some settings, showing only 5 options. When I click on 'Translate WooCommerce products' on the product page, it says I don't have permission.

Questions:
How can I restore the missing WPML settings to normal?
Why am I getting a permission error when trying to translate WooCommerce products?

March 27, 2025 at 7:16 am #16866237

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Could you please try to follow the below steps and see if this resolves the issue:

1. Add the following code to your active theme's functions.php file:

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

2. Open a page in the back and/or front-end once.

3. Remove the code which in added in step #1.

And see if this resolves the issue.

If the issue persists, please let me know if you have installed WPML for the first time on this site or do you already have translated data by WPML?

Kindly let me know the results,
Thank you

March 27, 2025 at 9:04 am #16866960

edmondC-2

Hello, trying to add the code solved the problem.
Thank you for your help.