Forums / Cotonti / Extensions / Calendar errors

DemptD
#1 2010-02-17 08:31
on index:

Deprecated: Function ereg_replace() is deprecated in httpd.www/plugins/calendar/calendar_idx.php on line 88

Deprecated: Function ereg_replace() is deprecated in httpd.www/plugins/calendar/calendar_idx.php on line 91

Deprecated: Function ereg_replace() is deprecated in /httpd.www/plugins/calendar/calendar_idx.php on line 94

On main calendar:

Deprecated: Function ereg_replace() is deprecated in httpd.www/plugins/calendar/calendar.php on line 81

Deprecated: Function ereg_replace() is deprecated in /httpd.www/plugins/calendar/calendar.php on line 84

Deprecated: Function ereg_replace() is deprecated in httpd.www/plugins/calendar/calendar.php on line 87

how to fix?
Heater
#2 2010-11-24 06:13
same problem DemptD
Do you have fixed ? can you tell me ?
[url=http://www.fightercombatsims.net]FighterCombatSims[/url]
GHengeveld
#3 2010-11-24 06:27
The easy fix: append an @ to hide the error.
ereg_replace -> @ereg_replace

The real fix: replace ereg_replace with preg_replace. This also requires rewriting the regular expression because preg_replace uses Perl style regular expressions while ereg_replace does not.