我正在尝试将网站移至新主机(MediaTemple。)
当您坚持使用 http 或 https 时,一切都很好。从 http->https 或 https->http 转到时,您会收到错误消息。
致命错误:未捕获的异常“Zend_Session_Exception”与消息“会话已由 session.auto-start 或 session_start() 启动” 在 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Session.php:462 堆栈跟踪: #0 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Session/Namespace.php(143): Zend_Session::start(true) #1 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Auth/Storage/Session.php(87): Zend_Session_Namespace->__construct('Zend_Auth') #2 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct() #3 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Auth.php(141): Zend_Auth->getStorage() #4 /var/www/vhosts/FakeSite.com/httpdocs/application/layouts/layout.phtml(12): Zend_Auth->hasIdentity() #5 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/View.php(108): include('/var/www/vhosts...') #6 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/View/Abstract.php(831): Zend_View->_run('/var/www/vhosts...') #7 /var/www/vh 在 /var/www/vhosts/FakeSite.com/httpdocs/library/Zend/Session.php 462 行
会话路径是可写的,如果你坚持一种协议,它似乎工作得很好。没有 session_start() 调用,并且 session.auto-start 为 0。
代码在其他 3 台服务器上运行良好。应该是配置问题,但是一直没找到