1) Installed drupal-7.12 version on an nginx server , php-fpm version 5.4.0 got the following warning and notice

Warning: Illegal string offset 'field' in DatabaseCondition->__clone() (line 1901 of /webserver/nginx/html/drupal-7.12/includes/database/query.inc).
Notice: Array to string conversion in menu_link_save() (line 3112 of /webserver/nginx/html/drupal-7.11/includes/menu.inc).

Screen Shot is attached
When i changed the php version to 5.3 it is working fine .

Files: 
CommentFileSizeAuthor
Screenshot1.jpg177.57 KBjosejayesh
Screenshot2.jpg128.22 KBjosejayesh

Comments

josejayesh’s picture

In the same box when i changed the PHp version to 5.3.10 it is not showing any error . I guess this issue is due to php version

ahcolus’s picture

Same error but on Apache 2.2.22 PHP 5.4.0 SQlite 3.7.7.1 Drupal 7.12
After PHP update from 5.3.8 to 5.4.0 I got these errors:

Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of G:\webspace\domains\drupaldev\includes\database\sqlite\query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of G:\webspace\domains\drupaldev\includes\database\sqlite\query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of G:\webspace\domains\drupaldev\includes\database\sqlite\query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of G:\webspace\domains\drupaldev\includes\database\sqlite\query.inc).

However every page has few or more errors depending on the content. Launched update.php and got a page I never seen in Drupal, many tables with a bunch of errors.

Brain2000’s picture

It seems to be barking at this line of code:

      if ($child_condition['field'] instanceof QueryConditionInterface) {
ParisLiakos’s picture

Status:Needs work» Closed (duplicate)
jamesmorrish’s picture

I got the following error with D7 and PHP 5.4

Warning: Illegal string offset ‘field_name’ in node_reference_preprocess_node()

Downgrading to 5.3 also resolved the issue

hemans2510’s picture

Assigned:Unassigned» hemans2510
wouter_kirstein’s picture

Ok ... Hosting company is forcing me to upgrade to 5.4.4 and it giving same issue.

Any Ideas what I can do... My next attempt is to upgrade to 7.2.2 but I did that and I had some other php issue and downgraded.

Any ideas

klonos’s picture

Assigned:hemans2510» Unassigned

...