Skip Navigation

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

Problem:
The client encountered a fatal error when having Advanced Custom Fields Multilingual activated, which prevented the plugin from functioning properly.
Solution:
We recommended the following steps:
1. Visit the WPML ACFML Changelog page.
2. Download the file for Version 2.0.5.
3. Install the downloaded file on your WordPress site.
4. Attempt to activate the plugin and check if it activates successfully.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, 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 you need further assistance, 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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Bruno Kos 1 year ago.

Assisted by: Bruno Kos.

Author Posts
May 6, 2024 at 10:07 am

gawinS

I get this error having Advanced Custom Fields Multilingual activated

Fatal error: Uncaught TypeError: array_walk(): Argument #1 ($array) must be of type array, null given in /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/acfml/classes/Strings/Helper/ContentTypeLabels.php:55 Stack trace: #0 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/acfml/classes/Strings/Helper/ContentTypeLabels.php(55): array_walk(NULL, Object(Closure)) #1 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/acfml/classes/Strings/CptHooks.php(53): ACFMLStringsHelperContentTypeLabels::translateLabels(Array, Array, Array) #2 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/class-wp-hook.php(324): ACFMLStringsCptHooks->translate(Array, Array) #3 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/advanced-custom-fields-pro/includes/post-types/class-acf-post-type.php(608): apply_filters('acf/post_type/r...', Array, Array) #5 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/advanced-custom-fields-pro/includes/post-types/class-acf-post-type.php(129): ACF_Post_Type->get_post_type_args(Array) #6 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/class-wp-hook.php(324): ACF_Post_Type->register_post_types(6) #7 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #8 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/advanced-custom-fields-pro/acf.php(398): do_action('acf/init', 6) #10 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/class-wp-hook.php(324): ACF->init('') #11 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #12 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-settings.php(695): do_action('init') #14 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-config.php(223): require_once('/home/httpd/vho...') #15 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-load.php(50): require_once('/home/httpd/vho...') #16 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-admin/admin.php(34): require_once('/home/httpd/vho...') #17 /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-admin/plugins.php(10): require_once('/home/httpd/vho...') #18 {main} thrown in /home/httpd/vhosts/leihlager.ch/leihlager.ch/wp-content/plugins/acfml/classes/Strings/Helper/ContentTypeLabels.php on line 55

May 6, 2024 at 10:37 am
May 6, 2024 at 12:20 pm #15597252

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I am checking this with our 2nd tier and will keep you posted!

May 7, 2024 at 5:26 am #15599774

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Can you please try the following steps:

1. Visit the [WPML ACFML Changelog page](https://wpml.org/download/acfml/?section=changelog).
2. Download the file for Version 2.0.5.
3. Install the downloaded file on your WordPress site.
4. Attempt to activate the plugin.

Please check if the plugin activates successfully.

In the meantime we are debugging your Duplicator package.

May 7, 2024 at 7:06 am #15600080

gawinS

Hi Bruno

Version 2.0.5 works, thanks. Would be great if you can inform me, as soon as the newest version has a bugfix.

Best regards,
Gawin

May 7, 2024 at 11:39 am #15601637

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

It appears that the issue may be related to the custom post type (CPT) labels not being set correctly in the WordPress admin, which can affect how ACFML functions. Typically, WordPress requires certain fields to be completed before saving a CPT, which suggests that there might be a configuration or permissions issue.

Can you please try the following:
1. Go to your WordPress admin panel at the URL: wp-admin/post.php?post=8705&action=edit&lang=en.
2. Check if the labels for the custom post type are properly set. This generally includes the singular and plural labels, as well as a description.
3. Ensure that the required fields for the custom post type are filled out.
4. After setting the labels, enable Advanced Custom Fields Multilingual (ACFML) if it's not already active.
5. Verify if the issue persists after making these changes.

image1.png