Getting a notice on a very standard installation right off the bat when setting it up. Appears on image gallery items. The file is node_gallery/node_gallery_api.inc
Notice: Undefined index: 37 in node_gallery_api_get_item_position() (line 832 of /modules/node_gallery/node_gallery_api.inc).

If I can determine anything else relevant I will add info here. Minor but worth filing. Thx.

Files: 
CommentFileSizeAuthor
#9 12-12-2013 13-36-26.jpg710.51 KBfugazi

Comments

Also getting:

Notice: Undefined index: node_gallery_node_thumbnail in _node_gallery_api_gallery_view() (line 1119 of /modules/node_gallery/node_gallery_api.module).
Notice: Undefined offset: 1 in _node_gallery_api_gallery_view() (line 1119 of /modules/node_gallery/node_gallery_api.module).

Hmm...These thing shouldn't happen everything is working correctly. Are your galleries sorted correctly? If you clear the cache do the errors go away? Did you install this on D7 from scratch, or upgrade from D6?

Status:Active» Postponed (maintainer needs more info)

After making some changes late last night I noticed also this morning the same sort of errors appearing in logs ( albeit using dev version ) and these errors went after the cashe was cleared. Just letting you know.

Notice: Undefined index: 128 in node_gallery_api_get_item_position() (line 825 of /var/www/html/axfp/sites/all/modules/node_gallery/node_gallery_api.inc).
Notice: Undefined index: 128 in node_gallery_api_get_item_position() (line 825 of /var/www/html/axfp/sites/all/modules/node_gallery/node_gallery_api.inc).
Notice: Undefined index: 128 in node_gallery_api_get_item_position() (line 825 of /var/www/html/axfp/sites/all/modules/node_gallery/node_gallery_api.inc).
Notice: Undefined offset: 0 in node_gallery_api_get_first_item() (line 607 of /var/www/html/axfp/sites/all/modules/node_gallery/node_gallery_api.inc).
Notice: Undefined offset: -1 in node_gallery_api_get_last_item() (line 623 of /var/www/html/axfp/sites/all/modules/node_gallery/node_gallery_api.inc).

Getting those error messages after installing this module. Looks like a chain reaction of not properly identifying the individual gallery item.

This happened when I:

  1. Created a gallery, but saved it WITHOUT PUBLISHING.
  2. Created individual picture nodes within that gallery that were published.
  3. After publishing the main gallery, it assembled it properly and the errors went away.

same problem..

I was having the same problem. Found a solution here: https://drupal.org/node/1932508#comment-7975119

Posted by Erik Rotteveel on October 17, 2013 at 11:57am

Hi,

A bit of a late reaction, but I still think some users may have profit of this solution I found.

I had the same error, and the error went away when I set the following:

Admin > Settings > Node Gallery > [Choose a node gallery relation ship] > settings > gallery view modes > search index

To the view: Image Sort. (initially, this was set to None).

I hope this helped some of the readers!

ps. I am using the 7.x-1.0-beta3 version, but the function _node_gallery_api_gallery_view() is the same in that version.

# 7 unfortunately still the error

Issue summary:View changes
StatusFileSize
new710.51 KB

the whole protocol is fully written with these errors. I have upgrade from d6 after d7, made, had filled all modes with image gallery views sort.

Unfortunately, the error keeps coming back

Notice: Undefined offset: 0 in node_gallery_api_get_first_item() (Line 607 in /var/www/vhosts/sites/all/modules/node_gallery/node_gallery_api.inc).
Notice: Undefined offset: -1 in node_gallery_api_get_last_item() (Zeile 623 von /var/www/vhosts/sites/all/modules/node_gallery/node_gallery_api.inc).
Notice: Undefined index: 5310 in node_gallery_api_get_item_position() (Zeile 825 von /var/www/vhosts/sites/all/modules/node_gallery/node_gallery_api.inc).

what could that be I despair
regards

Status:Postponed (maintainer needs more info)» Active

there may already approaches what it can lie. Did I perhaps what set incorrectly. I appreciate any help, hint, encouraging very grateful.

I have two views for gallery pictures, here are two screenshots. Did I say something incorrectly?

Screenshot 1

Screenshot 2

I would like to ask again for help. I have the views set up incorrectly, that the error messages always come. I have my whole error log full. I really do not continue. Many thanks in advance

Hello,

I have the same error with views. Did someone solve the issue?

Best regards

Sorry.... #7 solve it ... my mistake...

Best regards

Status:Active» Closed (works as designed)