Re: [fw-general] Critical Error with Zend_Session
I switched hosting providers and with new one I receive those errors too. Not all the time, but time after time. Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied (13)' in [path_removed]library/Zend/Session.php:410 Stack trace: #0[path_removed]/index.php(42): Zend_Session::start() #1 {main} thrown in[path_removed]/library/Zend/Session.php on line 410 Line 42 in index.php is: Zend_Session::start(); Any solutions? I'm using ZF 1.5.3 Endijs Lisovskis WooKasZ wrote: rolfneumann2 wrote: Hello! I run into exactly the same problem with my webserver. I am using Zend Framework v1.0.2. Did you find a solution/workaround already? Greets, Stefan sorry;/ no idea how to fix it;/ -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221p19057247.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Critical Error with Zend_Session
On Tue, Aug 19, 2008 at 3:49 PM, Endijs Lisovskis [EMAIL PROTECTED] wrote: I switched hosting providers and with new one I receive those errors too. Not all the time, but time after time. Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied (13)' in [path_removed]library/Zend/Session.php:410 Stack trace: #0[path_removed]/index.php(42): Zend_Session::start() #1 {main} thrown in[path_removed]/library/Zend/Session.php on line 410 Line 42 in index.php is: Zend_Session::start(); Any solutions? I'm using ZF 1.5.3 It's a feature! But more a PHP one. Check this link: http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.configuration_options The option you are looking for is session.save_path. You just need to set it to a directory that is accessable to you (and the webserver process). Most likely located within your home directory. Till
Re: [fw-general] Critical Error with Zend_Session
Thanks for suggestion! Will try to change sessions path - and if error will still exist, will let you know. Endijs Lisovskis tfk wrote: On Tue, Aug 19, 2008 at 3:49 PM, Endijs Lisovskis [EMAIL PROTECTED] wrote: I switched hosting providers and with new one I receive those errors too. Not all the time, but time after time. Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(/tmp) failed: Permission denied (13)' in [path_removed]library/Zend/Session.php:410 Stack trace: #0[path_removed]/index.php(42): Zend_Session::start() #1 {main} thrown in[path_removed]/library/Zend/Session.php on line 410 Line 42 in index.php is: Zend_Session::start(); Any solutions? I'm using ZF 1.5.3 It's a feature! But more a PHP one. Check this link: http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.configuration_options The option you are looking for is session.save_path. You just need to set it to a directory that is accessable to you (and the webserver process). Most likely located within your home directory. Till -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221p19058449.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Critical Error with Zend_Session
Hello! I run into exactly the same problem with my webserver. I am using Zend Framework v1.0.2. Did you find a solution/workaround already? Greets, Stefan -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221p18996215.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Critical Error with Zend_Session
rolfneumann2 wrote: Hello! I run into exactly the same problem with my webserver. I am using Zend Framework v1.0.2. Did you find a solution/workaround already? Greets, Stefan sorry;/ no idea how to fix it;/ -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221p19000311.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Critical Error with Zend_Session
I'm on NTFS. It's not the GB fault. When I turn it off error still occurs. This error doesn't occur everytime but after 20-30 reloading page. Darby Felton wrote: Maybe try PHP ext/session configuration (i.e., session.gc_probability, session.gc_divisor, session.gc_maxlifetime)? You can set these options with Zend_Session::setOptions(); please see the following documentation for more information: http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.configuration_options (Sorry for the long URL) Maybe you are on a FAT filesystem? Best regards, Darby WooKasZ wrote: So what should I do to make it work ? I have to clean this session directory. My GB function: function garbageCollection( $dir, $lifetime ) { if ( $resDirectory = opendir( $dir ) ) { while ( ( $strFile = readdir( $resDirectory ) ) !== false ) { if ( is_file( $dir . $strFile ) ) { if ( time() filemtime( $dir . $strFile ) + $lifetime ) { unlink( $dir . $strFile ); } } } closedir( $resDirectory ); } Matthew Weier O'Phinney-3 wrote: -- Steven Brown [EMAIL PROTECTED] wrote (on Thursday, 06 March 2008, 07:53 AM +1000): Matthew is it possible Zend_Session needs an option like Zend_Cache to store session files in layered directories so there are not too many files in a single directory at once? Zend_Session does not do session storage, and instead leaves it to PHP's session mechanisms. All it does is provide an interface to the $_SESSION global as well as to the various session_*() configuration functions. The error below is due to the user's own session handler, which Zend_Session has no knowledge of -- as is is, even if they used session_start() without Zend_Session, they'd get a PHP warning. -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2008 11:49 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Critical Error with Zend_Session -- WooKasZ [EMAIL PROTECTED] wrote (on Wednesday, 05 March 2008, 05:35 AM -0800): Hello ! I have a problem with Zend_Session class. Sometimes when I am refreshing page or clicking on a link this fatal error occurs: Code: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(_sessions/) failed: Result too large (34)' in H:\www\wz\Zend\Session.php:379 Stack trace: #0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 H:\www\wz\init\session.php(16): Zend_Session_Namespace-__construct() #2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') #3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...') #4 {main} thrown in H:\www\wz\Zend\Session.php on line 379 Here is the code in my app: require_once('Zend/Session.php'); garbageCollection( $config['session']['savepath'], $config['session']['lifetime'] ); ini_set( 'session.cache_expire', $config['session']['cache_exp']); ini_set( 'session.gc_maxlifetime', $config['session']['lifetime'] ); session_save_path( $config['session']['savepath'] ); $defSessNamespace = new Zend_Session_Namespace( ); garbageCollector is cleaning folder with sessions. I use it (and init_set) couse I didin't found it in docs. Based on the message exception from the exception thrown, it looks like your GC routine is having trouble getting a list of sessions to remove -- that perhaps there are too many for the OS to handle at once. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221s16154p15945486.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Critical Error with Zend_Session
So what should I do to make it work ? I have to clean this session directory. My GB function: function garbageCollection( $dir, $lifetime ) { if ( $resDirectory = opendir( $dir ) ) { while ( ( $strFile = readdir( $resDirectory ) ) !== false ) { if ( is_file( $dir . $strFile ) ) { if ( time() filemtime( $dir . $strFile ) + $lifetime ) { unlink( $dir . $strFile ); } } } closedir( $resDirectory ); } Matthew Weier O'Phinney-3 wrote: -- Steven Brown [EMAIL PROTECTED] wrote (on Thursday, 06 March 2008, 07:53 AM +1000): Matthew is it possible Zend_Session needs an option like Zend_Cache to store session files in layered directories so there are not too many files in a single directory at once? Zend_Session does not do session storage, and instead leaves it to PHP's session mechanisms. All it does is provide an interface to the $_SESSION global as well as to the various session_*() configuration functions. The error below is due to the user's own session handler, which Zend_Session has no knowledge of -- as is is, even if they used session_start() without Zend_Session, they'd get a PHP warning. -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2008 11:49 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Critical Error with Zend_Session -- WooKasZ [EMAIL PROTECTED] wrote (on Wednesday, 05 March 2008, 05:35 AM -0800): Hello ! I have a problem with Zend_Session class. Sometimes when I am refreshing page or clicking on a link this fatal error occurs: Code: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(_sessions/) failed: Result too large (34)' in H:\www\wz\Zend\Session.php:379 Stack trace: #0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 H:\www\wz\init\session.php(16): Zend_Session_Namespace-__construct() #2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') #3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...') #4 {main} thrown in H:\www\wz\Zend\Session.php on line 379 Here is the code in my app: require_once('Zend/Session.php'); garbageCollection( $config['session']['savepath'], $config['session']['lifetime'] ); ini_set( 'session.cache_expire', $config['session']['cache_exp']); ini_set( 'session.gc_maxlifetime', $config['session']['lifetime'] ); session_save_path( $config['session']['savepath'] ); $defSessNamespace = new Zend_Session_Namespace( ); garbageCollector is cleaning folder with sessions. I use it (and init_set) couse I didin't found it in docs. Based on the message exception from the exception thrown, it looks like your GC routine is having trouble getting a list of sessions to remove -- that perhaps there are too many for the OS to handle at once. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221s16154p15879536.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Critical Error with Zend_Session
Maybe try PHP ext/session configuration (i.e., session.gc_probability, session.gc_divisor, session.gc_maxlifetime)? You can set these options with Zend_Session::setOptions(); please see the following documentation for more information: http://framework.zend.com/manual/en/zend.session.global_session_management.html#zend.session.global_session_management.configuration_options (Sorry for the long URL) Maybe you are on a FAT filesystem? Best regards, Darby WooKasZ wrote: So what should I do to make it work ? I have to clean this session directory. My GB function: function garbageCollection( $dir, $lifetime ) { if ( $resDirectory = opendir( $dir ) ) { while ( ( $strFile = readdir( $resDirectory ) ) !== false ) { if ( is_file( $dir . $strFile ) ) { if ( time() filemtime( $dir . $strFile ) + $lifetime ) { unlink( $dir . $strFile ); } } } closedir( $resDirectory ); } Matthew Weier O'Phinney-3 wrote: -- Steven Brown [EMAIL PROTECTED] wrote (on Thursday, 06 March 2008, 07:53 AM +1000): Matthew is it possible Zend_Session needs an option like Zend_Cache to store session files in layered directories so there are not too many files in a single directory at once? Zend_Session does not do session storage, and instead leaves it to PHP's session mechanisms. All it does is provide an interface to the $_SESSION global as well as to the various session_*() configuration functions. The error below is due to the user's own session handler, which Zend_Session has no knowledge of -- as is is, even if they used session_start() without Zend_Session, they'd get a PHP warning. -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2008 11:49 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Critical Error with Zend_Session -- WooKasZ [EMAIL PROTECTED] wrote (on Wednesday, 05 March 2008, 05:35 AM -0800): Hello ! I have a problem with Zend_Session class. Sometimes when I am refreshing page or clicking on a link this fatal error occurs: Code: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(_sessions/) failed: Result too large (34)' in H:\www\wz\Zend\Session.php:379 Stack trace: #0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 H:\www\wz\init\session.php(16): Zend_Session_Namespace-__construct() #2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') #3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...') #4 {main} thrown in H:\www\wz\Zend\Session.php on line 379 Here is the code in my app: require_once('Zend/Session.php'); garbageCollection( $config['session']['savepath'], $config['session']['lifetime'] ); ini_set( 'session.cache_expire', $config['session']['cache_exp']); ini_set( 'session.gc_maxlifetime', $config['session']['lifetime'] ); session_save_path( $config['session']['savepath'] ); $defSessNamespace = new Zend_Session_Namespace( ); garbageCollector is cleaning folder with sessions. I use it (and init_set) couse I didin't found it in docs. Based on the message exception from the exception thrown, it looks like your GC routine is having trouble getting a list of sessions to remove -- that perhaps there are too many for the OS to handle at once. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Critical Error with Zend_Session
-- WooKasZ [EMAIL PROTECTED] wrote (on Wednesday, 05 March 2008, 05:35 AM -0800): Hello ! I have a problem with Zend_Session class. Sometimes when I am refreshing page or clicking on a link this fatal error occurs: Code: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(_sessions/) failed: Result too large (34)' in H:\www\wz\Zend\Session.php:379 Stack trace: #0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 H:\www\wz\init\session.php(16): Zend_Session_Namespace-__construct() #2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') #3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...') #4 {main} thrown in H:\www\wz\Zend\Session.php on line 379 Here is the code in my app: require_once('Zend/Session.php'); garbageCollection( $config['session']['savepath'], $config['session']['lifetime'] ); ini_set( 'session.cache_expire', $config['session']['cache_exp']); ini_set( 'session.gc_maxlifetime', $config['session']['lifetime'] ); session_save_path( $config['session']['savepath'] ); $defSessNamespace = new Zend_Session_Namespace( ); garbageCollector is cleaning folder with sessions. I use it (and init_set) couse I didin't found it in docs. Based on the message exception from the exception thrown, it looks like your GC routine is having trouble getting a list of sessions to remove -- that perhaps there are too many for the OS to handle at once. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
RE: [fw-general] Critical Error with Zend_Session
Matthew is it possible Zend_Session needs an option like Zend_Cache to store session files in layered directories so there are not too many files in a single directory at once? -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2008 11:49 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Critical Error with Zend_Session -- WooKasZ [EMAIL PROTECTED] wrote (on Wednesday, 05 March 2008, 05:35 AM -0800): Hello ! I have a problem with Zend_Session class. Sometimes when I am refreshing page or clicking on a link this fatal error occurs: Code: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(_sessions/) failed: Result too large (34)' in H:\www\wz\Zend\Session.php:379 Stack trace: #0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 H:\www\wz\init\session.php(16): Zend_Session_Namespace-__construct() #2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') #3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...') #4 {main} thrown in H:\www\wz\Zend\Session.php on line 379 Here is the code in my app: require_once('Zend/Session.php'); garbageCollection( $config['session']['savepath'], $config['session']['lifetime'] ); ini_set( 'session.cache_expire', $config['session']['cache_exp']); ini_set( 'session.gc_maxlifetime', $config['session']['lifetime'] ); session_save_path( $config['session']['savepath'] ); $defSessNamespace = new Zend_Session_Namespace( ); garbageCollector is cleaning folder with sessions. I use it (and init_set) couse I didin't found it in docs. Based on the message exception from the exception thrown, it looks like your GC routine is having trouble getting a list of sessions to remove -- that perhaps there are too many for the OS to handle at once. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
Re: [fw-general] Critical Error with Zend_Session
-- Steven Brown [EMAIL PROTECTED] wrote (on Thursday, 06 March 2008, 07:53 AM +1000): Matthew is it possible Zend_Session needs an option like Zend_Cache to store session files in layered directories so there are not too many files in a single directory at once? Zend_Session does not do session storage, and instead leaves it to PHP's session mechanisms. All it does is provide an interface to the $_SESSION global as well as to the various session_*() configuration functions. The error below is due to the user's own session handler, which Zend_Session has no knowledge of -- as is is, even if they used session_start() without Zend_Session, they'd get a PHP warning. -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2008 11:49 PM To: fw-general@lists.zend.com Subject: Re: [fw-general] Critical Error with Zend_Session -- WooKasZ [EMAIL PROTECTED] wrote (on Wednesday, 05 March 2008, 05:35 AM -0800): Hello ! I have a problem with Zend_Session class. Sometimes when I am refreshing page or clicking on a link this fatal error occurs: Code: Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - session_start() [ function.session-start function.session-start ]: ps_files_cleanup_dir: opendir(_sessions/) failed: Result too large (34)' in H:\www\wz\Zend\Session.php:379 Stack trace: #0 H:\www\wz\Zend\Session\Namespace.php(116): Zend_Session::start(true) #1 H:\www\wz\init\session.php(16): Zend_Session_Namespace-__construct() #2 H:\www\wz\init\init.php(10): require_once('H:\www\wz\init\...') #3 H:\www\wz\index.php(21): require_once('H:\www\wz\init\...') #4 {main} thrown in H:\www\wz\Zend\Session.php on line 379 Here is the code in my app: require_once('Zend/Session.php'); garbageCollection( $config['session']['savepath'], $config['session']['lifetime'] ); ini_set( 'session.cache_expire', $config['session']['cache_exp']); ini_set( 'session.gc_maxlifetime', $config['session']['lifetime'] ); session_save_path( $config['session']['savepath'] ); $defSessNamespace = new Zend_Session_Namespace( ); garbageCollector is cleaning folder with sessions. I use it (and init_set) couse I didin't found it in docs. Based on the message exception from the exception thrown, it looks like your GC routine is having trouble getting a list of sessions to remove -- that perhaps there are too many for the OS to handle at once. -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/ -- Matthew Weier O'Phinney PHP Developer| [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/