Page 1 of 1

Timeline stopped working after upgrade

Posted: Thu Jun 16, 2011 2:27 pm
by jplord
Hello,

I have upgraded from 1.24.2 to 1.24.4 and lost the timeline view. I can see the event graph but when I mouse over, no image appear at the top.

I have the following error in my http error log:

[Thu Jun 16 10:14:17 2011] [error] [client 192.168.10.60] PHP Fatal error: Call to undefined function json_last_error() in /var/www/http/zoneminder/includes/functions.php on line 2173, referer: websiteaddressremoved/?view=timeline

I also have thousands of these in /var/log/messages which I'd like to resolve as well.
Jun 15 23:59:57 dvr zms[10960]: INF [Debug Level = 0, Debug Log = <none>]


My PHP version is
PHP 5.2.17 (cli) (built: Jan 7 2011 18:39:04)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies


It appears this version does not support json_last_error() according to php manual

Re: Timeline stopped working after upgrade

Posted: Thu Jun 16, 2011 4:51 pm
by mastertheknife
Upgrade to PHP 5.3.0 or newer.

mastertheknife.

Re: Timeline stopped working after upgrade

Posted: Thu Jun 16, 2011 8:28 pm
by jplord
Unfortunately, not an option to upgrade...

Is zoneminder really no longer compatible ... at all.... with php 5.2 ?

Re: Timeline stopped working after upgrade

Posted: Tue Jun 28, 2011 11:01 am
by vst
jplord:
Use the following patch, and ZM will build and work fine with PHP 5.2.
http://www.zoneminder.com/forums/viewto ... 21&t=17739