Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#9 | 12-12-2013 13-36-26.jpg | 710.51 KB | fugazi |
Comments
Comment #1
HongPong CreditAttribution: HongPong commentedAlso getting:
Comment #2
zengenuity CreditAttribution: zengenuity commentedHmm...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?
Comment #3
zengenuity CreditAttribution: zengenuity commentedComment #4
fluxrider CreditAttribution: fluxrider commentedAfter 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.
Comment #5
tiberiustibz CreditAttribution: tiberiustibz commentedGetting those error messages after installing this module. Looks like a chain reaction of not properly identifying the individual gallery item.
This happened when I:
Comment #6
fugazi CreditAttribution: fugazi commentedsame problem..
Comment #7
kappaluppa CreditAttribution: kappaluppa commentedI was having the same problem. Found a solution here: https://drupal.org/node/1932508#comment-7975119
Comment #8
fugazi CreditAttribution: fugazi commented# 7 unfortunately still the error
Comment #9
fugazi CreditAttribution: fugazi commentedthe 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
Comment #10
fugazi CreditAttribution: fugazi commentedComment #11
fugazi CreditAttribution: fugazi commentedthere 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
Comment #12
fugazi CreditAttribution: fugazi commentedI 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
Comment #13
fraweg CreditAttribution: fraweg commentedHello,I have the same error with views. Did someone solve the issue?Best regardsSorry.... #7 solve it ... my mistake...
Best regards
Comment #14
zengenuity CreditAttribution: zengenuity commentedComment #15
Infinitee CreditAttribution: Infinitee commentedI hate to reopen this but, I have tried everything to no avail.
This is a new install of the latest to date Drupal 7.34 and Node Gallery 7.x-1.0 on local host. Only 24 images work without error. 25 or more fires error...
Notice: Undefined offset: 65 in node_gallery_api_get_item_position() (line 825 of J:\Aquia Dev Desktop 2\domains\drupal\sites\all\modules\node_gallery\node_gallery_api.inc).
I cleared site and browser caches.
Rebooted server.
Tried #7.
Tried setting views to display 30 images per page.
No change.
Image and text fields are fine. Error and pager... not so good.
The pager is not displaying 25 of 25 rather, it is displaying "Blank" of 24.
<em class="placeholder"></em> of <em class="placeholder">24</em>
Any help is of course greatly appreciated. I am at a stand still with development.
Thanks!
Comment #16
DSHolmstrom CreditAttribution: DSHolmstrom commentedI am getting the same error in galleries that show more than 24 thumbnails and need a second page of thumbnails. Images 25-27 all show this error. When I use the pager it stops at image 24. cleared caches, tried number 7 still there.
Comment #17
traceyspencer CreditAttribution: traceyspencer commentedI got the above error on certain gallery item pages, but not all of them. Eventually, I found that it was appearing on all items that apepared on page two or later, in galleries that had custom sorting. All page one items were fine.
It looks like the maximum thumbnails per page setting on your view matches the number of thumbmails shown on the sort items tab in the gallery page, but there is no page navigation on the sort items tab, so you can only sort the items on the first page. This means the items on page two onwards have no sort index, hence the error.
The quick fix is to change the number of thumbnails in your view settings so all images are shown on page one. Then reset the sort order and redo your custom sorting. You must reset the sort order to fix the error.
Hope that helps.
Comment #18
spyderpie CreditAttribution: spyderpie commented#7 - kappaluppa - Thank you - this worked for me ;)
Julie
Comment #19
zengenuity CreditAttribution: zengenuity commentedI've still not been able to replicate this, even doing exactly what has been described above with custom sorting and going to page 2+. In any case, I don't think the 24 item restriction is necessary in the Image Sort view, so I removed it. You may need to revert the view after updating.
Comment #20
Infinitee CreditAttribution: Infinitee commentedTry re sorting some images and deleting some other images and then re-sort some images again. This is the only thing I can think of that know I did before I noticed the error popping up.
Comment #21
zengenuity CreditAttribution: zengenuity commented@Infinitee, did you try the new view? I think it should be in -dev now.
Comment #22
Infinitee CreditAttribution: Infinitee commentedI am using 7.x-1.x-dev with customized pager and these settings to make it work properly.
Gallery Teasers
Full | Paged, 24 items
Image Thumbnail Grid, Strip, etc...
Full | Paged, 22 items
You can see it working here:
https://www.infinitee-designs.com/gallery/ralph-hawke-manis/3d-graphics-art-gallery
I'm not sure but, If I remember correctly, It did not start working correctly until I set the Image Thumbnail Grid, Strip, etc... views to 22 items.
Comment #23
bredy73 CreditAttribution: bredy73 commentedI have the same error. Drupal 7.41 and node gallery 7.x-1.1 when image are more than 24 item.
Comment #24
szy CreditAttribution: szy commented#7 helped me with present up-to-date Drupal and NG, exactly like:
Thanks, @kappaluppa! :]
Szy.
Comment #25
lu_smithcon CreditAttribution: lu_smithcon commentedI was also getting "Notice: Undefined offset: 126 in node_gallery_api_get_item_position() (line 825..." and the problem was my view assigned to the Full content display in Gallery View Modes was set to display all items but the Item navigator sort view was set to Use pager: Full | 24 items. Once I changed the Item Sort view to display all items, the problem was solved.