Hello, just to let you know I found this situation interesting. Probably fast fix for developers.

I am attaching picture with this Notice about Node Gallery in field.module and node_gallery_api.module.

This Notice showed up during Search (using drupal core module).

The term jeunesse

is 1 -> Taxonomy term

which is used to build

2 -> Menu Item.

Also

3 -> Gallery is using it as part of gallery title and gallery item title.

However if there is no menu item build on taxonomy term (no connection between menu and taxonomy) the problem disappear.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

olgamg’s picture

Title: Notice: Undefined in _node_gallery_api_gallery_view() » Notice: Undefined index: search_result in _node_gallery_api_gallery_view() (line 1135 of drupal\sites\all\modules\node_gallery \node_gallery_api.module). Notice: Undefined offset: 1 in _node_gallery_api_gallery_view() (line 1135 of drupal\sites\all\modul
amme’s picture

amme’s picture

amme’s picture

amme’s picture

FileSize
1.79 KB
amme’s picture

Status: Active » Needs review

  • zengenuity committed a546f08 on 7.x-1.x authored by amme
    #2252833 - PHP notices on view modes that are not configured having...
zengenuity’s picture

Assigned: olgamg » Unassigned
Status: Needs review » Fixed

@amme, thanks for the patch. Looks good. Committed.

nordicmaterial’s picture

I confirm having the exact same "Undefined index" and "Undefined offset" error.
The patch fixed it.
Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.