Running the latest build dev build on Ubuntu 22.04: 1.37.45~20231023170647-jammy, Mysql 8.0.34-0ubuntu0.22.04.1.
Whenever I access the events view, I get the following in the logs:
Code: Select all
Oct 25 06:53:30 cctv web_php[795]: 10/25/23, 6:53:30 AM GMT+1.284832 web_php[795].ERR [10.10.20.1] [SQL-ERR 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Events
Oct 25 06:53:30 cctv web_php[795]: AS E
Oct 25 06:53:30 cctv web_php[795]: INNER JOIN Monitors
Oct 25 06:53:30 cctv web_php[795]: AS M
Oct 25 06:53:30 cctv web_php[795]: ON (E.MonitorId = M.Id)
Oct 25 06:53:30 cctv web_php[795]: LEFT JOI' at line 5', statement was 'SELECT EventId,FrameId,Delta,Score FROM Frames WHERE EventId IN(
Oct 25 06:53:30 cctv web_php[795]: SELECT
Oct 25 06:53:30 cctv web_php[795]: E.Id,
Oct 25 06:53:30 cctv web_php[795]: GROUP_CONCAT(T.Name SEPARATOR ", ")
Oct 25 06:53:30 cctv web_php[795]: AS TagsFROM Events
Oct 25 06:53:30 cctv web_php[795]: AS E
Oct 25 06:53:30 cctv web_php[795]: INNER JOIN Monitors
Oct 25 06:53:30 cctv web_php[795]: AS M
Oct 25 06:53:30 cctv web_php[795]: ON (E.MonitorId = M.Id)
Oct 25 06:53:30 cctv web_php[795]: LEFT JOIN Events_Tags
Oct 25 06:53:30 cctv web_php[795]: AS ET
Oct 25 06:53:30 cctv web_php[795]: ON E.Id = ET.EventId
Oct 25 06:53:30 cctv web_php[795]: LEFT JOIN Tags
Oct 25 06:53:30 cctv web_php[795]: AS T
Oct 25 06:53:30 cctv web_php[795]: ON T.Id = ET.TagId
Oct 25 06:53:30 cctv web_php[795]: WHERE NOT isnull(StartDateTime) AND E.StartDateTime >= '2023-10-24 06:53:30'
Oct 25 06:53:30 cctv web_php[795]: and E.MonitorId = '1'
Oct 25 06:53:30 cctv web_php[795]: AND EndDateTime >= '2023-10-24 07:00:00' AND StartDateTime <= '2023-10-24 22:59:59') AND Score > 0 ORDER BY Score DESC' params:] at /usr/share/zoneminder/www/includes/database.php line 161
Database seems to be updated:
Code: Select all
# zmupdate.pl
Database already at version 1.37.45, update skipped.