Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Osama Mersal 1 year, 10 months ago.

Assisted by: Osama Mersal.

Author Posts
September 5, 2023 at 9:02 am #14341725

jobM-4

I am trying to reach the English translations AFC fields of an options page

Link to a page where the issue can be seen: hidden link

I expected to see the Advanced custom fields Instead, I got:
Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php:783 Stack trace: #0 /www/metech_132/public/wp-includes/class-wp-hook.php(310): acf_field_flexible_content->load_value(Array, 'options_en', Array) #1 /www/metech_132/public/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array) #2 /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php(109): apply_filters_ref_array('acf/load_value/...', Array) #3 /www/metech_132/public/wp-includes/class-wp-hook.php(310): _acf_apply_hook_variations(Array, 'options_en', Array) #4 /www/metech_132/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #5 /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php(118): apply_filters('acf/load_value', Array, 'options_en', Array) #6 /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-clone.php(481): acf_get_value('options_en', Array) #7 /www/metech_132/public/wp-includes/class-wp-hook.php(310): acf_field_clone->load_value(Array, 'options_en', Array) #8 /www/metech_132/public/wp-includes/plugin.php(256): WP_Hook->apply_filters(Array, Array) #9 /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php(109): apply_filters_ref_array('acf/load_value/...', Array) #10 /www/metech_132/public/wp-includes/class-wp-hook.php(310): _acf_apply_hook_variations(Array, 'options_en', Array) #11 /www/metech_132/public/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #12 /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php(118): apply_filters('acf/load_value', Array, 'options_en', Array) #13 /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php(307): acf_get_value('options_en', Array) #14 /www/metech_132/public/wp-content/plugins/acfml/classes/strategy/repeater-sync/OptionPageHooks.php(42): get_field_objects('options_en') #15 /www/metech_132/public/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(158): ACFML\Repeater\Sync\OptionPageHooks->add_hooks() #16 /www/metech_132/public/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(125): WPML_Action_Filter_Loader->run_factory(Object(ACFML\Repeater\Sync\HooksFactory)) #17 /www/metech_132/public/wp-includes/class-wp-hook.php(310): WPML_Action_Filter_Loader->deferred_loader('') #18 /www/metech_132/public/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #19 /www/metech_132/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #20 /www/metech_132/public/wp-settings.php(654): do_action('wp_loaded') #21 /www/metech_132/public/wp-config.php(110): require_once('/www/metech_132...') #22 /www/metech_132/public/wp-load.php(50): require_once('/www/metech_132...') #23 /www/metech_132/public/wp-admin/admin.php(34): require_once('/www/metech_132...') #24 {main} thrown in /www/metech_132/public/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 783

Other languages work fine.

September 6, 2023 at 8:09 am #14349195

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please check this guide and make sure that you follow its steps. (https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-the-acf-options-page-custom-fields-with-wpml/)

If that didn't help, I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

The topic ‘[Closed] Acf options page – Fatal error: Uncaught TypeError: Illegal offset type in isset’ is closed to new replies.