Web seems to hang: PHP ereg() error?

Forum for questions and support relating to the 1.24.x releases only.
Locked
camroidv27
Posts: 35
Joined: Tue Jun 15, 2010 6:18 am

Web seems to hang: PHP ereg() error?

Post by camroidv27 »

Ubuntu 10.04 with Zoneminder 1.24.2

Sometimes when I use the web interface for zoneminder, it times out or hangs. When I look up the Apache2 error log, I see the following errors:

Code: Select all

PHP Deprecated: Function ereg() is deprecated in /usr/share/zoneminder/includes/functions.php on line 808
(and lines 813, 818, 823, and 828 as well)

I tried to research the error, and it seems that the ereg expression used at those points is out dated and needs to be updated. Sadly, I am no programer and am likely to break it if I tried to repair it (given I could figure out how to do so!) So my question is this:
Is there a fix for this?
If not, can I downgrade my PHP to 5.2.9 (what I read says that this would accept the expression), and how would I do so in Ubuntu?
Locked