此适配器需要Mysqli扩展名,但未加载扩展名

时间:2011-11-28 06:22:47

标签: php zend-framework mysqli

Zend框架中的应用程序buid在演示服务器中工作正常。 我将网站移动到客户端服务器,然后我面临以下问题。请帮我解决 这个问题。

感谢。

================ BEGIN错误

exception 'Zend_Db_Adapter_Mysqli_Exception' with message 'The Mysqli extension is required for this adapter but the extension is not loaded' in 
Stack Trase

/home/mtapp/public_html/demo/library/Zend/Db/Adapter/Mysqli.php:291
0 /home/mtapp/public_html/demo/library/Zend/Db/Adapter/Abstract.php(448): Zend_Db_Adapter_Mysqli->_connect()
1 /home/mtapp/public_html/demo/library/Entity/Page.php(119): Zend_Db_Adapter_Abstract->query('SELECT p.slug, ...')
2 /home/mtapp/public_html/demo/modules/site/controllers/ErrorController.php(23): Entity_Page::getMenuItems()
3 /home/mtapp/public_html/demo/library/Zend/Controller/Action.php(513): Site_ErrorController->errAction()
4 /home/mtapp/public_html/demo/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('errAction')
5 /home/mtapp/public_html/demo/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
6 /home/mtapp/public_html/demo/Bootstrap.php(21): Zend_Controller_Front->dispatch()
7 /home/mtapp/public_html/demo/public/index.php(7): Bootstrap::run()
8 {main}

================ END错误

1 个答案:

答案 0 :(得分:0)

如果您使用旧版本的socialengine,则请切换到PHP v5.6。