Error message on the top of the page when wrong captcha

Phoca Guestbook - creating guestbooks in Joomla! CMS
Hasse
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Oct 2010, 11:33

Error message on the top of the page when wrong captcha

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Hasse
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Oct 2010, 11:33

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

Post by Hasse »

Hi,
Yes, PHP version 5.3.0 (latest WAMP release).

//Hans
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Changed in 1.4.3

Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, the line 219 was fixed (in the same version).

Thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply