Fatal error: Uncaught Error working with events 1.31.41
Posted: Sun Apr 15, 2018 7:42 pm
I upgraded a ZM system from 1.31.1 to 1.31.41 on Bionic 18.04 and now am encountering this error when attempting to view events or delete the events. attempted event deletion with a filter, which did seem to function in selecting the correct events according to the filter used, but did not do the event deletions.
The events are created and written to storage. But every attempt to view or work with them I encounter the same error described above. Involving the public function in /usr/share/zoneminder/www/includes/Event.php:
Code: Select all
Fatal error: Uncaught Error: Call to a member function Path() on null in /usr/share/zoneminder/www/includes/Event.php:
86 Stack trace:
#0 /usr/share/zoneminder/www/includes/Event.php(157): Event->Path()
#1 /usr/share/zoneminder/www/includes/functions.php(359): Event->delete()
#2 /usr/share/zoneminder/www/includes/actions.php(238): deleteEvent(Object(Event))
#3 /usr/share/zoneminder/www/index.php(210): require_once('/usr/share/zone...')
#4 {main} thrown in /usr/share/zoneminder/www/includes/Event.php on line 86
Code: Select all
Fatal error: Uncaught Error: Call to a member function Path() on null in /usr/share/zoneminder/www/includes/Event.php:
86 Stack trace:
#0 /usr/share/zoneminder/www/includes/Event.php(210): Event->Path()
#1 /usr/share/zoneminder/www/skins/classic/views/event.php(116): Event->DiskSpace(NULL)
#2 /usr/share/zoneminder/www/index.php(237): require_once('/usr/share/zone...')
#3 {main} thrown in /usr/share/zoneminder/www/includes/Event.php on line 86
Code: Select all
public function Path() {
$Storage = $this->Storage();
return $Storage->Path().'/'.$this->Relative_Path();
}