Zend error message + bootstrap error

Hi!
I’m running into an error and can’t figure out what I’m doing wrong.

Thoughts?


Deprecated : Return type of Zend_Config::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 248

Deprecated : Return type of Zend_Config::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 258

Deprecated : Return type of Zend_Config::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 278

Deprecated : Return type of Zend_Config::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 269

Deprecated : Return type of Zend_Config::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 304

Deprecated : Return type of Zend_Config::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 292

Deprecated : Return type of Zend_Registry::offsetExists($index) should either be compatible with ArrayObject::offsetExists(mixed $key): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Registry.php on line 204

Deprecated : Return type of Zend_Controller_Action_HelperBroker_PriorityStack::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 91

Deprecated : Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetExists($priorityOrHelperName) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 102

Deprecated : Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetGet($priorityOrHelperName) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 117

Deprecated : Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetSet($priority, $helper) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 138

Deprecated : Return type of Zend_Controller_Action_HelperBroker_PriorityStack::offsetUnset($priorityOrHelperName) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 175

Deprecated : Return type of Zend_Controller_Action_HelperBroker_PriorityStack::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 201

Fatal error : Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Zend_Registry given in /groups/pubhist/web/cms/application/libraries/Zend/Registry.php:206 Stack trace: #0 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(533): Zend_Registry->offsetExists() #1 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(552): Zend_Application_Bootstrap_BootstrapAbstract->hasResource() #2 /groups/pubhist/web/cms/application/libraries/Omeka/Application/Resource/Db.php(59): Zend_Application_Bootstrap_BootstrapAbstract->getResource() #3 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Db->init() #4 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource() #5 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap() #6 /groups/pubhist/web/cms/application/libraries/Omeka/Application/Resource/Pluginbroker.php(22): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap() #7 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Pluginbroker->init() #8 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(641): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource() #9 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap() #10 /groups/pubhist/web/cms/application/libraries/Omeka/Application/Resource/Frontcontroller.php(59): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap() #11 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(695): Omeka_Application_Resource_Frontcontroller->init() #12 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(638): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource() #13 /groups/pubhist/web/cms/application/libraries/Zend/Application/Bootstrap/BootstrapAbstract.php(598): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap() #14 /groups/pubhist/web/cms/application/libraries/Zend/Application.php(373): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap() #15 /groups/pubhist/web/cms/application/libraries/Omeka/Application.php(49): Zend_Application->bootstrap() #16 /groups/pubhist/web/cms/index.php(23): Omeka_Application->initialize() #17 {main} thrown in /groups/pubhist/web/cms/application/libraries/Zend/Registry.php on line 206

You’re running an older version of Omeka Classic on a server with too-new PHP.

The solution is to upgrade your Omeka Classic site to a newer version which supports your server’s newer PHP (I’d suggest going to version 3.1.2, the latest version).

I’ve done the upgrade and now I have only this error:

Deprecated : Return type of Zend_Config::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 248

Deprecated : Return type of Zend_Config::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 258

Deprecated : Return type of Zend_Config::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 278

Deprecated : Return type of Zend_Config::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 269

Deprecated : Return type of Zend_Config::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 304

Deprecated : Return type of Zend_Config::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /groups/pubhist/web/cms/application/libraries/Zend/Config.php on line 292

And I still can’t access the admin panel.

Is it possible you missed a file when doing the upgrade? You’d get this kind of result if you did the upgrade but still had the old copy of your application/libraries/Zend/Config.php file.