Hi!
There is wrong return value in field_collection_views_views_default_views, so we notice about Undefined variable.
Notice: Undefined variable: views in function field_collection_views_views_default_views() (string 94 field_collection_views/views/field_collection_views.views_default.inc).
You need to add
$views [$view->name] = $view;
before return $views;
Regards,
Alex
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | field_collection_views-undefined-var-2548003-#5.patch | 1.02 KB | rdatar |
Comments
Comment #2
deanflory commentedI too just got this error:
Comment #3
webel commentedSame error after upgrading a site from Drupal-7.30 to Drupal-7.39 and
Field Collection Views from 7.x-1.0-beta3+1-dev to 7.x-1.x-dev which gave:
Extension : field_collection_views
Project : field_collection_views
Version : 7.x-1.0-beta3+2-dev
Date : 2015-06-30
Comment #4
vm commentedas pointed out in the issue summary:
placing $views [$view->name] = $view; before return $views; at he bottom of field_collection_views/views/field_collection_views.views_default.inc does seem to suppress the notice
Comment #5
summit commentedhi,
i had the same thing upgrading to Drupal 7.40. Could someone make a patch please?
Thanks in advance!
Greetings, Martijn
Comment #6
rdatar commentedPatch submitted for undefined variable issue. File name : field_collection_views-undefined-var-2548003-#5.patch
Comment #7
rdatar commentedComment #8
summit commentedYes works! thanks.
greetings, Martijn
Comment #9
krknth commentedYes, this patch fixing the Notice
Comment #11
neerajskydiver commentedNice found, Thanks for patch.