Trying to install 7.x-dev (as of 30/12/09) on a fresh empty mysql-5.1.41 database on FreeBSD 8-RELEASE with PHP 5.2.12 and Apache 2.2.14.
I encounter this error:
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sitename.cache_bootstrap' doesn't exist' in /usr/local/www/apache22/data/sitename/includes/database/database.inc:1956\nStack trace:\n#0 /usr/local/www/apache22/data/sitename.com/includes/database/database.inc(1956): PDOStatement->execute(Array)\n#1 /usr/local/www/apache22/data/sitename.com/includes/database/database.inc(575): DatabaseStatementBase->execute(Array, Array)\n#2 /usr/local/www/apache22/data/sitename.com/includes/database/database.inc(2042): DatabaseConnection->query('SELECT data, cr...', Array, Array)\n#3 /usr/local/www/apache22/data/sitename.com/includes/cache.inc(314): db_query('SELECT data, cr...', Array)\n#4 /usr/local/www/apache22/data/sitename.com/includes/cache.inc(50): DrupalDatabaseCache->get('variables')\n#5 /usr/local/www/apache22/data/sitename.com/includes/bootstrap.inc(718): cache_get('variables', 'cache_bootstrap')\n#6 /usr/local/www/apache22/data/sitename.com/includes/bootstrap.inc(1647): v in /usr/local/www/apache22/data/sitename.com/includes/database/database.inc on line 1956
Comments
Comment #1
David_Rothstein commentedAt what stage of the installation does this occur?
Comment #2
Adam Ma'anit commentedWhen I initially try to browse to the site to continue the installation.
Comment #3
David_Rothstein commentedI'm not sure what you mean by "continue the installation"? Meaning you've finished the installation completely and click on the link at the end for going to your site, or that you interrupt the installation to browse to the site in the middle?
I can reproduce similar kinds of database errors only when interrupting the installation (however, I am not running on the same setup as you are).
Comment #4
Adam Ma'anit commentedThe steps of the install that require you to point your browser to the site.
ie. download drupal, setup permissions, create the database, etc. then you need to 'run the install script' by visiting the site with a web browser in order to 'continue the installation'.
HTH.
Comment #5
sanbeaman commentedI was getting the same error.
i was able to continue to install by doing the following.
giving web server write privileges (per install directions)
chmod o+w sites/default/settings.php
chmod o+w sites/default
then I had to put in the full URL including the install.php
for some reason, in all my past installations I could just go to the install folder and it would know to run install script.
hope this helps
drew
Comment #6
David_Rothstein commentedHm, it seems I can also get that kind of error when I try to start a fresh installation, but with my database connection info already in settings.php (for example, if I use a settings.php file from a previous installation, rather than a fresh one copied from default.settings.php).
In that case, I get the initially-reported cache_bootstrap error on visiting the site itself (e.g., www.example.com), and also need to visit the full install URL manually (e.g., www.example.com/install.php) in order to be able to proceed.
A similar bug exists in Drupal 6, I think, so not sure if this is a duplicate of an existing bug. Also not sure if anyone else can reproduce it with a different set of steps - but for me, that's the only way I can do it.
Comment #7
wiifmCan confirm that on visiting the [document root] folder to start the installation, I encountered the following error:
And when I visited [document root]/install.php (by manually typing this in), I then got the actual install screen.
This was not an issue in D6 (at least on my machine)
Comment #8
jacobbj commentedI am getting the similar error while trying to install drupal 7
It says:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal7.variable' doesn't exist' in C:\wamp\www\drupal7\includes\database\database.inc:1940 Stack trace: #0 C:\wamp\www\drupal7\includes\database\database.inc(1940): PDOStatement->execute(Array) #1 C:\wamp\www\drupal7\includes\database\database.inc(586): DatabaseStatementBase->execute(Array, Array) #2 C:\wamp\www\drupal7\includes\database\database.inc(2111): DatabaseConnection->query('SELECT value FR...', Array, Array) #3 C:\wamp\www\drupal7\install.php(771): db_query('SELECT value FR...', Array) #4 C:\wamp\www\drupal7\install.php(288): install_verify_completed_task() #5 C:\wamp\www\drupal7\install.php(84): install_begin_request(Array) #6 C:\wamp\www\drupal7\install.php(1758): install_drupal() #7 {main} thrown in C:\wamp\www\drupal7\includes\database\database.inc on line 1940
I am running a WAMP server with PHP 5.2.3 and Apache 2.2.11
Comment #9
jacobbj commentedsorry guys, i found out lately that drupal 7 is supported only in PHP 5.3.x
Drupal Rocks!!!
Comment #10
wiifmNot according to the requirements page. It states PHP 5.2 or higher for Drupal 7
Comment #11
basvredelingWhat's the status of this issue. Is php 5.2 supported or not? I'm receiving the error too. I'm trying to install on XAMPP / Mac OSX / php 5.2.9. Proper file permissions make no difference at all. I've tried a full clean reinstall on alpha1 and dev (checked out from CVS 6 feb 2010). All to no avail.
Comment #12
amcc commentedAfter entering database details on the "Database configuration" page, then clicking "Save and Continue", i'm getting a white screen and the database isn't getting installed.
details below:
php: PHP Version 5.2.3
mysql: 5.0.41
This is the page its getting a whitescreen on:
http://localhost/d7/install.php?q=install.php&profile=standard&locale=en
Heres whats in the error log:
[09-Feb-2010 18:19:07] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd7.variable' doesn't exist' in /Users/alistairmcclymont/Sites/d7/includes/database/database.inc:1940
Stack trace:
#0 /Users/alistairmcclymont/Sites/d7/includes/database/database.inc(1940): PDOStatement->execute(Array)
#1 /Users/alistairmcclymont/Sites/d7/includes/database/database.inc(586): DatabaseStatementBase->execute(Array, Array)
#2 /Users/alistairmcclymont/Sites/d7/includes/database/database.inc(2111): DatabaseConnection->query('SELECT value FR...', Array, Array)
#3 /Users/alistairmcclymont/Sites/d7/install.php(772): db_query('SELECT value FR...', Array)
#4 /Users/alistairmcclymont/Sites/d7/install.php(289): install_verify_completed_task()
#5 /Users/alistairmcclymont/Sites/d7/install.php(84): install_begin_request(Array)
#6 /Users/alistairmcclymont/Sites/d7/install.php(1759): install_drupal()
#7 {main}
thrown in /Users/alistairmcclymont/Sites/d7/includes/database/database.inc on line 1940
Comment #13
laken commentedSame error here:
BTW, Drupal 7 requires PHP 5.2 or higher: http://drupal.org/requirements
Comment #14
laken commentedFor me, this turned out to be an incompatibility with Drupal 7 and the eAccelerator opcode cache that comes with MAMP, my local LAMP stack. I changed the opcode cache from eAccelerator to APC and Drupal installed fine. More info here: http://drupal.org/node/615836
Comment #15
amcc commentedThis solve the problem for me, I changed the cache on MAMP to XCache and it works fine now - i suspect turning it off would work too.
Comment #16
basvredelingSwitching from xampp for mac to mamp fixed the problem for me.
Comment #17
marcvangendSounds like this one is fixed.
Comment #19
David_Rothstein commentedNote: Continuing discussion of eAccellerator issues at #914742: Add hook_requirements() for buggy versions of eAccelerator.
It is likely this is not something Drupal can work around, but we should take the time to determine that definitively as it seems to be a popular configuration, and a nasty bug.