Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
gallery_error.jpg | 49.54 KB | Rob3rtkvi |
Comments
Comment #1
Erik Rotteveel CreditAttribution: Erik Rotteveel commentedHi,
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.
Comment #2
kappaluppa CreditAttribution: kappaluppa commentedThank 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
Comment #3
mibfire CreditAttribution: mibfire commentedI did the same but i am still getting this error.
Comment #4
mibfire CreditAttribution: mibfire commentedI figured out. The teaser view wasnt set.
Comment #5
siltaar CreditAttribution: siltaar commentedI 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.