Skip Navigation

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

Problem:
The client is unable to complete the WPML setup wizard and encounters an error message: 'Sorry, you are not allowed to access this page.' This issue may be related to insufficient WP memory limit or a plugin compatibility issue.
Solution:
1. Increase the WP memory limit by adding the following lines to your wp-config.php file:

/* WP Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');<br />define('WP_MAX_MEMORY_LIMIT', '256M');

Place it just before:

/* That's all, stop editing! Happy blogging. */

If your hosting provider limits these settings, contact them to request an increase.

2. To test for a plugin compatibility issue:
- Create a full website backup.
- Disable all plugins except WPML and its add-ons.
- Check if the issue persists.
- If not, reactivate your plugins one by one to identify the problematic plugin.
- If the issue still occurs with only WPML active, switch to a default theme like TwentySeventeen and test again.

Perform these steps preferably in a staging environment. Verify the changes on the WPML >> Support page.

If these steps do not resolve your issue or if the solution seems outdated or irrelevant, we 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. If the problem persists, please open a new support ticket.

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 Mihai Apetrei 11 months ago.

Assisted by: Mihai Apetrei.

Author Posts
July 21, 2024 at 6:34 pm #15983699

sergiosB

Background of the issue:
I am trying to complete the setup wizard for WPML on my site hidden link.

Symptoms:
error: Sorry, you are not allowed to access this page.

Questions:
Why is the setup wizard failing?
How can I resolve the 'Sorry, you are not allowed to access this page' error?

July 21, 2024 at 8:18 pm #15983792

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Before this ticket gets assigned to one of my colleagues, I will try to help.

There's a chance that one of the plugins is creating this issue.

1. The WP memory limit needs to be increased as the minimum requirement for WPML is 128Mb WP Memory Limit: https://wpml.org/home/minimum-requirements/

❌ Very important: please make a backup of your site (files & database) before following any of the upcoming steps ❌

Please add this to your wp-config.php file to increase WP memory:

/* WP Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Paste it just before:

/* That's all, stop editing! Happy blogging. */

These settings can be limited directly by your hosting provider, so, if that’s the case, I recommend you contact and ask them to modify them directly. If you can get even higher values It would be great.


After they are modified, you can verify them from WPML >> Support page, just to make sure that they are correct.

2. Please try the following steps so that we can test for a compatibility-related issue:

- create a full website backup

- disable all plugins except WPML and its add-ons

- check if the issue is happening again

- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue

If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated

- switch to a default theme like TwentySeventeen

- try to recreate the issue now

If you have the chance, it would be best to do this in a staging (testing) environment.

Please let me know how that goes and if following any of these steps solved your issue or brought any change.

I will be waiting for your response.

Mihai Apetrei