This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was unable to configure WPML plugins after an update and received the error message 'Sorry, you are not allowed to access this page'. Additionally, the 'WPML Multilingual CMS' & 'WPML String Translation' options were missing from the dashboard menu.
Solution:
We recommended adding the following code to the 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' );
After adding the code, the client should open a page in the back and/or front-end, then remove the code to see if the issue is resolved.
If this solution does not apply or is outdated, or if the problem persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket in the 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.
This topic contains 1 reply, has 2 voices.
Last updated by 3 years, 2 months ago.
Assisted by: Alejandro.