I found this error in watchdog

url
admin/lm_paypal/subscriptions/new

mysql_real_escape_string() expects parameter 1 to be string, array given in /var/www/ac/includes/database.mysql.inc on line 350.

I was surprised because until I saw it, I thought everything was working correctly.

do you know what this is about?

Comments

LeeMcL’s picture

Assigned: Unassigned » LeeMcL

I've tried to duplicate this on my test site and cannot.

Can you tell me exactly what you were doing when this error message appeared?

I've checked the code out and that error is from db_escape_string() which I only call in one place in the subscriptions code. Thats when processing form values. Judging by the error message it thinks an array has been passed. But the form doesn't pass any arrays! So its very puzzling.

Lee

gener-1’s picture

Status: Active » Closed (fixed)

Hi Lee,
thanks for your quick response. It turns out I had changed the code and introduced the error. Sorry for the trouble.