I'm using points moderation but when I go to the administration page and click one of the "edit" links, I first get this error: warning: htmlspecialchars() expects parameter 1 to be string, object given in /home/webwis2/public_html/dev2/includes/bootstrap.inc on line 631.
Then, when I get to the admin form and try to edit a transaction, I get this error: warning: mysql_real_escape_string() expects parameter 1 to be string, object given in /home/webwis2/public_html/dev2/includes/database.mysql.inc on line 400.
Ultimately, the UPDATE query does not complete.
I did a backtrace to see if I could locate the value of "paramater 1" and believe this might be the culprit (but I don't know how to fix it):
userpoints_admin_txn_submit,
Array
(
[0] => userpoints_admin_txn
[1] => Array
(
[txn_user] => stdClass Object
(
[uid] => 18
[name] => drachiswipug
[pass] => 6b74c545508a081c15aa7221c764f475
[mail] => drachiswipug@dev2.webwiseone.com
[mode] => 0
[sort] => 0
[threshold] => 0
[theme] =>
[signature] =>
[created] => 1177554106
[access] => 1177554106
[login] => 0
[status] => 1
[timezone] =>
[language] =>
[picture] =>
[init] =>
[data] =>
[roles] => Array
(
[2] => authenticated user
)
[og_groups] => Array
(
)
)
[points] => 5
[time_stamp] => 2007-08-15 19:19 +0000
[description] => zzzzzzzzzzz
[reference] =>
[approver_uid] => 0
[event] => post comment
[status] => 1
[mode] => edit
[op] => Save
[submit] => Save
[form_token] => f3ffc4c6990745e8b89927e747d320f0
[form_id] => userpoints_admin_txn
)
)
Let me know if I can provide any more info.
Thanks,
Kevin
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | userpoints_5.x-2.14.patch | 2.87 KB | kmillecam |
Comments
Comment #1
kmillecam commentedHere's a patch that fixes the reported behavior.
The system was choking when it was passed a user object instead of a uid.
A little code tuning fixed the problem.
Comment #2
kmillecam commentedI'm just wondering if no one else is experiencing this problem? I did a clean install and it still raised its ugly head ... hence the patch.
Kevin
Comment #3
jredding commentedThis behavior is not present in the CVS version of 2.14 of on the latest code in the Drupal-5--3 branch.
Comment #4
(not verified) commented