Fatal error using groups and WPML

Support MB Group Fatal error using groups and WPML

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48369
    Marcus PottsMarcus Potts
    Participant

    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

    #48373
    PeterPeter
    Moderator

    Hello Marcus,

    Thank you for your feedback.

    I've escalated this issue to the development team. It should be fixed in the next update of Meta Box AIO plugin.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.