PHP Division by zero: montage view not working

Forum for questions and support relating to the 1.24.x releases only.
Locked
moep
Posts: 5
Joined: Wed Nov 19, 2008 3:47 pm

PHP Division by zero: montage view not working

Post by moep »

Hi,

I tried to do an upgrade on our ZM system today which failed (it was neither zoneminders nor ubuntus fault - it was mine).

So I ended up with a fresh installation of Ubuntu 9.04 and used the precompiled .deb found on this forum to install Zoneminder 1.24.1.

Everything works as expected but there are various php division by zero errors in the headers of some webinterface pages.

For example on the ZM index.php:

Warning: Division by zero in /var/www/zoneminder/zm_html_view_console.php on line 164


On the "Montage" page (no cameras show up here by the way):

Warning: Division by zero in /var/www/zoneminder/zm_html_view_montage.php on line 45


Any idea what could cause this?
Again, this is 1.24.1 running on Ubuntu 9.04 - the OS is completely plain vanilla and was just recently installed.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The files you are referring to, e.g. zm_html_view_console.php are no longer part of ZM 1.24.x so it looks like you are actually accessing an old copy. You may want to just totally remove all traces of ZM from your system and reinstall.
Phil
Locked