I had to upgrade to latest Views dev version and my custom pagers don't work anymore.
I get this warning messages :

warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/nicolas-losson/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 914.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/nicolas-losson/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 990.
warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/nicolas-losson/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 914.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM node node LEFT JOIN term_node term_node ON node.vid = term_node.vid LEFT' at line 2 query: SELECT FROM node node LEFT JOIN term_node term_node ON node.vid = term_node.vid LEFT JOIN term_data term_data ON term_node.tid = term_data.tid WHERE (node.type in ('fiche_projet')) AND ((term_data.name) = ('Pièces sonores')) LIMIT 0, 10 in /Applications/MAMP/htdocs/nicolas-losson/sites/all/modules/views/plugins/views_plugin_query_default.inc on line 1134.

I get rid of it when I disable Custom_pager module.

Obviously something must have change in Views module. Is there any way to fix this within Custom_pager module or is it a Views issue ?

Comments

pkej’s picture

I have the same problem, but I didn't get any error messages, I just couldn't get the custom pagers to show up.

masande’s picture

apply this patch to the latest dev version to make compatible with views 3: http://drupal.org/files/issues/896776.patch

malancheril’s picture

I had the same problem as #1 pkej where I don't get any error messages but the pager just doesn't show up. I tried applying the patch but nothing changes.

malancheril’s picture

Correction: I did get the same error message, the patch makes the error message go away but the pagers still don't show up. Has anyone been able to get customer pagers working with views 3?

adam_b’s picture

subscribe

opdavies’s picture

Works for me with views-6.x-3.0-alpha3. :)

nchase’s picture

patch in #2 doesn't work for me with the views 3 dev beyond October 2011.

remaye’s picture

Status: Active » Closed (duplicate)

Duplicate of #896776: Views 3 compatibility