I get the following error whenever I make any changes to the admin:
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 329
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 114
Warning: Couldn't fetch mysqli in /home/thengthi/public_html/includes/database.mysqli.inc on line 128
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | mysql_php_5.0.5_install.php_.patch | 738 bytes | redndahead |
Comments
Comment #1
scoutbaker commentedI'm not able to reproduce this with a fresh install of D6 RC1.
Could you provide some more information about your environment (PHP version, MySQL version, etc.)? Also, is this a fresh install, or did you try to upgrade over a beta version of D6?
Comment #2
redndahead commentedI am receiving the same error. I am using siteground.com for my hosting.
linux
php 5.0.5
Apache 1.3.7
mysql 5.0.45
Comment #3
asimmonds commentedI think this is a problem with php 5.0.5 and mysqli, can you try updating you php installation?
Comment #4
catchasimmonds: unless he's an admin on siteground (or has root access to a vps) I think that's unlikely.
redndahead: if you're not able to change this yourself, could you contact siteground to see if they have servers with different versions of php available?
Could you also try with a mysql connection in settings.php instead of mysqli? (iirc, simply remove the "i" that line in your database settings.)
Comment #5
redndahead commentedChanging from mysqli to mysql has fixed this issue. Maybe there is a way to detect if the server has 5.0.5 and just make a switch from mysqli to mysql?
Comment #6
catchOK apparently core doesn't normally do special case checking for bad php and mysql releases, so I'm moving this to documentation. Would be good to have a note in troubleshooting faq.
Oh and this is an issue now because core now automatically detects if you have mysqli available during the installer and sets up settings.php accordingly. I imagine 5.05 does have it, but for some reason can't use it.
Comment #7
redndahead commentedSo when you say normally that means you won't accept any patches to do php 5.0.5 checking? If you will then I have a patch for the installer.
Comment #8
mfer commented@redndahead - I think the issue here might be different than needing some special case tracking for php 5.0.5. The installer is detecting that mysqli is available. The code in the installer is:
So, there is something else going on here. Is there some bug that would cause D6 mysqli code to not work right for php 5.0.5? More detail might help us find a better solution. Is mysqli somehow different in php 5.0.5?
Comment #9
redndahead commentedI've patched that code in the installer. and am ready to submit that if drupal will accept special cases for PHP 5.0.5. Looking at the history it's a bug in the 5.0.5 version of php and using a certain mysql function. I don't think that fixing the usage of that function in all of drupal just for v5.0.5 support is the answer. I think making it use mysql for the special case of 5.0.5 in the installer will work better.
I have attached the patch anyway just in case it could be useful for someone.
Comment #10
catchThis is a patch.
Comment #11
catchalready won't fix, so back to docs. http://drupal.org/node/36828#comment-354901
But thanks for the patch anyway!
Comment #12
Anonymous (not verified) commentedComment #13
Anonymous (not verified) commentedThis has been noted at:
http://drupal.org/node/201869
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.