Hi
I am using:
AIO - v2.2.1
WPML - v4.7.6
When I switch on groups in extensions and add a Group in a new Custom Field Group in MB Builder I get the following error:
PHP Fatal error: Uncaught TypeError: MBB\Integrations\WPML\FieldGroup::use_fields_translations(): Argument #1 ($fields) must be of type array, null given, called in /var/www/vhosts/xxxxx.co.uk/httpdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Integrations/WPML/FieldGroup.php on line 204 and defined in /var/www/vhosts/xxxxx.co.uk/httpdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Integrations/WPML/FieldGroup.php:167
As a temporary measure I have replaced
if ( 'group' === $field['type'] ) {
$this->use_fields_translations( $field['fields'], $package, $id );
}
With this
if (!is_array($fields)) {
return;
}
$this->use_fields_translations($fields);
in /httpdocs/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-builder/src/Integrations/WPML/FieldGroup.php
This is obviously a quick fix, so please could you help with a permanent solution?
Thanks as always
Marcus