Page 1 of 1

Stills do not work, lots of deprecated function messages

Posted: Wed Jul 14, 2010 6:51 pm
by crooter
Hi,

I had working ZM on Ubuntu 9.10, but after upgrade to 10.04 (ZM 1.24.2) some functionality was fully or partially lost:
- stills do not work at all
- video is being shown unstable - long time for buffering

besides that I see many messages like
Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 808
(same problem on lines 813, 818, 823, 828)

Is there a way to fix these problems for Ubuntu 10.04?

Regards,
C

Posted: Thu Jul 15, 2010 8:49 pm
by ilios
same os, same issues

patch

Posted: Sun Jul 18, 2010 5:51 pm
by crooter
this patch helps: replace all "ereg" with "@ereg" in /usr/share/zoneminder/includes/functions.php

with this patch stills work, at least for me.

the idea came from here:
http://drupal.org/node/514334#comment-2921094

patch for removing deprecated split message

Posted: Sun Jul 18, 2010 6:25 pm
by crooter
I also noticed "deprecated split" on the main page, here is the second patch:
replace "split" with "explode" in the same file (/usr/share/zoneminder/includes/functions.php)

the idea came from http://projects.ceondo.com/p/pluf/issues/233/

note, if you replace split with explode and in arguments you see something backslashed (escape sequence) - you will probably need to remove the backslash!

Posted: Sun Jul 18, 2010 9:02 pm
by ilios
thanks something has changed now i got
[Sun Jul 18 23:00:24 2010] [error] [client 82.50.38.220] PHP Notice: Undefined index: FocusRoot in /usr/share/zoneminder/skins/classic/includes/control_functions.php on li$
[Sun Jul 18 23:00:24 2010] [error] [client 82.50.38.220] PHP Notice: Undefined index: WhiteRoot in /usr/share/zoneminder/skins/classic/includes/control_functions.php on li$
[Sun Jul 18 23:00:24 2010] [error] [client 82.50.38.220] PHP Notice: Undefined index: WhiteRoot in /usr/share/zoneminder/skins/classic/includes/control_functions.php on li$
[Sun Jul 18 23:00:27 2010] [error] [client 82.50.38.220] PHP Deprecated: Function split() is deprecated in /usr/share/zoneminder/skins/classic/views/monitor.php on line

Posted: Mon Jul 19, 2010 2:42 am
by crooter
no idea about the index errors, with the last warning - try to replace the split with explode.