Warning guestbook by upgrading.

Phoca Guestbook - creating guestbooks in Joomla! CMS
TopCop
Phoca Member
Phoca Member
Posts: 29
Joined: 19 Jun 2009, 16:36

Re: Warning guestbook by upgrading.

Post by TopCop »

Got the same message showing up after upgrading on my page.

When trying to submit a new entry I get this:

Warning: strstr() [function.strstr]: Empty delimiter in /XXXX/components/com_phocaguestbook/controllers/phocaguestbook.php on line 277


TopCop
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: Warning guestbook by upgrading.

Post by myrtus »

I have removed the error with the following changes in file components/com_phocaguestbook/views/phocaguestbook/view.html.php:
line 303
before:

Code: Select all

// if ($post['ip'] == trim($value)) {
after:

Code: Select all

if ($post['ip'] == trim($value)) {
line 305
before:

Code: Select all

if (strstr($post['ip'], trim($valueIp)) && strpos($post['ip'], trim($valueIp))==0) {
after:

Code: Select all

// if (strstr($post['ip'], trim($valueIp)) && strpos($post['ip'], trim($valueIp))==0) {
Myrtus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48736
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning guestbook by upgrading.

Post by Jan »

Hi, this should be solved now. Download and upgrade with the same version 1.4.1 but with date 24.5.2010

Jan
If you find Phoca extensions useful, please support the project
User avatar
myrtus
Phoca Enthusiast
Phoca Enthusiast
Posts: 74
Joined: 29 Jul 2009, 18:16
Contact:

Re: Warning guestbook by upgrading.

Post by myrtus »

Now it works correctly. Thank you very much. :twisted:
Myrtus
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48736
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning guestbook by upgrading.

Post by Jan »

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