This issue was in Version: 3.1.0-rc7, and I updated via apt to Version: 3.1.0-rc8 with the same issue. Ubuntu 20.04 LTS Desktop
I am trying to delete a disabled camera. I am using Chrome 112.0.5615.121 on a Windows 10 Pro PC.
When I try to delete a camera under devices, settings.
I get an ajax error and an error 500 screen.
https://10.2.6.10:7001/ajax/update.php
This page isn’t working
10.2.6.10 is currently unable to handle this request.
HTTP ERROR 500
Can you try to delete the camera and then look at Logs → Bluecherry WWW Log (Setup and configuration - Bluecherry) and reply with what error you are seeing?
Sorry for the delay. My workstation is 10.2.3.53.
Here are the last lines from Bluecherry www log…
2023/04/26 12:10:24 [error] 2607344#2607344: *32875 FastCGI sent in stderr: “PHP message: PHP Fatal error: Cannot delete or update a parent row: a foreign key constraint fails (bluecherry
.OnvifEvents
, CONSTRAINT OnvifEvents_ibfk_1
FOREIGN KEY (device_id
) REFERENCES Devices
(id
) ON UPDATE CASCADE) query:DELETE FROM Devices WHERE id=‘4’ in /usr/share/bluecherry/www/lib/lib.php on line 231” while reading response header from upstream, client: 10.2.3.53, server: , request: “POST /ajax/update.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.4-fpm.sock:”, host: “10.2.6.10:7001”, referrer: “https://10.2.6.10:7001/devices”
2023/04/26 12:10:24 [error] 2607344#2607344: *32875 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined method update::getData() in /usr/share/bluecherry/www/lib/Controller.php:137
Stack trace:
#0 /usr/share/bluecherry/www/lib/Route.php(75): Controller->start()
#1 /usr/share/bluecherry/www/index.php(16): Route->start()
#2 {main}
thrown in /usr/share/bluecherry/www/lib/Controller.php on line 137" while reading response header from upstream, client: 10.2.3.53, server: , request: “GET /ajax/update.php HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php/php7.4-fpm.sock:”, host: “10.2.6.10:7001”, referrer: “https://10.2.6.10:7001/devices”