Closed (fixed)
Project:
Karma
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2007 at 05:47 UTC
Updated:
2 Nov 2007 at 00:21 UTC
I've got karma set up so users can rate comments, but not nodes. Comment ratings are visible to everyone.
When a goes to edit a node (e.g. node/182/edit) the site generates an error:
: Object of class stdClass could not be converted to string in /var/www/drupal/sites/all/modules/karma/karma.module on line 519.
I tried to fix it myself, but my PHP/MySQL skills are fairly limited and the Drupal API is new to me.
I'm using Drupal 5.1. I haven't tried 5.2 yet.
Jeremy McNaughton
Comments
Comment #1
bardkerbie commentedIt's a syntax issue in PHP 5.2.
This line:
doesn't look quite right to me, especially the
'karma_rating_form_'. $type .'_'. $idpart.Does anyone have any idea as to how to fix this?
Comment #2
mcarbone commentedFixed. It wasn't intelligently checking for $form_id in hook_forms to apply the form builder only to the 'karma_rating_form'.
Will be in tonight's build.
Comment #3
(not verified) commented