Maintenance mode | Update Database

Hi all,

I’m having trouble with a fresh installation of Omeka S, and I keep getting the following error when I try to load the site:

Deprecated : strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/vendor/composer/semver/src/Constraint/Constraint.php on line 211

Deprecated : version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /var/www/html/vendor/composer/semver/src/Constraint/Constraint.php on line 226

Deprecated : strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/vendor/composer/semver/src/Constraint/Constraint.php on line 211

Deprecated : version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /var/www/html/vendor/composer/semver/src/Constraint/Constraint.php on line 226

Deprecated : strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/html/vendor/composer/semver/src/Constraint/Constraint.php on line 211

Deprecated : version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in /var/www/html/vendor/composer/semver/src/Constraint/Constraint.php on line 226

Site under maintenance

This site is down for maintenance. Please contact the site administrator for more information.

going to /admin brings me to a migrate page where I am instructed to click update my database button, it isn’t doing anything

Setup Context:

Omeka S version: 4.1.1.
Web server: Apache2 (on Ubuntu)
PHP & MariaDB are working fine
Database connection is good
*I moved all Omeka S files into the /var/www/html/ directory (i.e., not using a separate /omeka-s folder) to simplify Apache2 config.

What I Did:

I followed this YouTube tutorial to install Omeka S.
*When trying to load the site or access the admin area, I receive the SiteSettings service error above, and the stack trace points to the Sharing module specifically.

Thakns in advanced for any help

Hi @koshaughnessy ,

It sounds like there is a version incompatibility with a module version.

There are a couple of ways to troubleshoot it. I would probably start by removing or renaming module folders so they don’t load. In this case, you could start with the Sharing module. If it persists, then I would do the same thing for each module.

One you get the site updated, then update the Sharing module to a compatible version.