Posted by Rob Loach on August 21, 2008 at 11:53pm
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | database system |
| Category: | bug report |
| Priority: | critical |
| Assigned: | chx |
| Status: | closed (fixed) |
Issue Summary
When installing a fresh HEAD from CVS, you get a fatal error because it attempts to initialize a database engine that doesn't exist (CVS). This is because it sees the CVS folder, and assumes it's a database engine.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| databaseinstall.patch | 640 bytes | Ignored: Check issue status. | None | None |
Comments
#1
http://us3.php.net/glob FTW
#2
Thoughts?
#3
Changing title to be a bit more descriptive.
#4
bit me too.
#5
CVS update forces an install, too, giving out the same errors as a fresh install.
#6
Yeah, that one's my fault. The patch in #3 fixes it, but is not super approachable. The attached patch is identical except for the addition of some comments. No other changes. Dries, please just credit Rob.
#7
Install work now for me.
#8
I posted a duplicate, this one's good.
#9
Committed to CVS HEAD. Thanks!
#10
This is incorrect. I am surprised noone asked "huh? max on an array of strings? what that could mean?"
maxmanual says:so as soon as someone adds a db2 or firebird directory in there, you will end up with a driver called "includes". This is easy to avoid...
#11
There we go! Thanks a lot, chx! You're my hero..... I knew max looked weird....
#12
Oddly, I still had trouble, with the error that a text blob could not have a default value.
To get my Drupal 7 to install tonight, I had to use the following patch (which may have an entire host of consequences I don't understand, so use at your own risk).
Edit: Oh--and I don't really want to remove the RTBC on the earlier patch, though it did not work for me.
#13
@keith.smith; your problem "a default on a text field" is distinct from the "wrong db driver selection during install". Can you please open a new issue?
#14
My apologies for derailing the issue. I created another issue at http://drupal.org/node/299292.
#15
Both with and without this patch, I'm getting
#16
(And I'm not seeing the "CVS" error either way either.)
#17
Freso - do you definitely have PDO compiled into your PHP install? I've opened a new issue here for adding PDO to system requirements #299308: Installing Drupal by visiting index.php (rather than install.php) leads to a fatal error when PDO is not enabled. This error will only show up with a CVS checkout, not wit 7.x-dev tarball.
I
#18
Both patches, #10 and #12, are good to go. Although, #12 is somewhat unrelated to this issue.
#19
#10 must go in.
#20
#17: I can very much verify that I do not have PDO compiled in (I didn't know that was a requirement now either). Sorry for wasting everybody's time. :$
/me makes a mental note to add "pdo" to PHP's USE-flags when he gets home from work...
#21
I've committed #10. Let's create a new issue for #12. Thanks all.
#22
Automatically closed -- issue fixed for two weeks with no activity.
#23
Well, doesn't work for me though I have PHP 5.2.6 with PDO installed. Help!
#24
#25
If you're getting any errors with Drupal HEAD, open up a new issue and post in what warnings/errors your getting. This fix went in.
#26