Closed (fixed)
Project:
View reference
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2008 at 05:30 UTC
Updated:
14 Jul 2012 at 19:28 UTC
I'm not experience enough to know if this is user error, so I'm putting it here instead of support just in case.
I've set up a View Reference Field on my site, but when I go to enter an argument, in this case it's "John Adams" (w/o quotes), I get the following error message:
warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/colonial/public_html/drupaltest2/includes/database.mysql.inc on line 321.
When I go back to edit the page I find that the argument field is blank.
I know the view works because I've been using Insert View to display it on the same page.
Thanks,
Comments
Comment #1
danielb commentedHey mate I just noticed that too, switch it to '2' rows under 'arguments' in the field settings. Haven't figured out why there is a difference!
Comment #2
danielb commentedalright I've figured it out, for textfield I was using the text_textfield widget, whereas for textarea I was using the Forms API textarea. The widget one uses an array of values, rather than a string, so I've switched it over to Forms API too.
Update in a few minutes.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.