Zend_Session_Exception after upgrade to 2.2.2

Hello,

Today I was trying to upgrade my site from 2.1.4 to 2.2.2. I followed the site instructions step by step to make sure everything was done correctly. However, after the update I get the following error. I have not been able to figure it out. Any help would be greatly appreciated.

Unable to set session handler

#0 /xxx/xxx/application/libraries/Zend/Application/Resource/Session.php(115): Zend_Session::setSaveHandler(Object(Omeka_Session_SaveHandler_DbTable))
#1 /xxx/xxx/application/libraries/Omeka/Application/Resource/Session.php(22): Zend_Application_Resource_Session->init()
#2 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Session->init()
#3 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Session')
#4 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('Session')
#5 /xxx/xxx/application/libraries/Omeka/Application/Resource/Auth.php(23): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('Session')
#6 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Auth->init()
#7 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Auth')
#8/xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('Auth')
#9 /xxx/xxx/application/libraries/Omeka/Application/Resource/Currentuser.php(26): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('Auth')
#10 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Currentuser->init()
#11 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Currentuser')
#12 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('Currentuser')
#13 /xxx/xxx/application/libraries/Omeka/Application/Resource/Helpers.php(122): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('Currentuser')
#14 /xxx/xxx/application/libraries/Omeka/Application/Resource/Helpers.php(27): Omeka_Application_Resource_Helpers->_initAclHelper()
#15 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Helpers->init()
#16 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('Helpers')
#17 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('Helpers')
#18 /xxx/xxx/application/libraries/Omeka/Application/Resource/Frontcontroller.php(63): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('Helpers')
#19 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Frontcontroller->init()
#20 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(638): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('frontcontroller')
#21 /xxx/xxx/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL)
#22 /xxx/xxx/application/libraries/Zend/Application.php(355): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL)
#23 /xxx/xxx/application/libraries/Omeka/Application.php(51): Zend_Application->bootstrap()
#24 /xxx/xxx/index.php(23): Omeka_Application->initialize()
#25 {main}

Have you made some other change at the same time?

The session handling code really isn't very different between the two versions.

The exception there indicates there was some error setting the handler. If you check your PHP log (not the Omeka log, PHP errors are often logged in Apache's error log) it may have a more detailed message explaining the failure.

Could you have enabled PHP's session.auto_start setting? It should be off, set to zero, but if it was enabled, an attempt to change the save handler would fail (because the session would have already started).

Thank you. I added 'php_flag session.auto_start 0
' to the .htaccess file and it fixed the issue.

For my own knowledge, what would have caused this during the update?