Hi, I have votingapi and view installed. I'm using drupal 5 and nodereview 5.

Whenever I try to submit a review, I get this error:

* warning: Invalid argument supplied for foreach() in /home/thegeeks/public_html/ebreviewsd/modules/nodereview/nodereview_node_nodereview.inc on line 142.
* warning: Invalid argument supplied for foreach() in /home/thegeeks/public_html/ebreviewsd/modules/nodereview/nodereview_node_nodereview.inc on line 222.

The review seems still gets submitted though...

Any ideas why this is happening? Thanks.

Comments

Crell’s picture

Votingapi just had a huge change in the way it deals with Views. I haven't had a chance to go in and see what the knock-on effect is on Nodereview. I'll have a look when I can.

I seem to recall seeing that error before, but I can't remember what it was or how I fixed it. :-/

GreenTorii’s picture

Thanks Crell for your fast reply. Hope this gets fixed soon so I can witness the greatness of NodeReview so many people have been talking about =) (nodereview is actually one of the main reasons why i'm switching from joomla to drupal ^^)

Rock on dude.

jnorton’s picture

Any update on this issue yet?

Thanks,

J.

Crell’s picture

Assigned: Unassigned » Crell
Category: support » bug
Status: Active » Fixed

I've found the problem here. If you have no review axes defined for a given reviewable node, then you will get those errors. Of course, you shouldn't be trying to submit a review on a node without review axes in the first place as it would be just a single title string. I've committed a change that doesn't show the review tabs in the first place unless there is an axis on which to review the node.

Sorry for the delay in getting to this. Cheers.

Anonymous’s picture

Status: Fixed » Closed (fixed)