Timeline stopped working after upgrade

Forum for questions and support relating to the 1.24.x releases only.
Locked
jplord
Posts: 2
Joined: Thu Jun 16, 2011 2:15 pm

Timeline stopped working after upgrade

Post 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
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: Timeline stopped working after upgrade

Post by mastertheknife »

Upgrade to PHP 5.3.0 or newer.

mastertheknife.
Kfir Itzhak.
jplord
Posts: 2
Joined: Thu Jun 16, 2011 2:15 pm

Re: Timeline stopped working after upgrade

Post by jplord »

Unfortunately, not an option to upgrade...

Is zoneminder really no longer compatible ... at all.... with php 5.2 ?
vst
Posts: 6
Joined: Wed Sep 01, 2010 8:42 am

Re: Timeline stopped working after upgrade

Post 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
Locked