Hit this error when adding an exposed filter to a view that looks at the language of the node.
warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in /home1/explore8/public_html/includes/database.mysqli.inc on line 323.

I also noticed that the apostrophe in user's shows up as #039.
Dev was as of 5-21

View export attached

Comments

jose reyero’s picture

Project: Internationalization » Views (for Drupal 7)
Version: 6.x-1.x-dev » 6.x-3.x-dev

Language is now a Drupal core field, so I think this is a views issue, if any.

strellman’s picture

Version: 6.x-3.x-dev » 6.x-2.6

Not sure where to find that views 3.x dev. I have views 2.6 and just loaded drupal 6.13 and i18n-6.x-1.1 with the same results.

geerlingguy’s picture

Having the same problem... on homepage of www.opensourcecatholic.com

zblace’s picture

subscribe

c-gundo’s picture

I have the same error since I enabled the OG module (6.x-2.0) on a multilanguage website.
This error disappears when I disable the module "Views translation" (6.x-1.2)

Note : i have an other error with OG configured with "Group home page view" as a View
but maybe no relationship

YK85’s picture

subscribing..im also seeing this warning message but after upgrading to views 3 dev

robby.smith’s picture

also seeing this error with some of my views after upgrading to views 3 alpha 2 and views 3 dev
any fix available?

YK85’s picture

accidentally made duplicate at #719038: warning: mysqli_real_escape_string() after upgrade and closed it to move here.

i'm seeing this warning show up 3 times in a row on a views page. is this a known issue? thanks!

pgacv2’s picture

Got this error when building a block view with the instructions at http://www.ridgesolutions.ie/index.php/2009/01/19/passing-an-argument-to.... My site is multilingual, so I thought it would be smart (thought it was apparently premature, as well) of me to return t($path[1]) instead of just $path[1]. This worked fine on the English node, but spit out warnings on the Spanish node. Removing the t() fixed it. I'm not sure why it would break break it in the first place, though; t() returns a string, not an array. Maybe Drupal (or Views) just wasn't expecting that call there, and returned an array out of wonkiness.

Cross-posting to #268891: mysqli_real_escape_string() expects parameter 2 to be string, array given in /includes/database.mysqli.inc on line 323, since apparently these errors come in groups.

gg4’s picture

Views 6.x-2.11

Seeing this in a view with an exposed filter - only when force single is checked.

Letharion’s picture

Status: Active » Postponed (maintainer needs more info)

It would be great if someone could export a view/feature that can be used to reproduce this.
The OP view can't be imported because it contains several CCK-fields.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No updates for 30 days.

greta_drupal’s picture

StatusFileSize
new20.26 KB

There ya go. Error occurs in Calendar page with exposed fields.

mgladding’s picture

Version: 6.x-2.6 » 6.x-3.x-dev
StatusFileSize
new20.67 KB

I am getting the same warning:

mysqli_real_escape_string() expects parameter 2 to be string, array given in /home/mysite/public_html/drupal_directory/includes/database.mysqli.inc on line 329.

Attached is my view. Warning goes away if I uncheck "force single."

Thanks for any help!

domh87’s picture

Status: Closed (cannot reproduce) » Active
mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)