Active
Project:
DBTNG
Version:
6.x-1.0-rc4
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 May 2011 at 04:20 UTC
Updated:
3 Aug 2012 at 20:34 UTC
Jump to comment: Most recent
Fatal error: Class 'PDO' not found in /home/me.org/sites/all/modules/dbtng/database/database.inc on line 187
near that line:
/**
* Base Database API class.
*
* This class provides a Drupal-specific extension of the PDO database
* abstraction class in PHP. Every database driver implementation must provide a
* concrete implementation of it to support special handling required by that
* database.
*
* @see http://php.net/manual/en/book.pdo.php
*/
abstract class DatabaseConnection extends PDO {
Comments
Comment #1
yesct commentedI'm guessing this is some setting I need to have my host (shared hosting) fix. I've filed a ticket with them, but wanted to also open an issue here, so people who have the same problem can hopefully get a hint about how to fix it.
Comment #2
mercclear commentedI've got same problem moving D7 site to hon hostingosting.
When I try to make clean install on my hosting I have this:
Your web server does not appear to support PDO (PHP Data Objects). Ask your hosting provider if they support the native PDO extension. See the system requirements page for more information.
Here is hosting php settins :
http://sv67.avahost.net/.php
It looks like everything should be OK, any ideas how to solve the problem?
Vlad.
Comment #3
astutonetHi.
I'm trying to disable some modules (Migrate, Date, DBNTG) in my D6 online site, but I'm receiving this message:
I'm also seeing the following error message when running update.php:
Because of these errors, I'm not able to complete all the operations with success. Anyone knows why?
How to solve this, to disable and remove all the above modules?
Tks.
Edit - Solved: I had to disable modules via cPanel.
Comment #4
tuthanh commentedYou can go to CPanel of your hosting, choose PHP settings and enable the PDO Extension. That works for me.
Comment #5
mikey_p commentedI don't know if any of the PDO extensions that are built separately will work properly with DBTNG. There were some issues that came up during D7 development with older versions of PHP using the PDO extensions from PECL that were really out of date. You should be using the PDO that comes bundled with PHP 5.2 and higher and is compiled in when PHP is built, not a separate shared extension.
Comment #6
Anonymous (not verified) commentedSpecifically, I encountered this error when attempting to configure the Migrate module shortly after installing DBTNG and other modules - including Migrate. Adding these two lines to my php.ini file resolved this error for me:
extension="pdo.so"
extension="pdo_mysql.so"
Comment #7
miniwebs2 commented7 hrs of frustration and headache and finally this worked - just by inserting a small insert into a new php.ini file - thank you SOOOO much!!!!!
Comment #8
roxtaz commentedThis also worked for me too. Added php.ini file in the root public_html folder and problem is solved. Thank you !!!
Comment #9
astutonetHi. I also have this issue.
In my case, I use the Drupal 6.26, DBTNG 6.x-1.x-dev, Migrate 6.x-2.4+2-dev and Migrate Extras 6.x-2.3+1-dev.
In the Administer Panel, when I try to open the Migrate page, the following message are showed:
No problem in others admin pages.
The two lines in #6, with " or no, don't solve my problems.
Any idea?
Tks.
Comment #10
kevinchampion commentedIn certain environments you may be able to solve the problem by loading pdo and pdo_mysql in your settings.php file. This is particularly handy in the case where you're in a shared hosting environment that has pdo installed but not loaded by default for your site (and you're unable to load them in a php.ini file). Just put the following in settings.php somewhere:
Comment #11
astutonetI did a update in the site in question from D6 to D7 and I tried to put it in the air. It happens that in D7, the service .pdo is mandatory, and therefore, the D7 version did not work.
I contacted the hosting provider, and I was informed that they do not offer this service (the old company was merged by a new other and are forcing all customers to migrate their old contracts to a new structure).
I am renewing the contract to move the site to the new structure, which will have access to the service .pdo. But it will still take a while to this happen.
For this reason, I had to return to the D6 (thankfully I had a database file!) and disable all services with ".pdo".
I believe that any subterfuge that I want to use will not work (if friends say it's worth trying, I'll do the test, ok?).
Tks
Tks