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.
I am using Drupal 7 with nodequeue, trying to generate a smartqueue for a vocabulary. When I set it up, I only get one "subqueue" for the entire vocab. I thought it was supposed to make a subqueue for each term in the vocabulary? Is this correct?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | 7.x-2.x 1281382-taxonomy-smartqueue-gen-fix-2.patch | 1.32 KB | chrisschaub |
Comments
Comment #1
chrisschaub CreditAttribution: chrisschaub commentedThe error is somewhere in this code in nodequeue_genereate.module, I think.
I first thought it was the range(0,1) which only got 1 node, but now I'm not sure. It could also be the node_load is running out of memory. I have about 85 nodes that are classified by terms. That shouldn't be enought to run out of memory, and I'm not getting any error. It only processes the first term in the vocab, only that term gets a taxonomy smartqueue. Any pointers are greatly appreciated. No errors either, just the first term gets a queue. Weird.
Comment #2
chrisschaub CreditAttribution: chrisschaub commentedHere's a patch that fixes the issues with taxonomy smartqueues not creating queues for each term. The issue has to do with how the array append happens. The array append behavour in PHP5 is a bit tricky and the nids are never getting appended so the term queues are not getting genereated. It just keeps the first node in the nids array. This patch is an attempt to fix it.
Comment #3
gazzer82 CreditAttribution: gazzer82 commentedI also have this problem, however i am unable to apply the patch to the latest beta or dev build, i get an unexpected end of file.
Is this patch current for the latest builds?
Thanks
Gareth
Comment #4
chrisschaub CreditAttribution: chrisschaub commentedYes, latest dev for drupal 7. Are you using git to apply patch?
Comment #5
gazzer82 CreditAttribution: gazzer82 commentedNo I'm using patch on the command line is OSX, i haven't ever used GIT.
Could you pint me in the direction of some instructions and i shall give it a go!
Thanks for your help.
Gareth
Comment #6
gazzer82 CreditAttribution: gazzer82 commentedOK, just tried it with GIT and i get the a message telling me there is a corrupt patch at line 43.
Any ideas?
Thanks
Gareth
Comment #7
amateescu CreditAttribution: amateescu commentedConfirmed the bug and the patch from #2 fixes it.
Commited to 7.x-2.x. Thanks!
http://drupalcode.org/project/nodequeue.git/commit/136e46f