Slug not found when viewing site

Hello,

After making a new site on the Sites page, I found out that when I’m not logged in I get te following error to view only one site. The other site still works flawlessly regardless.

The error in question:

Omeka\Api\Exception\NotFoundException: Omeka\Entity\Site entity with criteria {"slug":"j-c-goeroe-digitaal-archief"} not found in /var/www/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php:631
Stack trace:
#0 /var/www/omeka-s/application/src/Api/Adapter/AbstractEntityAdapter.php(347): Omeka\Api\Adapter\AbstractEntityAdapter->findEntity(Array, Object(Omeka\Api\Request))
#1 /var/www/omeka-s/application/src/Api/Manager.php(230): Omeka\Api\Adapter\AbstractEntityAdapter->read(Object(Omeka\Api\Request))
#2 /var/www/omeka-s/application/src/Api/Manager.php(115): Omeka\Api\Manager->execute(Object(Omeka\Api\Request))
#3 /var/www/omeka-s/application/src/Mvc/MvcListeners.php(382): Omeka\Api\Manager->read('sites', Array)
#4 /var/www/omeka-s/application/src/Mvc/MvcListeners.php(311): Omeka\Mvc\MvcListeners->prepareSite(Object(Zend\Mvc\MvcEvent))
#5 /var/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Omeka\Mvc\MvcListeners->preparePublicSite(Object(Zend\Mvc\MvcEvent))
#6 /var/www/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(179): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#7 /var/www/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(311): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#8 /var/www/omeka-s/index.php(21): Zend\Mvc\Application->run()
#9 {main}

That site is probably private while the other is marked public.

Glad to say you were correct.