Page 1 of 1

Error message on the top of the page when wrong captcha

Posted: 22 Oct 2010, 11:48
by Hasse
Hi all,
Sorry for a rookie question.
Just setting up my new web and have included the Phoca Guestbook (good stuff!).

When entering the wrong captcha or none at all, the error message below is appearing on the top of the page.
What does it mean and how do I get rid of it?
Deprecated: Function eregi() is deprecated in C:\Program Files (x86)\wamp\www\components\com_phocaguestbook\controllers\phocaguestbook.php on line 133

Deprecated: Function eregi() is deprecated in C:\Program Files (x86)\wamp\www\components\com_phocaguestbook\controllers\phocaguestbook.php on line 184
cheers
Hans

Re: Error message on the top of the page when wrong captcha

Posted: 27 Oct 2010, 22:55
by Jan
Hi, which php function do you run? Seems like some new php version (php 5.3) doesn't support the eregi, so I will need to overwrite it with some other function.

Added to feature request list.


Jan

Re: Error message on the top of the page when wrong captcha

Posted: 27 Oct 2010, 23:03
by Hasse
Hi,
Yes, PHP version 5.3.0 (latest WAMP release).

//Hans

Re: Error message on the top of the page when wrong captcha

Posted: 31 Oct 2010, 17:19
by Jan
Hi, I will change the eregi to preg_replace in the future version, for now this needs to be customized in the code :-( to support php5.3

from:

Code: Select all

eregi( "[\<|\>]", $post['title'])
to:

Code: Select all

preg_match("~[<|>]~",$post['title']); 
from:

Code: Select all

eregi( "[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+]", $post['title'])
to:

Code: Select all

preg_match("~[\<|\>|\"|\'|\%|\;|\(|\)|\&|\+]~",$post['title']); 
Jan

Re: Error message on the top of the page when wrong captcha

Posted: 01 Nov 2010, 22:44
by Jan
Changed in 1.4.3

Jan

Re: Error message on the top of the page when wrong captcha

Posted: 12 Nov 2010, 23:48
by Jan
Hi, the line 219 was fixed (in the same version).

Thank you for the info.

Jan