Background of the issue:
I am trying to translate a CF7 form into Spanish and I encounter error messages on the right sidebar. The issue can be seen on this page: hidden link
Symptoms:
Warning: Undefined array key "value" in /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php on lines 174 and 177.
Questions:
How can I resolve the 'Undefined array key "value"' error when translating a CF7 form?
Is there a compatibility issue between WPML and Advanced Custom Fields Pro?
I wanted to translate the footer as well in ES but I now get the following error thrown as well:
Warning: Undefined array key "value" in /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php on line 174
Someone the separate language pages for the footer appeared and I was able to translate them.
But the error message : Warning: Undefined array key "value" in /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php on lines 174 and 177.
For ES the titles of the pages are not shown in WP Admin / pages.
There getting the same error message "Warning: Undefined array key "value" in /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php on lines 174"
I already installed v 6.4.3 but the issue persists.
Warning: Undefined array key "value" in /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php on line 174
Warning: Undefined array key "value" in /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwkeytalkcom_402/public/wp-content/plugins/advanced-custom-fields-pro/includes/locations/abstract-acf-location.php:177) in /www/wwwkeytalkcom_402/public/wp/wp-admin/admin-header.php on line 14
Could you please give me some more information on how I can check the things that you have mentioned? I'm not well versed with ACF / WPML as someone else set this up.
I do saw in ACF / Field Groups and for ES that the same error messages are shown in the "Title" column.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Taking a closer look at the provided debug information, it looks like you have set the ACF Field Groups inside WPML > Settings > Custom Post Type Translation to "Translatable", which is not recommended.
Please set the ACF Field Groups to "Not translatable" and remove any duplicated field groups from the site.
If this does not solve the issue, please let me know.
I have set ACF Field groups to "Not translatable".
But when I go to ACF Field Groups i see for each language 13 entries. English only has 5. But It is only ES that gives this PHP error. The other languages, besides EN, shows title in the correct way.
Where would I find these "duplicate" field groups that you are referring to? In the ACF or WPML section in the admin dashboard?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
The problem must have been that the field groups were translated.
We no longer recommend setting field groups to "Translatable" when using ACF without out ACF Multilingual addon. There is no need to translate the groups.