Hello.

i have installed 7.12 because im dupliacting a drupal site but im getting this error:

Warning: Illegal string offset 'field' in DatabaseCondition->__clone() (line 1901 of /Applications/MAMP/htdocs/drupal/includes/database/query.inc).

this is the code

 function __clone() {
    $this->changed = TRUE;
    foreach ($this->conditions as $key => $condition) {
    if ($condition['field'] instanceOf QueryConditionInterface) {
        $this->conditions[$key]['field'] = clone($condition['field']);
      }
    }
  }

i did see a ould of other forums saying the same but they did not seem to solve the problem. any idea?

thanks
ricky

Comments

Ali yah’s picture

We have the same problem....How will we solve this??

wouter_kirstein’s picture

I get this when upgrading to 5.4.4 ... But I have no choice I need to upgrade servers are forcing me to...
Error message Warning: Illegal string offset 'field' in DatabaseCondition->__clone() (line 1901 of /usr/www/users/includes/database/query.inc)

gebiss’s picture

I received this error only when I moved my site from xampp to mamp. The site on xampp works fine. Drupal 7.12

gebiss’s picture

This error only occurs when switched to PHP 5.4.4