zend 框架问题 An error occurred Application error

a896244376 2016-06-02 07:52:35
An error occurred

Application error

Exception information:

Message: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1, query was: select username from ssc_members where uid =

Stack trace:

#0 /home/user.sk7.us/library/Zend/Db/Statement.php(303): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/user.sk7.us/library/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#2 /home/user.sk7.us/library/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('select username...', Array)
#3 /home/user.sk7.us/library/Zend/Db/Adapter/Abstract.php(828): Zend_Db_Adapter_Pdo_Abstract->query('select username...', Array)
#4 /home/user.sk7.us/application/views/helpers/GetValue.php(6): Zend_Db_Adapter_Abstract->fetchOne('select username...')
#5 [internal function]: Zend_View_Helper_GetValue->getValue('select username...')
#6 /home/user.sk7.us/library/Zend/View/Abstract.php(350): call_user_func_array(Array, Array)
#7 /home/user.sk7.us/application/views/scripts/user/infopanel.phtml(35): Zend_View_Abstract->__call('getValue', Array)
#8 /home/user.sk7.us/application/views/scripts/user/infopanel.phtml(35): Zend_View->getValue('select username...')
#9 /home/user.sk7.us/library/Zend/View.php(108): include('/home/user.sk7....')
#10 /home/user.sk7.us/library/Zend/View/Abstract.php(888): Zend_View->_run('/home/user.sk7....')
#11 /home/user.sk7.us/library/Zend/Controller/Action/Helper/ViewRenderer.php(900): Zend_View_Abstract->render('user/infopanel....')
#12 /home/user.sk7.us/library/Zend/Controller/Action/Helper/ViewRenderer.php(921): Zend_Controller_Action_Helper_ViewRenderer->renderScript('user/infopanel....', NULL)
#13 /home/user.sk7.us/library/Zend/Controller/Action/Helper/ViewRenderer.php(960): Zend_Controller_Action_Helper_ViewRenderer->render()
#14 /home/user.sk7.us/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#15 /home/user.sk7.us/library/Zend/Controller/Action.php(527): Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#16 /home/user.sk7.us/library/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch('infopanelAction')
#17 /home/user.sk7.us/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#18 /home/user.sk7.us/library/Zend/Application/Bootstrap/Bootstrap.php(101): Zend_Controller_Front->dispatch()
#19 /home/user.sk7.us/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#20 /home/user.sk7.us/public_html/index.php(302): Zend_Application->run()
#21 {main}
Request Parameters:

array (
'controller' => 'user',
'action' => 'infopanel',
'module' => 'default',
)


这是怎么回事 大神们帮帮忙
...全文
614 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
a896244376 2016-06-02
  • 打赏
  • 举报
回复
之前程序一直没问题,今天突然这样,应该不是这两个问题吧
xuzuning 2016-06-02
  • 打赏
  • 举报
回复
一般有两种原因: 一种是使用MySQL-Front导入SQL文件提示:SQL execution error # 1064. Response from the database: 错误原因:MySQL-Front版本太低,导入SQL文件失败 解决办法:升级MySQL-Front 另一种就是字符编码的问题 例如 先设置 set names 字符集; 再select or insert into or delete

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧