Hey guys , i am new to Drupal , and i added some contents and installed the following Module called FiveStar,
http://drupal.org/project/fivestar
it rates your comments , atleast thats what i want.
But unfortunately , i get the following error , when i open my comments.
* Warning: Missing argument 2 for fivestar_comment_load() in fivestar_comment_load() (line 201 of I:\xampp\htdocs\sites\all\modules\fivestar\fivestar_comment.module).
* Warning: Illegal offset type in isset or empty in fivestar_comment_load() (line 204 of I:\xampp\htdocs\sites\all\modules\fivestar\fivestar_comment.module).
* Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2039 of I:\xampp\htdocs\includes\database\database.inc).
These are the lines in the fivestar_comment.module which include line 201 and 204.
/**
* Get a current rating(s) for a comment.
*/
function fivestar_comment_load($cid, $nid, $reset = FALSE) {
global $user;
static $cids = array();
if (!isset($cids[$cid]) || $reset) {
$result = db_query('SELECT * FROM {fivestar_comment} WHERE cid = %d', $cid);
while($data = db_fetch_array($result)) {
$cids[$cid][$data['tag']] = $data;
}
}
return $cids[$cid];
}
This is 2039 line in database.inc
$return = parent::execute($args);