warning: mysql_real_escape_string() expects parameter 1 to be string, array given in drupal-6.6/includes/database.mysql.inc on line 321.

Comments

jean-bernard.addor’s picture

it is on admin/build/modules

CobraMP’s picture

6.10
I just got this after changing an author of a node ??

from mysql.inc

/**
 * Prepare user input for use in a database query, preventing SQL injection attacks.
 */
function db_escape_string($text) {
  global $active_db;
  return mysql_real_escape_string($text, $active_db);
}
CobraMP’s picture

unsure what is causing this. I just saw it again after a basic edit of a particular node_type

glassbyd’s picture

Version: 6.6 » 6.12

I am getting this on any pages or stories I add to the system. Any thoughts on what i should do or have broken?

Cheers

Addendum: I have just got it on a different site and it appears that something to do with Sections may be the issue

glassbyd’s picture

Priority: Minor » Normal
selinav’s picture

Version: 6.12 » 6.15
Assigned: Unassigned » selinav

I have the same problem when I delete a taxonomy term.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.