I am currently trying to setup drupal on lighttpd and sqlite.
I have individually verified that php, lighttpd and sqlite are working properly. (I think)

But when I go through the install I get the following warnings and errors:

Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 75 of /var/www/includes/database/sqlite/query.inc).
Warning: Illegal string offset 'field' in UpdateQuery_sqlite->removeFieldsInCondition() (line 79 of /var/www/includes/database/sqlite/query.inc).
SQLSTATE[HY000]: General error: 1 no such table: watchdog

Comments

madmaze’s picture

The fix from here: http://drupal.org/node/1611828
seems to prevent the warnings and install succeeds.

adding the isset():

>> if (isset($child_condition['field'])) {
              if ($child_condition['field'] instanceof QueryConditionInterface) {
                $this->removeFieldsInCondition($fields, $child_condition['field']);
              }
              else {
                unset($fields[$child_condition['field']]);
              }
 >>     }
faboski’s picture

Status: Active » Fixed

it's working

Status: Fixed » Closed (fixed)

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

honza801’s picture

Status: Closed (fixed) » Active

The problem stil occurs in 7.21. The above patch should be applied to the distribution.

euleralves’s picture

Same bug here with:

Archbang 3.8.4
PHP 5.4.13
Lighttpd 1.4.32
Sqlite 5.4.13
Drupal 7.21

The isset() fix worked!

helmo’s picture