Hi, this module is great. Im just having some trouble finishing the configuration.
I get these errors when opening Galleries main page:

Notice: Undefined offset: 1 i _node_gallery_api_gallery_view() (linje 1119 av/node_gallery/node_gallery_api.module).
Notice: Undefined offset: 1 i _node_gallery_api_gallery_view() (linje 1119 av /modules/node_gallery/node_gallery_api.module).

What do I need to do to fix this? Se attatchment as well.

Files: 
CommentFileSizeAuthor
gallery_error.jpg49.54 KBRob3rtkvi

Comments

Erik Rotteveel’s picture

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.

kappaluppa’s picture

Thank you so much for the info!

I changed my settings as you said and still received the error. Then I checked and there were other view modes where "none" was selected. I made sure all had something chosen. I am not getting the error any more.

I did go back and choose "none" again to test, but the error did not come back. Not complaining... just thought I'd point that out.

Thanks again.
K

mibfire’s picture

Issue summary:View changes

I did the same but i am still getting this error.

mibfire’s picture

I figured out. The teaser view wasnt set.

siltaar’s picture

I also encountered this error message after uploading some images, used the Manage Items tabs to changes some titles, uploading more images… Got stuck at 24 images with correct offset, and no more offsets after that.

I've been freed from this flushing all caches if it can help.