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 3 replies, has 2 voices.
Last updated by Bigul 1 year, 8 months ago.
Assisted by: Bigul.
Author | Posts |
---|---|
July 22, 2023 at 10:01 am #14083057 | |
jacksonM-4 |
How I can remove a whole language from the DB? When I use Add/Remove language option of wpml the issue still exist after reenabling it. |
July 22, 2023 at 10:03 am #14083063 | |
jacksonM-4 |
Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /var/www/site_files/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php:783 Stack trace: #0 /var/www/site_files/wp-includes/class-wp-hook.php(308): acf_field_flexible_content->load_value() #1 /var/www/site_files/wp-includes/plugin.php(256): WP_Hook->apply_filters() #2 /var/www/site_files/wp-content/plugins/advanced-custom-fields-pro/includes/acf-hook-functions.php(109): apply_filters_ref_array() #3 /var/www/site_files/wp-includes/class-wp-hook.php(308): _acf_apply_hook_variations() #4 /var/www/site_files/wp-includes/plugin.php(205): WP_Hook->apply_filters() #5 /var/www/site_files/wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php(118): apply_filters() #6 /var/www/site_files/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php(307): acf_get_value() #7 /var/www/site_files/wp-content/plugins/acfml/classes/strategy/repeater-sync/OptionPageHooks.php(42): get_field_objects() #8 /var/www/site_files/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(158): ACFML\Repeater\Sync\OptionPageHooks->add_hooks() #9 /var/www/site_files/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(125): WPML_Action_Filter_Loader->run_factory() #10 /var/www/site_files/wp-includes/class-wp-hook.php(308): WPML_Action_Filter_Loader->deferred_loader() #11 /var/www/site_files/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #12 /var/www/site_files/wp-includes/plugin.php(517): WP_Hook->do_action() #13 /var/www/site_files/wp-settings.php(645): do_action() #14 /var/www/site_files/wp-config.php(111): require_once('/var/www/site_f...') #15 /var/www/site_files/wp-load.php(50): require_once('/var/www/site_f...') #16 /var/www/site_files/wp-admin/admin.php(34): require_once('/var/www/site_f...') #17 {main} thrown in /var/www/site_files/wp-content/plugins/advanced-custom-fields-pro/pro/fields/class-acf-field-flexible-content.php on line 783 |
July 24, 2023 at 8:08 am #14086725 | |
jacksonM-4 |
I think, I understand the reason of that issue, but I don't know how to fix it now. I need your professional help, guys, ASAP, please. I will provide you access to the staging site to have a look. |
July 24, 2023 at 8:24 am #14086985 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+02:00) |
Hello, Welcome to the WPML support forum. I will do my best to help you to resolve the issue. It may be related to this ticket - https://wpml.org/forums/topic/the-spanish-version-of-the-acf-options-page-gives-me-a-fatal-error/ So please try the workaround suggested here after a full site backup and let us know your feedback. The option key name will be different in your case. Maybe options_th_resources. -- Bigul |
July 24, 2023 at 12:25 pm #14089345 | |
jacksonM-4 |
Hey Bigul Thanks for your answer. I didn't found the option key options_th_resources: MariaDB [chancer]> select option_name from wp_options where option_name like "%options_th_resources%"; Empty set (0.006 sec) But then I went to the db directly in order to analize wp_options table and I saw a lot of options_th_ values there and I deleted all of them at my own risk and it helped!!! I've reopened Option page on Thai language in wp-admin with the correct Translation preferences such as Copy Once and I imagined that it works perfect. Thank you for your advise. Now I exactly know how this issue may be fixed in the future. Best regards. |