I'm overriding the default taxonomy page with a View in Drupal 7 using contextual filter "Content: Has taxonomy term ID. for the output I'm using a Galleriffic Gallery format, this works great.

I now want to use the 'taxonomy smartqueue' to sort by the position of nodes in the queue. For this I added a Relationship to Nodequeue in Advanced section, and used 'Nodequeue: Postion' in Sort criteria. However with this the View gets:

Warning: Illegal offset type in isset or empty in views_handler_field_prerender_list->render() (line 68 of views/handlers/views_handler_field_prerender_list.inc).

Has anyone come across this? Have you found a solution?

Comments

dawehner’s picture

If you read the error message you will see the word "field" in there, but you only described how you have configured stuff like relationships/sorts.

One thing you could certainly do is to try out which of your fields actually causes the warning. In general it's probably always helpful to have a view export here.

jpdaut’s picture

Thanks for the hint to look into $field, this helped me figure out my problem.

views_handler_field_prerender_list->render() could not retrieve $this->items[$field] bec of wrong type: $field was an array, not a string…

This gave me the hint that I did not have the proper branch of Nodequeue.

Indeed I’m using Views 7.x-3.5 but had Nodequeue 7.x-2.0-beta1 instead of the 7.x-3.x branch.

I installed Nodequeue 7.x-3.x-dev and all is well. Hope this helps others.

dawehner’s picture

Status: Active » Fixed

Great!

Status: Fixed » Closed (fixed)

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