Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal.make_.txt | 217 bytes | fenstrat |
Comments
Comment #1
jonhattanIt 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
Comment #3
rickmanelius CreditAttribution: rickmanelius commentedSame 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.
Comment #4
fenstratSame 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.Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedThat Drupal issue got fixed so I assume this one is no longer needed. Reopen if needed.