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

danielb’s picture

Hey 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!

danielb’s picture

Status: Active » Fixed

alright 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.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.