Hi!

I am testing out the drush quick drupal command, and got a fatal error:

PDOException: SQLSTATE[HY000]: General error: 1 no such table: watchdog: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array
(
    [0] => 0
    [1] => php
    [2] => %type: !message in %function (line %line of %file).
    [3] => a:6:{s:5:"%type";s:7:"Warning";s:8:"!message";s:29:"Illegal string offset 'field'";s:9:"%function";s:45:"UpdateQuery_sqlite->removeFieldsInCondition()";s:5:"%file";s:81:"/Users/betz/quick-drupal-20120425173348/drupal/includes/database/sqlite/query.inc";s:5:"%line";i:75;s:14:"severity_level";i:4;}
    [4] => 4
    [5] => 
    [6] => http://localhost/Users/betz/pear/share/pear/drush/drush.php?/Users/betz/pear/share/pear/drush/drush.php
    [7] => 
    [8] => 127.0.0.1
    [9] => 1335375228
)
 in dblog_watchdog() (line 157 of /Users/betz/quick-drupal-20120425173348/drupal/modules/dblog/dblog.module).

Full log at: http://pastebin.com/aE0uT7hs

I have php 5.4.0 running on mac osx lion with drush 5.1 installed with pear.

Thanks!

Cheers,
Tom

CommentFileSizeAuthor
#4 drupal.make_.txt217 bytesfenstrat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jonhattan’s picture

Status: Active » Fixed

It is an issue with drupal and php 5.4. I've reproduced it in a manual install. Not sure if this is the fix #1542186: PHP 5.4 "Illegal string offset" warning when install

Status: Fixed » Closed (fixed)

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

rickmanelius’s picture

Status: Closed (fixed) » Active

Same here with php 5.4.4 and Drupal 7.15. If it's an issue with drupal and php 5.4, than it's still an active issue because qd needs php 5.4 to spawn the server.

fenstrat’s picture

Title: drush qd: PDOException: SQLSTATE[HY000]: General error: 1 no such table: watchdog: INSERT INTO {watchdog} » drush qd doesn't work with PHP 5.4
FileSize
217 bytes

Same here with PHP 5.4. Root cause is #1542186: PHP 5.4 "Illegal string offset" warning when install, however that has been rolled back in D7 and so the fix is now in #1266572-20: Workaround in UpdateQuery_sqlite for affected rows count causes certain updates to be suppressed.

Until that is fixed in core I've attached a simple make file which applies that patch and can be used with drush qd --makefile=drupal.make. This allows D7 to be installed with qd.

moshe weitzman’s picture

Version: » 8.x-6.x-dev
Status: Active » Closed (duplicate)

That Drupal issue got fixed so I assume this one is no longer needed. Reopen if needed.