Zend Errors on Omeka Upgrade

I updated to Omeka 3.1.2 and can access the admin page just fine. However, the public facing page is printing a list of errors that are similar to the following:

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 /home/customer/www/collegegallery.greatwave.org/public_html/application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php on line 91

I did make sure to copy the necessary files, plugins, themes, etc., from the old instance of Omeka. My hosting service is running PHP 8.2.27. Is that the source of the problem, or is it something else?

The specific noitice you’re mentioning was fixed in Omeka Classic 3.1… I’d make sure you installed 3.1.2 properly, and after that check things like caching, possibly restarting/refreshing PHP on the server if that’s something you’re able to do.

As for whether the new version is installed properly, you could check one thing immediately: what’s on line 91 of the file mentioned in the error message, application/libraries/Zend/Controller/Action/HelperBroker/PriorityStack.php. In Omeka 3.1.2 that line should read:

#[\ReturnTypeWillChange]

It must have been a caching issue. My website relentlessly caches content. Anyway, the problem appears to have been resolved. Thank you for your reply.