Receive this error: Notice: Undefined variable: subqueues in nodequeue_load_subqueues() (line 715 of /[path_to_drupal]/sites/all/modules/contrib/nodequeue/nodequeue.module)

That should be initialized with:
$subqueues = array();

At the top of that function.

Comments

adriancruz’s picture

Got the same notice. It happened for me after I delete all my taxonomy queue.

Adding $subqueue = array(); works for me.

Not sure if its just declaring that variable (code) will do, or did I missed something after I deleted those taxonomy queues (database)?
Like deleting their views?

Because that notice only shows after I delete my taxonomy queues, not before.

Thanks

Offlein’s picture

I am pretty sure it's just a minor bug in the code. You don't need to have subqueues, but this module makes a minor silly error in the event that you don't.

Offlein’s picture

Issue summary: View changes

Removing sensitive info.

eyal shalev’s picture

Issue summary: View changes
StatusFileSize
new323 bytes

Initializing the $subqueue array seems to solve the problem.

It started happening to me after deleting a nodequeue.

Status: Needs review » Needs work

The last submitted patch, 3: patch.patch, failed testing.

johnlutz’s picture

StatusFileSize
new405 bytes
Chimos’s picture

Same error here. I can't test the patch in this moment.

lanchez’s picture

Version: 7.x-2.0-beta1 » 7.x-3.x-dev
Status: Needs work » Needs review
StatusFileSize
new405 bytes

Rerolled for 7.x-3.x.

  • fizk committed 1e8f784 on 7.x-3.x authored by lanchez
    Issue #1821214 by johnlutz, Eyal Shalev, lanchez: Uninitalized Variable...
fizk’s picture

Status: Needs review » Fixed

Fixed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.