Zend session_start gives Fatal error: Exception th

2019-02-25 22:38发布

When running a Zend application locally I get Fatal error: Exception thrown without a stack frame in Unknown on line 0, i traced that error to a line $startedCleanly = session_start();

I can't get through it, when I restart the server and reload the page I do not get the error, but on every other reload I get it, I looked into a php/tmp dir too see if there are any files, and as I see they aren't there. I think that session isn't written but when I try just a simple test.php file with session_start(); line, without zend framework, I see that there is a file created in that dir.

I really don't know where to go next.

4条回答
Melony?
2楼-- · 2019-02-25 23:02

I know this post is old, but I've just figured out that I was getting "Fatal error: Exception thrown without a stack frame in Unknown on line 0" because my 'modified' and 'lifetime' columns were of type 'timestamp without time zone' when they should have been 'integer' (I'm using Postgres 9 BTW)

Hope this helps someone.

查看更多
霸刀☆藐视天下
3楼-- · 2019-02-25 23:19

The problem could also be a disk full problem !!!

查看更多
女痞
4楼-- · 2019-02-25 23:21

I had this problem because my primary id in my DB table was set to INT(11) (IDIOT!)

Duplicate DB sessions created upon Zend_Auth login

It should be set to CHAR(32)!

查看更多
smile是对你的礼貌
5楼-- · 2019-02-25 23:24

Happens when your destructor or error handler throws an exception. That can happen for multiple reasons depending on your exact setup and method for session storage you're using. For example the session directory is not writeable or does not exist, database is not accessible or fields are invalid, redis does not respond, etc.

So, check your settings and look for something that would prevent saving the session data.

More elaborate description can be found here.

查看更多
登录 后发表回答