Skip Navigation

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

Problem:

The client is experiencing issues with ACF Options fields not appearing on the front-end and being editable in the back-end. Additionally, when selecting a different language in the back-end, an error message 'Sorry, you are not allowed to access this page' appears.

Solution:

First, check you are following the steps in our documentation for translating ACF Options pages: Translating the ACF Options Page Custom Fields with WPML.

Ensure that the ACF Options page is translated into the secondary language after performing a site backup.

Additionally, improve your site's performance by increasing the WP Memory Limit to 256MB and the MaxInputVars to 10000. For more details on these settings, visit:

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. 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.

This topic contains 4 replies, has 0 voices.

Last updated by timothyP-3 1 week, 4 days ago.

Assisted by: Bigul.

Author Posts
November 28, 2024 at 4:19 pm #16456261

timothyP-3

Background of the issue:
I am trying to get my ACF Options fields to appear on the front-end and be editable in the back-end. The site I need help with is hidden link.

Symptoms:
On the front-end, the fields aren't copied, and my footer is blank when there are usually addresses, emails, phone numbers, etc. On the back-end, when I am in Options and select a different language in the top bar, I get a page that just says 'Sorry, you are not allowed to access this page.'

Questions:
Why are my ACF Options fields not appearing on the front-end?
Why do I receive a 'Sorry, you are not allowed to access this page' message when selecting a different language in the back-end?

November 28, 2024 at 5:42 pm #16456613

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

We hope you are following the steps suggested in this doc - https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-the-acf-options-page-custom-fields-with-wpml/

Please login as a different admin user and check whether the issue exists or not.

Also, upgrade the following configurations for the better performance of the site.

1) Increase *WP Memory Limit* to *256*(the minimum required memory limit for WPML is *128*). Please check the following links for more details

https://wpml.org/home/minimum-requirements/

https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

2) Increase the *MaxInputVars* of PHP settings to *10000*. Please check the following article for more details or contact your system admin/hosting provider for this purpose.

hidden link

--
Thanks!

Bigul

November 28, 2024 at 10:25 pm #16457064

timothyP-3

Hello, thank you for your assistance.

I am still having trouble. I have tried the following:
- Logged in as a different admin account.
- Increased the *WP Memory Limit* to 256.
- Increased the *MaxInputVars* to 10000.
- I have also reset the permalinks.

I am still experiencing the same issue on the front-end and back-end.

Thanks.

November 29, 2024 at 7:57 am #16457989

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. Maybe you are facing this issue because of compatibility conflicts. So to make sure if possible, please do the following steps.

a) Backup your site first[Mandatory]
b) Switch for a moment to a WordPress default theme like 2024
c) Deactivate all the plugins that are not related to WPML, except Advanced Custom Fields PRO
d) Then check whether the issue exists or not
e) If the issue is gone, activate the plugins as a group of three or four to find which one has an interaction issue
f) Switch back to the original theme of the site

Also, please share with us the WordPress debug.log(not WPML debug information) to collect more details on this. Refer to the following pages for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable the WordPress Debug log, open your wp-config.php file of site root and look for define('WP_DEBUG', false);. Change it to:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion).

--
Thanks!

Bigul

November 29, 2024 at 4:34 pm #16460695

timothyP-3

I have followed these steps and the issue is the same. Here is my debug.log information: https://pastebin.com/Lf9MQ0rG

November 29, 2024 at 5:18 pm #16460845

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the updates. The Debug.log is not showing any error or warning related to WPML.

So please fill in the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

December 1, 2024 at 4:21 pm #16463420

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Thank you for the details and login information. Please check the attached images. The ACF Options page has not yet been translated. Please translated it to secondary language after a site backup and make sure the bug exists or not.

--
Thanks!

Bigul

2024-12-01_21h44_42.png
2024-12-01_21h44_01.png
December 2, 2024 at 3:58 pm #16467430

timothyP-3

Thank you! This was the problem. This step should be included in the ACF Options page documentation: https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-the-acf-options-page-custom-fields-with-wpml/.

Thanks again!