The PDO extension is required for this adapter but the extension is not loa

CraftyPanda

Well-Known Member
Nov 15, 2012
93
2
58
cPanel Access Level
Root Administrator
Hi hi,

Could someone help me out with the below error please? I have transferred a magento website over my new hosting and I am getting the below error. A little while ago I did enable PDO in the apache config and its working because I have other magento sites running on my server, but this is the only one I have transferred across. This error is when visiting the home page.

Any help would be greatly appreciated.

The error is :

There has been an error processing your request


The PDO extension is required for this adapter but the extension is not loaded
Trace:
#0 /home/pcloidd6/public_html/lib/Zend/Db/Adapter/Abstract.php(247): Zend_Db_Adapter_Pdo_Abstract->setFetchMode(2)
#1 /home/pcloidd6/public_html/app/code/core/Mage/Core/Model/Resource.php(165): Zend_Db_Adapter_Abstract->__construct(Array)
#2 /home/pcloidd6/public_html/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#3 /home/pcloidd6/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(141): Mage_Core_Model_Resource->getConnection('core_setup')
#4 /home/pcloidd6/public_html/app/code/core/Mage/Core/Model/Resource/Setup.php(234): Mage_Core_Model_Resource_Setup->__construct('core_setup')
#5 /home/pcloidd6/public_html/app/code/core/Mage/Core/Model/App.php(412): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#6 /home/pcloidd6/public_html/app/code/core/Mage/Core/Model/App.php(338): Mage_Core_Model_App->_initModules()
#7 /home/pcloidd6/public_html/app/Mage.php(640): Mage_Core_Model_App->run(Array)
#8 /home/pcloidd6/public_html/index.php(80): Mage::run('', 'store')
#9 {main}
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Re: The PDO extension is required for this adapter but the extension is not

Hello :)

Please check to see if you have any custom php.ini files located in the account's root or public_html directory. It could be taking priority over the default php.ini file on the system.

Thank you.