After upgrading to alpha2 the following errors occur on several pages including the clear cache page:

***********
Notice: Undefined offset: 1 in nodequeue_handler_relationship_nodequeue->init() (line 18 of /var/www/resilient/sites/all/modules/nodequeue/includes/views/nodequeue_handler_relationship_nodequeue.inc).
***********

Several views that contained relationships to older nodequeue releases also spawned errors. (see http://drupal.org/node/1199370) After deleting and reinserting these relationships and fields, many of the original errors disappeared, but some still remain even when all views have relationships to nodequeue removed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zoon_unit’s picture

Note that I can "cure" this particular error by reinstalling the nodequeue module through the devel module. (which deletes the old tables and creates them anew)

This tells me that the update code for alpha 2 is missing the update and conversion of something in the old tables.

Andreas Radloff’s picture

I'm seeing the same error (but with Undefined offset: 2). I'm using an older dev from May 19th, before alpha2, which I guess means the problem is not caused by alpha2.

I'm currently on views 7.x-3.0-rc1 but the problem has existed for me since a couple of months, everything seems to be working except for the notices.

amateescu’s picture

This notice was introduced in http://drupal.org/node/817558#comment-4453848.

I will try to provide a fix in the following days.

amateescu’s picture

Version: 7.x-2.0-alpha2 » 7.x-2.x-dev
Status: Active » Postponed (maintainer needs more info)

Can you please give me the output of:

debug($map);
debug($options['qids']);

right after:

$map = array_flip(nodequeue_get_qid_map());
amateescu’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Please reopen if you can provide more info.

amateescu’s picture

Status: Closed (cannot reproduce) » Closed (fixed)
FileSize
776 bytes

I was able to reproduce this issue and commited the attached patch to fix it.

http://drupalcode.org/project/nodequeue.git/commit/19747f2

ronan’s picture

Status: Closed (fixed) » Needs review
FileSize
701 bytes

I'm having something similar with the latest dev (2013-Apr-10). Not sure what's causing it, but the $value is valid but the $map[$key] does not exist, therefore I'm getting the same warning as above. The attached patch expands the guard clause from #6 to deal with this.

mycrazydog’s picture

Issue summary: View changes

Just for anyone who encounters this problem too (Undefined offset / nodequeue_handler_relationship_nodequeue), this patch fixed the problem for me. Thanks

fizk’s picture

Status: Needs review » Closed (duplicate)