Deprecated Zend_Config Error

Hi, I am trying to access my Omeka webpage but each link is giving 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 /home/charmain/archive.charmainewheatley.ca/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 /home/charmain/archive.charmainewheatley.ca/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 /home/charmain/archive.charmainewheatley.ca/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 /home/charmain/archive.charmainewheatley.ca/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 /home/charmain/archive.charmainewheatley.ca/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 /home/charmain/archive.charmainewheatley.ca/application/libraries/Zend/Config.php on line 292

Admittedly I have never used Omeka before and I have very little coding experience, and we are just trying to access a website that someone else had set up for us some time ago. We keep seeing these error messages even when we try to access the admin page or just the home page. How could we resolve this problem and make it so that we can access the database again?

These errors are there because you’re running an old Omeka install on a much newer PHP version. One way to fix this is to upgrade Omeka: newer versions of Omeka support newer versions of PHP and won’t have these errors.

Another simpler option that may work for you is to turn off error display. You’d basically follow these instructions in reverse, so editing the .htaccess file and adding a # to the front of the SetEnv line.

Hi, thank you for the help! Could I ask how I might be able to do that (either upgrading Omeka or turning off error display)? I have very little experience with Omeka or coding so I’m not sure where to go into in order to fix this, sorry about that.

As I mentioned in my last message, the simpler option involves going on your server and editing the “.htaccess” file in your Omeka site.

If you need more help on what would be involved in editing a file, you might check with your host. They may provide a web interface that lets you edit files, or have instructions for using a program or client to connect to your server to make changes.