This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing the 'Sorry, you are not allowed to access this page.' error when switching languages on ACF options pages, it might be due to insufficient WordPress memory limit or incorrect user permissions. Solution: 1. Increase the WordPress memory limit to at least 128MB, which is the minimum requirement for WPML. You can do this by adding the following lines to your wp-config.php file:
2. Ensure your current user is added as a translator under WPML >> Translation Management > Translators tab, with the correct language pairs assigned. 3. If the problem persists, check if it affects specific user roles or also occurs with the admin user role. 4. Try creating a new user with the Administrator role and access the ACF options page to see if the issue is resolved.
If these steps do not resolve your issue, or if the solution seems outdated or irrelevant 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, you can open a new support ticket for further assistance at WPML support forum.
0% of people find this useful.
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.
Background of the issue:
I am trying to translate the content within ACF fields on ACF options pages, such as site-wide footer content. I have checked all of the guides relating to making custom fields translatable.
Symptoms:
When I edit an options page and try to change language using the language switcher, I get the default WordPress 'Sorry, you are not allowed to access this page.' message.
Questions:
How can I resolve the 'Sorry, you are not allowed to access this page.' error when switching languages on ACF options pages?
Before your ticket is assigned to one of my colleagues, I'd like to guide you through some initial debugging steps to speed up the support process.
To begin, please follow the below steps and let me know how it goes:
1. The current WP Memory Limit on your site is 40MB. The WP memory limit needs to be increased, it's different from PHP memory. PHP memory is fine but WordPress uses 40MB as default in your site. The minimum requirements for WPML are 128MB: https://wpml.org/home/minimum-requirements/
Please add this line to your wp-config.php file to increase WP memory, wp-config.php file is located in the root of your WP install:
You can add it anywhere in your file. I recommend placing it right before the following line:
/* That's all, stop editing! Happy blogging. */
2. Please try to add your current user as a translator under WPML >> Translation Management > Translators tab, ensuring the correct language pairs are assigned, and check if this resolves the issue.
3. If the issue persists, let me know whether it affects a specific user role or if it also occurs with the admin user role.
4. Additionally, create a new user with the Administrator role and try accessing the ACF options page to see if it works properly.
Thank you Noman, point number 2 resolved getting access to the translated page however all of these fields are empty - we're using auto-translate - how can I get WPML to automatically translate these fields too?
Thank you for contacting WPML Support. Glad to hear points 2 solved this issue. Sorry, currently it’s not possible to translate the ACF options pages automatically. You should be able to translate it manually by following the below steps:
1. Open ACF options page in the default language.
2. Switch to secondary language using admin language switcher.
3. Translate it manually and press the save/update button.
Glad to hear the ACF options page translation issue is solved now. For the Failed approving translations problem, it’s a different issue and will be handled separately as per our support policy. I've created a new ticket for this at: https://wpml.org/forums/topic/failed-approving-translations-in-bulk/
If the ACF options page translation issue is solved, please mark this ticket as resolved and we will continue working on the above ticket for it.