This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was experiencing a fatal error caused by an ArgumentCountError in the WPML String Translation plugin, which prevented access to the WordPress admin area.
Solution:
We identified that the issue was related to the client's theme functions.php file, where the code used to register the ACF options page was missing text-domains. We provided a corrected version of the code with the appropriate text-domains:
function theme_option_init() { // Check function exists. if (function_exists('acf_add_options_page')) { // Add parent. $parent = acf_add_options_page(array( 'page_title' => __('Theme General Settings', 'pjisrael'), 'menu_title' => __('Theme Settings', 'pjisrael'), 'capability' => 'edit_posts', 'redirect' => false )); // Add sub page. $child = acf_add_options_page(array( 'page_title' => __('Footer Settings', 'pjisrael'), 'menu_title' => __('Footer', 'pjisrael'), 'parent_slug' => $parent['menu_slug'], )); } } add_action('acf/init', 'theme_option_init');
We asked the client to check and confirm if the issue was resolved.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If you're still experiencing issues, we highly recommend checking the related 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 with us.
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 9 replies, has 2 voices.
Last updated by 1 year, 2 months ago.
Assisted by: Shekhar Bhandari.