Zend Session Exception; Error 8192

Running Omeka 3.0.3. Using PHP 8.2. Downgraded to PHP 8.1 but same error.

Result: I am unable to log into the Admin Panel. Omeka exhibits on my website (https://phsnh.org) cause same error and will not display.

I have no idea what to do.

Mike Sutherland

Error below:

Omeka has encountered an error

Zend_Session_Exception

Zend_Session::start() - /home/clasut4/phsnh.org/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() - /home/clasut4/phsnh.org/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 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Session.php:509
Stack trace:
#0 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Session/Namespace.php(143): Zend_Session::start(true)
#1 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Auth/Storage/Session.php(86): Zend_Session_Namespace->__construct(‘Zend_Auth’)
#2 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Auth.php(91): Zend_Auth_Storage_Session->__construct()
#3 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Auth.php(141): Zend_Auth->getStorage()
#4 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Currentuser.php(42): Zend_Auth->hasIdentity()
#5 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Currentuser->init()
#6 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘Currentuser’)
#7 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘Currentuser’)
#8 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Helpers.php(116): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(‘Currentuser’)
#9 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Helpers.php(27): Omeka_Application_Resource_Helpers->_initAclHelper()
#10 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Helpers->init()
#11 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘Helpers’)
#12 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘Helpers’)
#13 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Omeka/Application/Resource/Frontcontroller.php(63): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(‘Helpers’)
#14 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Frontcontroller->init()
#15 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(638): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource(‘frontcontroller’)
#16 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(‘frontcontroller’)
#17 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Zend/Application.php(373): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap(NULL)
#18 /home/clasut4/phsnh.org/omeka-3.0.3/application/libraries/Omeka/Application.php(49): Zend_Application->bootstrap()
#19 /home/clasut4/phsnh.org/omeka-3.0.3/admin/index.php(28): Omeka_Application->initialize()
#20 {main}

As far as I know, Omeka v3.0.3 is compatible up to PHP 8.0. Try to downgrade PHP to 7.2 (just in case) or upgrade Omeka to v.3.1 that officially supports PHP 8.2.

Yes, @miniol is right: this problem is happening because you’re using Omeka Classic 3.0.3 with PHP 8.2. You can upgrade to Omeka Classic 3.1, which will work with PHP 8.1 and 8.2, or you can switch PHP to 8.0 or lower to keep using the version of Omeka Classic you’re using now.

This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.