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