Closed (fixed)
Project:
Variable
Version:
7.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2012 at 10:02 UTC
Updated:
8 Aug 2013 at 17:31 UTC
Jump to comment: Most recent file
The new 2.x branch currently does not work properly with features... As an example: it still tries to call variable_realm_controller_build(), which has been removed and is currently causing a fatal error during features rebuild ("Call to undefined function ...").
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 1612484-features_export_notice-14.patch | 684 bytes | jose reyero |
| #12 | variable_realm_features_export_fix-1612484-12.patch | 702 bytes | dasha_v |
| #4 | features-fix-1612484-4.patch | 4.16 KB | bforchhammer |
| #2 | features-fix-1612484-2.patch | 1.29 KB | bforchhammer |
Comments
Comment #1
bforchhammer commentedI'm on this one.
Comment #2
bforchhammer commentedHere's a patch. Fairly straighforward, so unless something comes up I'll probably commit this later today... :)
Comment #3
bforchhammer commentedComment #4
bforchhammer commentedHm, realms also need the "module" key in their info array, otherwise features can't add the right module dependencies.
Comment #5
jose reyero commentedLooks good to me. Just remove that 'dpm' :-)
Comment #6
bforchhammer commentedCommited.
Comment #8
xcafebabe commentedUsing Features 7.x-2.0-beta1+1-dev and Variable 7.x-2.1+7-dev, when I try to include Global: All Variables in my feature this error shows up:
Notice: Undefined index: module in variable_realm_features_export() on line 35 of /sites/all/modules/contrib/variable/variable_realm/variable_realm.features.inc
Some hint to try to help and fix this issue?
Comment #9
acrollet commented@xcafebabe: you need to re-export your feature after updating to -dev and the error should go away.
Comment #10
richsky commentedLatest version (2.2) with this patch (#4) and still getting
Notice: Undefined index: module in variable_realm_features_export() (line 35 of E:\Web\Drupal_7\sites\all\modules\variable\variable_realm\variable_realm.features.inc).
Comment #11
artis.bajars commentedI can confirm this still being an issue, using Features 2.0-rc1 and Variable 2.2. Feature dependencies are not added correctly because of this.
Comment #12
dasha_v commentedThe fix from #6 was lost in #1664154: Fix variable hooks invoked during bootstrap (Variable realm breaks pathauto).
Draft for the patch attached.
Comment #13
candelas commentedsame problem, same versions.
thanks for any help :)
Comment #14
jose reyero commentedOk, so it seems we need to add the 'module' value to the realm info.
The idea looks good, but the patch has too many checks and may change the results because it does a full replacement of $result[$key] instead of merging.
Let's try this one.
Comment #15
frazras commentedOK #14 seemed to have worked for me, well at least its no showin up in the logs nor is it preventing the feature from adding other entries anymore.
Comment #16
jose reyero commentedGreat, committed.