The following error shows up when all caches are cleared (such as when a module is enabled), and Nodequeue, Smartqueue, and Smartqueue Taxonomy are enabled:
Notice: Undefined offset: 3 in nodequeue_handler_relationship_nodequeue->init() (line 19 of /document-root/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
I can't say whether it still occurs in 2.x-dev or 3.x-dev, since I haven't tested those versions. Also, it may occur when only Nodequeue is enabled - I just wanted to report that the others were enabled as well in my case.
The notice doesn't seem to have any negative effect, however.
Comment | File | Size | Author |
---|---|---|---|
#14 | nodequeue-undefined_offset_views_handler-1436990.patch | 1.1 KB | othermachines |
Comments
Comment #1
rafinskipg CreditAttribution: rafinskipg commentedI dont know whats the problem, but I have those errors on my site.
Comment #2
rafinskipg CreditAttribution: rafinskipg commentedNeed help with
Comment #3
kevster CreditAttribution: kevster commentedIm getting this too with 7.2x beta 1 after clear cache and on various pages:
Notice: Undefined offset: 2 in nodequeue_handler_relationship_nodequeue->init() (line 19 of ...../web/www/sites/....../html/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
thx..
Comment #4
rafinskipg CreditAttribution: rafinskipg commentedI solved that problems deleting the views associated to the Nodeques.
The problem was that the nodequeue "X" had been deleted, but not the view.
Comment #5
amateescu CreditAttribution: amateescu commentedOk, so the problem was that a View containing a Nodequeue relationship still exists after a queue has been deleted. I don't know if there's anything we can do about that, as views can also be manually created by a user, not only automatically by Nodequeue, so I'm inclined to say that it's the user's responsability to clean up.
Any other thoughts?
Comment #6
AndrzejG CreditAttribution: AndrzejG commentedOK, as it couldn't be reasonable to implement removing the view on the nodequeue removal.
But, if so, the warning should be added somewhere to remind the admin that she/he could remove the view manually.
Comment #7
InternetDevels CreditAttribution: InternetDevels commentedAppear notices in 7.x-2.x-dev version of module.
Notice: Undefined offset: 2 in nodequeue_handler_relationship_nodequeue->init() (line 20 of sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Fixed this issue.
Comment #8
quicksketchThanks @InternetDevels.Com, fixes the problem for me. I was getting 10+ of these on almost every page of my site after upgrading from Drupal 6.
Comment #10
jonyprofit CreditAttribution: jonyprofit commented#7: nodequeue-no_set_el_array.patch queued for re-testing.
Comment #12
Alpay Beler CreditAttribution: Alpay Beler commentedAny update on this issue?
I am getting a similar error Notice: Undefined index: leadership innodequeue_handler_relationship_nodequeue->init() (line 20 of/home/heritage/domains/**/public_html/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
Thanks.
Comment #13
cpelham CreditAttribution: cpelham commentedI am getting these errors also.
Comment #13.0
cpelham CreditAttribution: cpelham commentedadded further explanation
Comment #14
othermachines CreditAttribution: othermachines commentedThis is still present in latest 7.x-2.x-dev. Here's a re-roll of the patch in #7 which resolves these errors.
Steps to reproduce
1. Install nodequeue and its dependencies.
2. Create a single nodequeue (admin/structure/nodequeue).
3. Go to Views admin (admin/structure/views) and select "Edit" next to nodequeue_1 (assuming it's the first nodequeue you've created).
4. Without changing anything, hit "Save". This overrides the "in code" view, meaning it won't be automatically deleted when the nodequeue is deleted.
5. Delete the nodequeue (admin/structure/nodequeue).
6. Clear all caches (admin/config/development/performance).
PHP notices displayed:
Comment #16
fizk CreditAttribution: fizk commentedCommitted. Thanks!