Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Tirane (GMT+02:00)

This topic contains 1 reply, has 2 voices.

Last updated by Marsel Nikolli 1 year, 4 months ago.

Assisted by: Marsel Nikolli.

Author Posts
March 6, 2024 at 9:40 am #15378186

JKJ

I am trying to: Setup WPML

Link to a page where the issue can be seen:

I expected to see: setup screen

Instead, I got: sorry you are not allowed to access this page

March 6, 2024 at 11:10 am #15378618

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.

Could you please try adding the following code to your theme's functions.php file and check if the issue persists:

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

* Note: Please make sure you have a full backup of your website before making any updates/changes on your website.

Let me know how it goes,
Marsel

The topic ‘[Closed] When try setup, not allowed to access this page as admin’ is closed to new replies.