Zend_Session_Error on install

Hello there,

I’m helping a student to set up a local Omeka install to use offline in field research, and she’s running into an install error that I’ve never seen before. She’s running the latest XAMPP setup with PHP 8.1.5, and mysqli and mod_rewrite are enabled. Here’s the full stack trace:

Zend_Session::start() - /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Db/Table/Rowset/Abstract.php(Line:368): Error #8192 Return type of Zend_Db_Table_Rowset_Abstract::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Zend_Session_Exception: Zend_Session::start() - /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Db/Table/Rowset/Abstract.php(Line:368): Error #8192 Return type of Zend_Db_Table_Rowset_Abstract::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Session.php:509

Stack trace:

#0 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Session/Namespace.php(143): Zend_Session::start(true)

#1 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Auth/Storage/Session.php(86): Zend_Session_Namespace->__construct(‘Zend_Auth’)

#2 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()

#3 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Auth.php(141): Zend_Auth->getStorage()

#4 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Currentuser.php(42): Zend_Auth->hasIdentity()

#5 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Currentuser->init()

#6 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘Currentuser’)

#7 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘Currentuser’)

#8 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Helpers.php(116): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(‘Currentuser’)

#9 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Helpers.php(27): Omeka_Application_Resource_Helpers->_initAclHelper()

#10 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Helpers->init()

#11 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘Helpers’)

#12 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘Helpers’)

#13 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Frontcontroller.php(63): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(‘Helpers’)

#14 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Frontcontroller->init()

#15 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(638): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘frontcontroller’)

#16 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘frontcontroller’)

#17 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Zend/Application.php(373): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL)

#18 /opt/lampp/htdocs/omeka-3.0.3/application/libraries/Omeka/Application.php(49): Zend_Application->bootstrap()

#19 /opt/lampp/htdocs/omeka-3.0.3/index.php(23): Omeka_Application->initialize()

#20 {main}

Any ideas what could be happening? I haven’t been able to turn up similar errors on the forum.

The current release isn’t compatible with PHP 8.1. Selecting 8.0 or earlier to use would resolve the problem.

This topic was automatically closed after 250 days. New replies are no longer allowed.