Notice in file view.feed.php

Phoca Guestbook - creating guestbooks in Joomla! CMS
sdi68
Phoca Member
Phoca Member
Posts: 12
Joined: 21 Jun 2016, 17:56

Notice in file view.feed.php

Post by sdi68 »

Hello.
I use Phoca Guestbook 3.0.5 I have seen php Notice: "Undefined variable: link in .../components/com_phocaguestbook/views/guestbook/view.feed.php on line 111" / Wrong line is

Code: Select all

$item->link     = $link;	//always use link to guestbook

Can you fix this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Notice in file view.feed.php

Post by Jan »

Hi, thank you for the info, I will fix it in next version.

For now - to make a quick fix, just add this line:

Code: Select all

$link = JRoute::_(PhocaguestbookHelperRoute::getCategoryRoute($guestbooks));
cca on line 62.

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

Re: Notice in file view.feed.php

Post by Jan »

Hi, should be Ok in version 3.0.7:

https://www.phoca.cz/news/963-phoca-gue ... 7-released

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