Closed (fixed)
Project:
NodeReview
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Mar 2007 at 14:52 UTC
Updated:
20 May 2007 at 20:30 UTC
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
Comment #1
Crell commentedVotingapi 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. :-/
Comment #2
GreenTorii commentedThanks 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.
Comment #3
jnorton commentedAny update on this issue yet?
Thanks,
J.
Comment #4
Crell commentedI'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.
Comment #5
(not verified) commented