I upgraded from the previous version of drigg and when I go to a users profile and click the scoop tab I get
Parse error: syntax error, unexpected $end in /home/estringc/public_html/webvideobubble.com/sites/all/modules/drigg/drigg.module(1290) : eval()'d code on line 1
and then when I click on votes I get
user warning: Unknown column 'karma' in 'where clause' query: SELECT COUNT(*) FROM votingapi_vote vv LEFT JOIN node n ON n.nid = vv.content_id LEFT JOIN drigg_node dn2 ON dn2.dnid = n.nid WHERE ( 1=1 AND !(n.type='drigg' AND dn2.killed=1 ) ) AND ( vv.uid=4 and 1=1 AND vv.content_type='node' AND vv.value_type='points' AND vv.tag='vote' AND n.status=1 AND n.type='drigg' AND karma > 0 ) in /home/estringc/public_html/webvideobubble.com/includes/database.mysql.inc on line 172.
user warning: Unknown column 'karma' in 'where clause' query: SELECT content_id FROM votingapi_vote vv LEFT JOIN node n ON n.nid = vv.content_id LEFT JOIN drigg_node dn2 ON dn2.dnid = n.nid WHERE ( 1=1 AND !(n.type='drigg' AND dn2.killed=1 ) ) AND ( vv.uid=4 and 1=1 AND vv.content_type='node' AND vv.value_type='points' AND vv.tag='vote' AND n.status=1 AND n.type='drigg' AND karma > 0 ) ORDER BY vv.timestamp DESC LIMIT 0, 20 in /home/estringc/public_html/webvideobubble.com/includes/database.mysql.inc on line 172.
I must be missing some steps in the upgrade but don't know what they are.
Comments
Comment #1
mercmobily commentedHi,
OK, I fixed the query problem (which was huge!). My apologies. It's fixed in the DRUPAL-5 Branch - are you able to have a look?
For the eval problems, can you go to Admin -> Settings -> Drigg Look, and put:
extra_voting_forms_show_form($node,'n',3);
in "Code to get the voting forms." ?
An older version of Drigg (in fact, 1.1 the one you're using) had a bug in the default configuration. Please make sure that the code is *precisely*:
extra_voting_forms_show_form($node,'n',3);
Bye,
Merc.
Comment #2
mercmobily commentedHi,
OUCH.
Fixed in DRUPAL-5.
Are you able to test the DRUPAL-5 branch and confirm that it works 1000% OK?
Bye,
Merc.
Comment #3
mercmobily commentedHi,
Above, I meant to write:
return extra_voting_forms_show_form($node,'n',3);
(See the extra "return"!)
Bye!
Merc.
Comment #4
Anonymous (not verified) commentedCool. Thanks that fixed it.
Comment #5
Anonymous (not verified) commentedThat seems to do it. Thank you for your quick response and fix.
Comment #6
mercmobily commentedHi,
No worries!
Merc.