Not working with votingapi

Ariadoss - August 4, 2006 - 20:58
Project:Node Moderation
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I just installed this module on 4.7.2 and got the following errors:

Fatal error: Call to undefined function: votingapi_get_vote() in /home/drupal/modules/contrib/nmoderation/nmoderation.module on line 737 (appears on node/$)
and
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DISTINCT(n.nid), n.created, n.title, v.uid, u.name FROM drupal. query: SELECT nv.vote, v.value, v.vote_id, DISTINCT(n.nid), n.created, n.title, v.uid, u.name FROM drupal.votingapi_vote v INNER JOIN drupal.nmoderation_votes nv ON v.value = nv.mid INNER JOIN drupal.node n ON v.content_id = n.nid AND v.content_type = 'node' AND v.value_type = 'option' INNER JOIN shareddrupal.users u ON v.uid = u.uid WHERE n.status = 1 ORDER BY created DESC LIMIT 0, 50 in /home/drupal/includes/database.mysql.inc on line 120. (appears on admin/settings)

Please note I have the latest version of votingapi installed.

 
 

Drupal is a registered trademark of Dries Buytaert.