View Event & delete Event broken after last update

Previous development branch now released as 1.36
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: View Event & delete Event broken after last update

Post by knight-of-ni »

There was bug in the bootstrap-table plugin 1.18.0, which was causing the wrong event deleted. In my case it was trying to delete an event that didn't even exist.

Over the weekend I rolled back the plugin to a git version newer than 1.17.1 but older than 1.18.0. The goal is to avoid the problem with the newest version but not re-introduce old bug that we already worked through.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
yaronimo
Posts: 3
Joined: Fri Oct 25, 2019 8:48 am

Re: View Event & delete Event broken after last update

Post by yaronimo »

knight-of-ni wrote: Mon Oct 19, 2020 2:27 am My knee-jerk reaction to that error message is to remove the trailing comma on line 218 in event.php:

from:

Code: Select all

function($r){return $r >= 0 ? true : false;},
to:

Code: Select all

function($r){return $r >= 0 ? true : false;}
I might be wrong, but it can't hurt to try it.
Worked for me too!
Thanks
Sapozhnik
Posts: 8
Joined: Thu Oct 15, 2020 9:46 am

Re: View Event & delete Event broken after last update

Post by Sapozhnik »

Another problem.
Of I try watch any event I get error
Parse error: syntax error, unexpected ')' in /usr/share/zoneminder/www/skins/classic/views/event.php on line 219

Image
User avatar
knight-of-ni
Posts: 2406
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: View Event & delete Event broken after last update

Post by knight-of-ni »

Sapozhnik wrote: Thu Oct 22, 2020 5:26 am Another problem.
Of I try watch any event I get error
Parse error: syntax error, unexpected ')' in /usr/share/zoneminder/www/skins/classic/views/event.php on line 219

Image
That error was fixed already:
https://github.com/ZoneMinder/zoneminde ... fa3cc09ff7

Just delete the extra comma (or wait for the next package to come out) and you will be good to go.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Sapozhnik
Posts: 8
Joined: Thu Oct 15, 2020 9:46 am

Re: View Event & delete Event broken after last update

Post by Sapozhnik »

knight-of-ni wrote: Thu Oct 22, 2020 12:14 pm
Sapozhnik wrote: Thu Oct 22, 2020 5:26 am Another problem.
Of I try watch any event I get error
Parse error: syntax error, unexpected ')' in /usr/share/zoneminder/www/skins/classic/views/event.php on line 219
That error was fixed already:
https://github.com/ZoneMinder/zoneminde ... fa3cc09ff7

Just delete the extra comma (or wait for the next package to come out) and you will be good to go.
Thanks.
Correct manually
Locked