Get views error message on content types that have arguments enabled

challer - November 30, 2007 - 16:52
Project:Pro and Con arguments
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi, I'd love to use this module, but I get an error on nodes that have arguments enabled, and the arguments won't show up.
This is the error I'm getting

warning: Invalid argument supplied for foreach() in /home/17404/domains/southcarolina.eparticipation.net/html/modules/views/views_query.inc on line 81.
warning: Invalid argument supplied for foreach() in /home/17404/domains/southcarolina.eparticipation.net/html/modules/views/views_query.inc on line 16.
warning: Invalid argument supplied for foreach() in /home/17404/domains/southcarolina.eparticipation.net/html/modules/views/views_query.inc on line 195.
warning: Invalid argument supplied for foreach() in /home/17404/domains/southcarolina.eparticipation.net/html/modules/views/modules/views_node.inc on line 801.
warning: Invalid argument supplied for foreach() in /home/17404/domains/southcarolina.eparticipation.net/html/modules/views/views_rss.module on line 56.

I'm using the latest versions of views and procon, any ideas what is going wrong?
Thanks for your help,
Chris

#1

fajerstarter - December 19, 2007 - 09:12

Sorry I haven'r replied to this. I can't replicate this.

#2

x2222 - January 15, 2008 - 06:39

Hi, this is a great module but I'm having this same problem on my drupal 5.1 install. The only addition to the error message I get above is that the drupal calendar module is mentioned.

I have a custom views block of the calendar module that appears on every page of my site and disabling it on the node where I had pro con enabled helped once to remove the error message and restore it to working order.

Now, that error message seems to be back and for no reason since I now have zero views or any non-standard blocks on the page. The error message seemed to come back randomly. Is there anything that can be done to make this module more compatible and stable with views on a drupal site? Thanks.

#3

armand0 - February 19, 2008 - 09:00

Me to. The same warning. Any idea?

#4

fajerstarter - March 6, 2008 - 09:53

I saw this on a site a was working with recently. It turned out that the default procon_arguments view was not added. I ended up importing it manually. The view that is provided by procon needs to be smarter about the database, but I don't know how yet.

I'm attaching the view to import. If you are not using fivestar you probably have to remove this part:

array (
      'tablename' => 'votingapi_cache_vote_percent_average',
      'field' => 'value',
      'sortorder' => 'DESC',
      'options' => '',
    ),

AttachmentSize
procon_view.txt 1.41 KB
 
 

Drupal is a registered trademark of Dries Buytaert.