Page 1 of 1

Phoca Guestbook 3.0.2 pagination doesn't work

Posted: 03 Oct 2014, 13:24
by mmh
Hello,
I use Phoca Guestbook 3.0.2 on Joomla 3.3.3.
I created menu item "guestbook" and in that page I can view pagination but it doesn't work: when I click on page number, it only add "limitstart=[number]" to page url and refresh the same page.
See this screenshot: http://www.mmhermes.net/sharing/pagination.png
As you can see page 3 has a link in this format: [...]index.php?option=com_phocaguestbook&view=guestbook&cid=118&Itemid=151&limitstart=10
I think it would be [...]index.php?option=com_phocaguestbook&view=guestbook&cid=118&Itemid=151&limit=5&start=10
I tested it and in this way it works, but I don't know where to edit it.
Can you help me?

More info:
in other components, with same url format, pagination works correctly.

Re: Phoca Guestbook 3.0.2 pagination doesn't work

Posted: 05 Oct 2014, 00:12
by Jan
Hi, I see, the problem is that the pagination is made by Joomla! there :idea:

But if I test it with SEF enabled, it works like expected :idea:

Image

:idea:

And testing Phoca Gallery, which gets the same limitstart but it works ok without any problem there, I will do more tests :idea:

Jan

Re: Phoca Guestbook 3.0.2 pagination doesn't work

Posted: 05 Oct 2014, 00:47
by Jan
Please try to test the following.

Open the file:
components\com_phocaguestbook\models\guestbook.php

end edit (line cca 284) FROM:

Code: Select all

$start  = JRequest::getInt('start', $this->getState('list.start', 0));
		$limit  = JRequest::getInt('limit', $this->getState('list.limit', $params->get('default_pagination')));
		$this->setState('list.start', $start);
		$this->setState('list.limit', $limit);
TO:

Code: Select all

$start  = JRequest::getInt('limitstart', $this->getState('list.limitstart', 0));
		$limit  = JRequest::getInt('limit', $this->getState('list.limit', $params->get('default_pagination')));
		$this->setState('list.start', $start);
		$this->setState('list.limit', $limit);
And let me know if it works for you.

Thank you, Jan

Re: Phoca Guestbook 3.0.2 pagination doesn't work

Posted: 07 Mar 2015, 16:53
by Jan
Hi,

fixed in 3.0.3

Thank you, Jan