Trying to do a clean install of Drupal 7.8 on a VM with Centos 5.6 64-bit, PHP 5.3.3, MySQL 5.0.77, pdo_mysql 5.0.77.

I have created the database, database user and granted permissions, and updated the relevant info in settings.php.

Here is what I see when I visit the site (or index.php):

Error

The website encountered an unexpected error. Please try again later.
Error messagePDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table '[databasename].semaphore' doesn't exist: SELECT expire, value FROM {semaphore} WHERE name = :name; Array ( [:name] => variable_init ) in lock_may_be_available() (line 167 of /var/www/[drupaldir]/includes/lock.inc).

This additional PHP error also shows up with error reporting (and in the httpd error log):

Fatal error: require() [<a href='function.require'>function.require</a>]: Cannot redeclare class queryconditioninterface in /var/www/[drupaldir]/includes/database/database.inc on line 1741

(See also this thread for more such reports: http://drupal.org/node/1280552.)

Comments

matthewv789’s picture

Priority: Normal » Major

(considering several other reports with the same version and that this is preventing installation, should this be considered major?)

catch’s picture

matthewv789’s picture

Status: Active » Closed (duplicate)

Thanks. I tried that, and one of the errors goes away. But now I get this:

Fatal error: require() [<a href='function.require'>function.require</a>]: Cannot redeclare class databasetasks_mysql in /var/www/[drupaldir]/includes/database/database.inc on line 1741

When I re-copied my settings.php from default.settings.php, it let me go through the installation process until after choosing the installation profile and language and trying to set db information (that is, at /install.php?profile=standard&locale=en), then gave the above error.

I also nuked the whole Drupal directory and untarred it again, with the same results.

Could it be something wrong with the PDO installation? Or is it earlier in the process than that, since it should be at "Verify requirements"? A phphinfo() call shows:

PDO

PDO support	enabled
PDO drivers	mysql, odbc, pgsql, sqlite

pdo_mysql

PDO Driver for MySQL	enabled
Client API version	5.0.77

Note: I'm also getting a slew of the following warnings in a red box on each page of install.php, but I wasn't assuming they were related to the DB problems, and they aren't preventing going to the next screen. But noting here just in case:

Notice: Constant MARK_READ already defined in require_once() (line 21 of /var/www/[drupaldir]/includes/theme.inc).
Notice: Constant MARK_NEW already defined in require_once() (line 26 of /var/www/[drupaldir]/includes/theme.inc).
Notice: Constant MARK_UPDATED already defined in require_once() (line 31 of /var/www/[drupaldir]/includes/theme.inc).

(repeats about 22 times...)

matthewv789’s picture

Status: Closed (duplicate) » Active

Re-opening since we're still having problems - maybe better to keep history together, and in case there is some common thread of these seemingly-disparate errors?

I tried with 7.7 and got the same problems, so we're suspecting something wrong with our Apache/PHP/PDO/MySQL installation, but not sure what it might be yet.

matthewv789’s picture

Priority: Major » Normal
Status: Closed (duplicate) » Closed (won't fix)

OK, for completeness sake, my additional problems were caused by having:
apc.include_once_override = 1

instead of:
apc.include_once_override = 0

in my php.ini.

Now working fine.

drupal a11y’s picture

In my case of a D7.12 the error was due to an older "settings.php" and a missing "hash salt" e.g. "$drupal_hash_salt = '-_FeMq3qssldi3TN2nH1L7T-4moRb8r_Nepj3wXxsCY';".