My environment: D6-13, Views 6.x-2.6, on a hosted Linux server (Lunapages), after the module upgrade, if I don't use the Global View result counter, everything is fine, but as soon as I added this field, I got the above error (yes, I did clear the cache as recommended but I still got the same error), the same error repeated 10 times, I've tried to add the fields one by one, and nothing happened until I added the Global view result counter, so I'm pretty sure it's this one causing the problem, but I can be wrong. If I'm missing something, please let me know.
ps: I'm just trying to build a tabbed view with new forum topics, so I'm not using Views with other modules except Quicktab, the SQL is as follows
SELECT node.nid AS nid,
node.title AS node_title,
node_comment_statistics.comment_count AS node_comment_statistics_comment_count,
COALESCE(ncs_users.name, node_comment_statistics.last_comment_name) AS node_comment_statistics_last_comment_name,
ncs_users.name AS ncs_users_name,
node_comment_statistics.last_comment_uid AS node_comment_statistics_last_comment_uid,
node_comment_statistics.last_comment_timestamp AS node_comment_statistics_last_comment_timestamp
FROM node node
INNER JOIN node_comment_statistics node_comment_statistics ON node.nid = node_comment_statistics.nid
LEFT JOIN users ncs_users ON node_comment_statistics.last_comment_uid = ncs_users.uid AND ncs_users.uid != '0'
WHERE node.type in ('forum')
ORDER BY node_comment_statistics_last_comment_timestamp DESC
Thanks
Michael
Comments
Comment #1
merlinofchaos commentedCan you paste the entirety of the error? Putting it in the title seems to have cut off the most important part.
Comment #2
michaelbr commented* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
* warning: array_search() [function.array-search]: Wrong datatype for first argument in /home/bccin0/public_html/sites/all/modules/views/handlers/views_handler_field_counter.inc on line 17.
all warnings are the same, it seems for some reason, it's repeating for each node I have in my site.
Comment #3
michaelbr commented