Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i got many trouble with field group + features. features will generate empty array . when we revert features we will lost all field group.
Array to string conversion in field_group_field_group_to_hook_code() (line 2264 of sites/all/modules/contrib/field_group/field_group.module)
I think it is wrong basic code php
$object->$export['key'] it MUST BE $object->{$export['key']}
here is my patch
Comment | File | Size | Author |
---|---|---|---|
#8 | fantal_export_fied-2867359-8.patch | 736 bytes | michaelsoetaert |
field_group_features.patch | 936 bytes | lazzyvn |
Comments
Comment #2
gremy CreditAttribution: gremy commentedThis issue was getting me crazy and this patch is awesome. It fixes the problem.
I tested it on a docker4drupal environment with PHP 7.0.16.
Comment #3
gremy CreditAttribution: gremy commentedI just checked the latest dev version (7.x-1.5+2-dev) and the fix is already committed.
Comment #5
gremy CreditAttribution: gremy commentedCreated a release request issue: https://www.drupal.org/node/2869084
Comment #6
lazzyvn CreditAttribution: lazzyvn commentedhello @gremy
dont trust version dev i know it fix but version dev take out line 675
i dont know why it has been remove. it create bug with jquery because Id is empty by default
Comment #8
michaelsoetaertComment #9
maxplus CreditAttribution: maxplus commentedThanks,
I'm using patch #8 to solve this issue for me in losing data in my features export
Comment #10
mdolnik CreditAttribution: mdolnik as a volunteer and commentedFYI this patch is the same as
PHP7 - Uniform Variable Syntax updates are causing exported field_groups to not have names.
which is now a part of1.6