I'm getting this error:
Notice: Undefined index: dependencies in features_export_components_json() (line 634 of features.admin.inc)
When I create a new feature and attempt to update the files on disk directly.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | features-undefined-index-1945314-12.patch | 521 bytes | mpotter |
| #11 | features-undefined-index-1945314-6.patch | 517 bytes | Yaron Tal |
| #6 | features-undefined-index-1945314-6.patch | 517 bytes | Yaron Tal |
| #1 | Screen Shot 2013-03-17 at 3.32.30 PM.png | 54.22 KB | alberto56 |
Comments
Comment #1
alberto56 commentedSee enclosed the backtrace.
Comment #2
mpotter commentedLooks like a problem with a specific type of component in your export. You'll need to give a more detailed step-by-step procedure for reproducing this.
Comment #3
derrekc commentedI have encountered this warning as well when creating a Feature consisting of node content types.
Comment #4
kenorb commentedBacktrace:
So it happens when creating a new Feature by actually going to /admin/structure/features/create
Comment #5
mpotter commentedWhat I need to know is exactly what components you are trying to add to your new feature. The traceback above doesn't tell me anything except that there was a problem exporting whatever you selected to add to your feature. It doesn't tell me what you tried to export.
Comment #6
Yaron Tal commentedI had the same problem when trying to create a feature and not selecting any dependencies.
If I select a dependency first, and then select a view the view module will automatically be added to the feature dependencies and no notice is shown.
If I select the view first no dependencies are added and the following notice is shown after a refresh:
I attached a small patch that fixed the problem for me.
Comment #7
Yaron Tal commentedComment #9
Yaron Tal commentedLooks like a bug in the image module, or features implementation of that module, unrelated to the patch.
Trying 7.x-2.x-dev as the patch was also created on that version and patches on that version in other issues seem to validate.
Comment #10
Yaron Tal commented#6: features-undefined-index-1945314-6.patch queued for re-testing.
Comment #11
Yaron Tal commentedOn the dev version.
Comment #12
mpotter commentedHere is a version with proper white-space added for Drupal coding standards.
Comment #13
mpotter commentedPassing tests, so committed to 93ff6cd.