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.
Hi,
Manage tab page (admin/structure/features) appears to be broken, with PHP7 while it works fine with PHP 5.6.14
See attached images.
I did manage to create a new feature with PHP7 and view it on the Manage tab when back to PHP 5.6.14
I have not met yet similar issues on other admin forms.
Any idea what could be that specific in features_admin_form() ?
Regards,
Alexandre
Comment | File | Size | Author |
---|---|---|---|
#4 | features_broken_with_php7-2628910-4.patch | 636 bytes | MrHaroldA |
Features-PHP5-6-14.png | 31.68 KB | sashainparis | |
Features-PHP7-0-0.png | 12.18 KB | sashainparis |
Comments
Comment #2
Yerwol CreditAttribution: Yerwol commentedI'm seeing the exact same issue. Both running Ondrej's versions of PHP for Trusty.
Comment #3
sergeypavlenko CreditAttribution: sergeypavlenko commentedHI, all
File: features.admin.inc
Line: 1126
If a line with $form is deleted. The form works.
Comment #4
MrHaroldA CreditAttribution: MrHaroldA as a volunteer commentedA simple dpm() of the resulting $form array showed that the 'packages' array was added as last item. The description clearly shows that it should be the first item in the $form array.
Changing the array() + $form into an array_merge() fixes this.
Comment #5
sergeypavlenko CreditAttribution: sergeypavlenko commentedNice! Works good. Go to RTBC. Thanks!
Comment #6
MrHaroldA CreditAttribution: MrHaroldA as a volunteer commentedMy patch is exactly the same as in #2288395: Manage Features page empty in PHP 7 ;) While funny, it's also a duplicate ...