PHP Fatal error: Table 'zm.Sessions' doesn't exist in engine
Posted: Wed Jan 08, 2025 2:13 pm
I just received the following error in 1.36.33 after rebuilding the database per https://wiki.zoneminder.com/MySQL#[ERRO ... nd_the_end
The homepage was not working. I looked at the sessions table, and it had some old information. The solution was to restart apache2.
Code: Select all
[Wed Jan 08 08:31:25.176630 2025] [php7:error] [pid 1743] [client #########:43002] PHP Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1932 Table 'zm.Sessions' doesn't exist in engine in /usr/share/zoneminder/www/includes/session.php:138\nStack trace:\n#0 /usr/share/zoneminder/www/includes/session.php(138): PDO->prepare()\n#1 [internal function]: ZMSessionHandler->read()\n#2 /usr/share/zoneminder/www/includes/session.php(46): session_start()\n#3 /usr/share/zoneminder/www/index.php(139): zm_session_start()\n#4 {main}\n thrown in /usr/share/zoneminder/www/includes/session.php on line 138