"Error: headers already sent" appears during Zend framework installation"

Source: Internet
Author: User

I suddenly got a new project and used Zend framework and extjs to do it. I am not familiar with these two frameworks, so I am also familiar with these two frameworks while being familiar with the business.

 

The following error is reported during local Configuration:

Fatal Error
: Uncaught exception 'zend _ session_exception'
Message 'session must be started before any output has been sent to
Browser; Output started in
F:/workspace/custom/puerp/src/jspu-repo/root/index. php/1' in
F:/workspace/custom/puerp/src/jspu-repo/library/Zend/session. php: 419
Stack trace:
#0
F:/workspace/custom/puerp/src/jspu-repo/library/Zend/session/namespace. php (124 ):
Zend_session: Start (true)
#1 F:/workspace/custom/puerp/src/jspu-repo/root/index. php (19 ):
Zend_session_namespace->__ construct ()
#2 {main}
Thrown inF:/workspace/custom/puerp/src/jspu-repo/library/Zend/session. php
On Line419

 

 

1> set session. save_path to a readable folder.

2>; initialize Session on request startup.
Session. auto_start = 0

 

3> mod_rewrite.so In the httpd. conf configuration file of Apache is also enabled.

.......

Finally, the problem is found.php.ini
,"output_buffering
= 65535

"A buffer of 64 K is allowed. My local output_buffering = off finally solved this problem.

 

 

This problem is solved by finding a solution from the official introduction of Zend framework.

Http://framework.zend.com/manual/zh/zend.session.global_session_management.html#zend.session.global_session_management.headers_sent

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.