Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/291.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Zend Framework auth突然停止工作_Php_Apache_Zend Framework_Centos - Fatal编程技术网

Php Zend Framework auth突然停止工作

Php Zend Framework auth突然停止工作,php,apache,zend-framework,centos,Php,Apache,Zend Framework,Centos,我昨天将一个大型站点迁移到一台新机器上。新机器在zend上运行centos 6.3和PHP5.3 一切都很好,没有问题。今天早上,我的手机出现了一个用户无法登录的问题。查看错误后,他们似乎由于以下错误而无法登录: #0 /usr/share/php/Zend/Auth/Adapter/DbTable.php(286): Zend_Auth_Adapter_DbTable->_authenticateQuerySelect(Object(Zend_Db_Select)) #1 /usr/sh

我昨天将一个大型站点迁移到一台新机器上。新机器在zend上运行centos 6.3和PHP5.3

一切都很好,没有问题。今天早上,我的手机出现了一个用户无法登录的问题。查看错误后,他们似乎由于以下错误而无法登录:

#0 /usr/share/php/Zend/Auth/Adapter/DbTable.php(286): Zend_Auth_Adapter_DbTable->_authenticateQuerySelect(Object(Zend_Db_Select))
#1 /usr/share/php/Zend/Auth.php(117): Zend_Auth_Adapter_DbTable->authenticate()
#2 /home/localsbest/public_html/application/default/models/Authent.php(50): Zend_Auth->authenticate(Object(Zend_Auth_Adapter_DbTable))
#3 /home/localsbest/public_html/application/default/controllers/AuthentController.php(232): Authent->__construct('john@gocrr.com', 'freedom7')
#4 /usr/share/php/Zend/Controller/Action.php(503): AuthentController->indexAction()
#5 /usr/share/php/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('indexAction')
#6 /usr/share/php/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 /home/localsbest/public_html/public/index.php(46): Zend_Controller_Front->dispatch()
#8 {main}
The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity.
我以前从未见过这种错误。更糟糕的是,我想不出我能做什么来引起这个问题。我在睡觉!有人知道我可以从哪里着手解决这个问题吗

  • 编辑*
也看到了这个错误:

#0 /usr/share/php/Zend/Auth/Adapter/DbTable.php(286): Zend_Auth_Adapter_DbTable->_authenticateQuerySelect(Object(Zend_Db_Select))
#1 /usr/share/php/Zend/Auth.php(117): Zend_Auth_Adapter_DbTable->authenticate()
#2 /home/localsbest/public_html/application/default/models/Authent.php(50): Zend_Auth->authenticate(Object(Zend_Auth_Adapter_DbTable))
#3 /home/localsbest/public_html/application/default/controllers/AuthentController.php(232): Authent->__construct('john@gocrr.com', 'freedom7')
#4 /usr/share/php/Zend/Controller/Action.php(503): AuthentController->indexAction()
#5 /usr/share/php/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('indexAction')
#6 /usr/share/php/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#7 /home/localsbest/public_html/public/index.php(46): Zend_Controller_Front->dispatch()
#8 {main}
The supplied parameters to Zend_Auth_Adapter_DbTable failed to produce a valid sql statement, please check table and column names for validity.
  • 编辑

如果这也有帮助的话,该应用程序在PHP5.2.4上运行,现在在5.3上运行。

根据我的评论,我最好的猜测是MySQL表损坏。您可以运行
检查表xxx
,查看这是否是问题所在,然后
修复表xxx
,如果是问题所在。如果您启用了MySQL错误日志,您可能会在那里看到一些东西。但在新的垃圾堆上复制也可以解决这个问题


不幸的是,Zend Auth adapter类似乎捕捉到任何异常并显示“提供的参数…”错误,因为这掩盖了问题的真正原因

您已经发布了堆栈跟踪,但没有发布实际的错误,它应该出现在日志的上面。编辑中的“提供的参数…”消息是否生成了错误消息?另外,ZF的版本是什么?我对有限信息的最佳猜测是MySQL表损坏。我已经开始更仔细地观察数据库,并将其指向旧数据库,它成功了。你是对的,有些东西被破坏了。我正在重复使用数据库并重新同步所有内容。发布一个答案,我可以接受。谢谢你的帮助!