Here are the symptoms my system is exhibiting:
1. Grab a clean checkout of HEAD.
2. Choose the default install profile.
3. Enter your (correct) DB info.
4. ERROR:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '7x.variable' doesn't exist in /Applications/MAMP/htdocs/7x/includes/database/database.inc on line 1017
Which makes 0 sense, since when I look at my 7.x database it does, in fact, have a variable table in it, with 6 values:
theme_default s:7:"garland";
filter_html_1 i:1;
node_options_forum a:1:{i:0;s:6:"status";}
cron_key s:32:"bb6c45cc51af1c820dbc3666c6de84e7";
drupal_private_key s:32:"a6a3b77c06f402c7b1346a20f1efb569";
install_task s:21:"profile-install-batch";
All the rest of the tables, including vocabulary and vocabulary_node_types, which follow subsequently in the alphabet, are there as well. Curiously, watchdog is /not/ there. Hmmm....
Attached is all the info and more that you could ever hope for about this error, courtesy of xdebug.
Comment | File | Size | Author |
---|---|---|---|
variable-missing-error.html | 35.85 KB | webchick |
Comments
Comment #1
asimmonds CreditAttribution: asimmonds commentedI get this problem, if I have in my xdebug config:
It appears install_verify_drupal() relies on the db_query() exception being silently handled, and xdebug is interfering with this.
Comment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedI can reproduce if I activate
xdebug.show_exception_trace
.Edit: incoherent rambling below.
Comment #3
chx CreditAttribution: chx commentedeven if this exception is actually caught. -- then what's the bug here??
Comment #4
webchickYep, that seems to be exactly what caused it. I don't see any way we can work around this, so marking won't fix.
Thanks, folks!
Comment #5
mikeryanJust want to capture this in case anyone else runs into it - I hit the same symptom, and disabling xdebug did nothing to help me. Disabling eaccelerator was what ultimately did the trick for me, although it looks like only disabling the optimizer should do it (or upgrading eaccelerator):
http://eaccelerator.net/ticket/242
Comment #6
mikeryanTried just disabling the optimizer, no luck - I'm sticking with disabling the whole extension.