Comments (10)
This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF-12438
Known GitHub users mentioned in the original message or comment:
from zf1.
I was the original filer of this bug, back when it was on Jira.
from zf1.
Still have this problem.. @vestigal Did you solved it? if yes, how? Thanks!
from zf1.
I just experienced this bug now.
In my case it was caused by the fact that sessions directory was not writable. It seems that Zend_Session checks only for success and assumes that any other result means session is already started.
cc @simonrjones
from zf1.
I actually debugged it to the fact that the exception is not thrown but added as a response exception instead - it's because it's initialized before Zend_Controller_Plugin_Errorhandler
sets Zend_Controller_Front::getInstance()->throwExceptions()
to true. Therefore the internal session exception
Zend_Session::start() - /Users/tfejfar/libs/zf1/library/Zend/Session.php(Line:488): Error #2 session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: open(/Users/tfejfar/sites/crossrail/application/../data/sessions/sess_8cae2e4a007afd2274821015f8c0ef45, O_RDWR) failed: Permission denied (13) /Users/tfejfar/libs/zf1/library/Zend/Session.php(Line:488): Error #2 session_write_close() [<a href='function.session-write-close'>function.session-write-close</a>]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct
is added to exception stack, but later in the request when actually using the session the new "session already started" it's after the error handler set to throw the exceptions - so that one is thrown, but the first one is forgotten. But it's still in the exceptions stack ($this->_response->_exceptions
).
One way to fix this could be to throw the first exception from exception stack if one is present. But that may not be the right one.
from zf1.
What would you think would be a good way to fix this? I could do a PR to fix it, but I'm not sure how exactly to fix it.
from zf1.
Currently facing this issue on my server - no changes made by us - also the folder are accessible and writeable.
from zf1.
You need to debug it to find out the core exception as described in my post above. That will set you on the right path :)
from zf1.
I found the issue. It was a long running - and sadly not good configured project. After thinking about permission problems or similar it was a simply as you can think. There where too many open session or better too many OLD session and the IIS simply couldn't handle that much files so the PHP IO was higher than the PHP execution time - removing the old Session's the problem simply was gone.
Thanks anyway @tomasfejfar!
from zf1.
This error message can also be caused by wrong permissions on the sessions folder, if the folder is not writeable or doesn't belong to the right user.
from zf1.
Related Issues (20)
- Don't EOL HOT 2
- StringParser.php - expression is always true HOT 1
- Zend_Validate_Float fail with locale es_VE HOT 1
- In Zend_Db_Table_Abstract throwing undefined property, interrrupting scripts HOT 1
- uninitialised variables in FormCheckbox.php HOT 1
- SignatureDoesNotMatch Amazon S3 CopyObject HOT 1
- Zend_Date after 31. Mรคrz 2043 inconsistency HOT 3
- ZF1 EOL and future HOT 1
- Zend_Validate_Hostname add supporting of *.shop TLD HOT 2
- Version API delivers wrong latest version info HOT 3
- session.hash_bits_per_character dafeults to 5, but PHP has default 4 HOT 1
- Warning: each(): Node no longer exists in library\Zend\XmlRpc\Value.php on line 495 HOT 2
- Zend_Filter_LocalizedToNormalized return date array instead of integer HOT 1
- Zend_Captcha_Word protected function _generateWord() HOT 1
- Unknown date format, neither date nor time HOT 1
- Db\Statement->_parseParameters() bad handling of commented single quote HOT 1
- Zend_Locale_Math incorrect round numbers HOT 2
- Consider archiving this repo? HOT 3
- PHP-functions each() and create_function() have been deprecated HOT 8
- Problem with Zend_Paginator and group by in query HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zf1.