消息'注册表已初始化'的Zend_Exception

时间:2012-02-06 19:48:28

标签: zend-framework extjs socialengine

使用Zend,Extjs和socialengine4。我将用户添加到用户表中,并将它们成功放入数据库,并将“启用”和“已验证”设置为1.我可以将新用户添加到表中并将这些值设置得非常好,当我转到下一页我可以点击我刚刚创建的用户个人资料页面的链接,并显示我为其个人资料输入的信息。如果我再次尝试点击链接,我会收到以下错误。

exception 'Zend_Exception' with message 'Registry is already initialized' in /var/www/web15/web/application/libraries/Zend/Registry.php:71
Stack trace:
#0 /var/www/web15/web/application/libraries/Engine/Registry.php(87): Zend_Registry::setInstance(Object(Engine_Registry))
#1 /var/www/web15/web/application/libraries/Engine/Registry.php(104): Engine_Registry::setInstance(Object(Engine_Registry))
#2 /var/www/web15/web/application/libraries/Engine/Registry.php(66): Engine_Registry::init()
#3 /var/www/web15/web/application/libraries/Engine/Registry.php(176): Engine_Registry::getInstance()
#4 /var/www/web15/web/application/modules/User/Model/User.php(231): Engine_Registry::get('database-defaul...')
#5 /var/www/web15/web/application/modules/User/controllers/ProfileController.php(63): User_Model_User->isAdmin()
#6 /var/www/web15/web/application/libraries/Zend/Controller/Action.php(513): User_ProfileController->indexAction()
#7 /var/www/web15/web/application/libraries/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('indexAction')
#8 /var/www/web15/web/application/libraries/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /var/www/web15/web/application/modules/Core/Bootstrap.php(75): Zend_Controller_Front->dispatch()
#10 /var/www/web15/web/application/libraries/Engine/Application.php(160): Core_Bootstrap->run()
#11 /var/www/web15/web/application/index.php(194): Engine_Application->run()
#12 /var/www/web15/web/index.php(24): include('/var/www/web15/...')
#13 {main}

抛出此错误后,它会将“已启用”和“已验证”的表值重置为0.用户将不再显示在页面上或当我单击以浏览成员但其数据库条目仍然存在时它改变了价值观。

0 个答案:

没有答案