We’re having problems with moving Classic to a new server. To keep it simple, I’ve attempted a new install (classic 3.1.2) to test with (still get same error). I’ve searched the forum here, and none of the previous issues seem to apply here. Looking for help! More details:
OS: RHEL 9.3 with all prereq libraries
PHP: 8.1.27 - installed as PHP-FPM
Checked the following (found from searches):
- verified Omeka 3.1.2 is compatible with PHP 8.1
- verified httpd and php-fpm user is apache, and can write to /var/lib/php/session/
- verified session support is enabled, session.auto_start is off, save_handler is set to files, and save_path is set to /var/lib/php/session
- new install, but cleared caches. also tested in Mozilla and Edge (started with Chrome)
- we don’t run other Zend apps, but I know other websites on server are using Wordpress, and that seems to be using session dir just fine (writeable).
- or are sessions now in the database only, e.g. omeka_sessions? (which looks very weird for a new install - 209804 records???) if that’s the case, the rest of the DB is there, so the installer worked and one would expect the sessions db to work?
- uncommenting application/config/config.ini’s session.saveHandler = “” results in a session file in /var/lib/php/session/ … but the same error.
- gc_probability is 1
Error log:
2024-04-15T14:23:18-07:00 ERR (3): Zend_Session_Exception: The session has already been started. The session id must be set first. in /app/www/WEBSITE/html/collections/application/libraries/Zend/
Session.php:681
Stack trace:
#0 /app/www/WEBSITE/html/collections/application/libraries/Zend/Session.php(440): Zend_Session::setId()
#1 /app/www/WEBSITE/html/collections/application/libraries/Zend/Session/Namespace.php(143): Zend_Session::start()
#2 /app/www/WEBSITE/html/collections/application/libraries/Omeka/Controller/Plugin/Admin.php(64): Zend_Session_Namespace->__construct()
#3 /app/www/WEBSITE/html/collections/application/libraries/Zend/Controller/Plugin/Broker.php(309): Omeka_Controller_Plugin_Admin->preDispatch()
#4 /app/www/WEBSITE/html/collections/application/libraries/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch()
#5 /app/www/WEBSITE/html/collections/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(106): Zend_Controller_Front->dispatch()
#6 /app/www/WEBSITE/html/collections/application/libraries/Zend/Application.php(384): Zend_Application_Bootstrap_Bootstrap->run()
#7 /app/www/WEBSITE/html/collections/application/libraries/Omeka/Application.php(73): Zend_Application->run()
#8 /app/www/WEBSITE/html/collections/admin/index.php(28): Omeka_Application->run()
#9 {main}
Not sure what else to try or look at…
[edited to remove personal info]