This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using the setup wizard, but in the last step, you encounter an error message indicating that you are not allowed to access the page. You tried adding code to the functions.php file of your current theme as suggested in a previous solution, but it didn't resolve the issue.
Solution:
We recommend following the steps outlined in an existing support ticket that addresses similar issues. Please visit https://wpml.org/forums/topic/cant-configure-the-wpml-plugin-sorry-you-are-not-allowed-to-access-this-page/ and try the suggested solutions. If the problem persists, it might be due to the specific setup of your hosting or theme.
Please note that the solution might be irrelevant if it's 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. If the issue continues, please open a new support ticket at WPML support forum for further assistance.
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.