Page 1 of 1

Export event as video - pop up blank

Posted: Mon Aug 24, 2020 7:43 pm
by mmserafini
Hi

Sometime ago I followed this guide and all worded fine.
https://wiki.zoneminder.com/How_to_expo ... the%20page.

Today I upgraded zoneminder ubuntu from repository, iconnor-ubuntu-zoneminder-master-bionic, from v1.35.4 to v1.35.6. Now when clicking on 'Video' from the event page the pop up is completely blank.

It should be like the image attached.

Max

Re: Export event as video - pop up blank

Posted: Tue Aug 25, 2020 2:17 pm
by mmserafini
This is the apache error log. In /var/log/zm logs nothing shows

[Tue Aug 25 10:09:11.476288 2020] [php7:notice] [pid 18289] [client 172.24.99.216:42518] PHP Notice: Undefined variable: event in /usr/share/zoneminder/www/skins/classic/views/js/video.js.php on line 1, referer: http://172.24.99.207/zm/index.php?view= ... =1&popup=1
[Tue Aug 25 10:09:11.476442 2020] [php7:error] [pid 18289] [client 172.24.99.216:42518] PHP Fatal error: Uncaught Error: Call to a member function Id() on null in /usr/share/zoneminder/www/skins/classic/views/js/video.js.php:1\nStack trace:\n#0 /usr/share/zoneminder/www/skins/classic/includes/functions.php(170): require_once()\n#1 /usr/share/zoneminder/www/skins/classic/views/video.php(102): xhtmlHeaders('/usr/share/zone...', 'Video')\n#2 /usr/share/zoneminder/www/index.php(290): require_once('/usr/share/zone...')\n#3 {main}\n thrown in /usr/share/zoneminder/www/skins/classic/views/js/video.js.php on line 1, referer: http://172.24.99.207/zm/index.php?view= ... =1&popup=1

Re: Export event as video - pop up blank

Posted: Tue Aug 25, 2020 3:30 pm
by knight-of-ni
Add this to the top of video.js.php:

Code: Select all

<?php
  global $event;
?>
Does that fix the problem?

Re: Export event as video - pop up blank

Posted: Tue Aug 25, 2020 3:48 pm
by iconnor
I just pushed the fix, new packages building.

Re: Export event as video - pop up blank

Posted: Tue Aug 25, 2020 9:02 pm
by mmserafini
Excellent, thank you!