zend db - No entry is registered for key 'db' -


other program written application in zend. want install application server. when install application has following error, checked forums. said install pdo_mysql.. installed in server no use. still have same error.

exception 'zend_exception' message 'no entry registered key 'db'' in /usr/share/php/zend/registry.php:147 stack trace:

0 /home/dev/public_html/medtranscloud.com/library/mt/databasemodel.php(29): zend_registry::get('db') 1 /home/dev/public_html/medtranscloud.com/library/entity/page.php(119): mt_databasemodel::db() 2 /home/dev/public_html/medtranscloud.com/modules/site/controllers/errorcontroller.php(23): entity_page::getmenuitems() 3 /usr/share/php/zend/controller/action.php(513): site_errorcontroller->erraction() 4 /usr/share/php/zend/controller/dispatcher/standard.php(289): end_controller_action->dispatch('erraction') 5 /usr/share/php/zend/controller/front.php(954): zend_controller_dispatcher_standard->dispatch(object(zend_controller_request_http), object(zend_controller_response_http)) 6 /home/dev/public_html/medtranscloud.com/bootstrap.php(21): zend_controller_front->dispatch() 7 /home/dev/public_html/medtranscloud.com/public/index.php(7): bootstrap::run() 8 {main}

also have used config.xml db configuratrion. not application.ini

please me fix issue.

thanks.

this specific error can solved you, going through code. exception says there no value registered name key 'db'.

most likely, bootstrap (or loaded resource) responsible bootstrapping db adapter , adding zend_registry. might want inside /home/dev/public_html/medtranscloud.com/bootstrap.php , work way forward there.


Comments