有時我得到錯誤,當我包括你的類(AuthnetCim.class)在我的控制器。 誤差如下: -zend頭已發送問題
Fatal error: Uncaught exception ‘Zend_Controller_Response_Exception’ with message ‘Cannot send headers; headers already sent in /home/newwebsi/public_html/B4BPHP/public/include/AuthnetCIM.class.php, line 1′ in /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Response/Abstract.php(148): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Action/Helper/Redirector.php(226): Zend_Controller_Response_Abstract->setRedirect(‘/B4BPHP/public/…’, 302) #2 /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Action/Helper/Redirector.php(370): Zend_Controller_Action_Helper_Redirector->_redirect(‘/B4BPHP/public/…’) #3 /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Action/Helper/Redirector.php(453): Zend_Controller_Action_Helper_Redirector->setGotoUrl(‘index/login’, Array) #4 /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Action.php(68 in /home/newwebsi/public_html/B4BPHP/library/Zend/Controller/Response/Abstract.php on line 321
當我刪除這個類我沒有得到任何錯誤隨時隨地
請幫我解決這個錯誤
確保'error_display'關閉:) – mujaffars 2015-03-18 10:22:01