Page 1 of 2

pagination doest work right in the gallery

Posted: 12 Jun 2009, 12:51
by wishwarriorx
Example page: http://streetfighterx.org/fighters-gall ... Akuma.html

This gallery has many images if set to a limit of 20 for example it says i should have 6 pages.

If i click next it takes me to page 2 (page 1 in the url), this is fine and it shows me the next 20 images.
I click next again but this time instead of taking me to page the 3rd page of images (i would image page 2 in the url) it just reloads the page again and the same images for page 2 show. if i skip a head and click (4) then i get the 3rd page. if i try to click (5) i still only get page 3. in otherwards the pagination is all screwy.

the thing is page 3 and 5 dont work so of the 105 images in the gallery only 60 show.
of the 6 links for the pagination link 3 and link 5 dont work link 3 points to link 2 and link 5 points to link 4.

so question is how do i fix this. this used to work. until i upgraded to the latest version. 2.2.4

Re: pagination doest work right in the gallery

Posted: 18 Jun 2009, 20:43
by Jan
Hi, try to disable your SEF method
Links on your site seems like there are not correctly created.

Jan

Re: pagination doest work right in the gallery

Posted: 18 Jun 2009, 23:05
by wishwarriorx
well that sort of worked after removing sef i now have no pagination.
i checked the link setting and the default setting and both show pagination to show

i have 4 links with custom setting for the galleries all have pagination.
the default also shows pagination?
cache has been cleared

any idea's

Re: pagination doest work right in the gallery

Posted: 19 Jun 2009, 09:07
by wishwarriorx
ok i think i found the problem.

At first i thought it was just joomla SEF that caused the problem but it appears to be ANY sef including sh404sef. Which just wont work for me my site relies on sef in order to have a working SEO website. without it my site ranking hits the floor.

I am guessing this started after version 1.2.4 so what changed that caused phocagallery to break when sef is being used. Is there a workaround. as i tried to remove the gallery from being sef'ed in sh404 but problem still continues.

I pretty good with code if you have any specific files you could point me to i can probably modify the code myself to work.

Re: pagination doest work right in the gallery

Posted: 19 Jun 2009, 17:17
by Jan
Hi, see route.php in root of front end Phoca Gallery folder.

Jan

Re: pagination doest work right in the gallery

Posted: 19 Jun 2009, 21:48
by wishwarriorx
ok thanks, jan, will take a look.

Re: pagination doest work right in the gallery

Posted: 19 Jun 2009, 22:11
by wishwarriorx
ok i found the problem in joomla, it appears that the router file in includes on like 312 was added for version 1.5.10 which runs urls using sef though urlencode() 2 times, so it adds a + but then turns around and encodes the + sign. causing a mess. so looks like phoca is fine but since you use pagination from joomla this was broken.

I submitted a patch fix request to the joomla team to see if they can find a fix for version 1.5.11 until then i will see if i can write or change the code as a workaround. however i think the easiest workaround will be to roll back the router.php file in path

root/includes/router.php to 1.5.09 as this has the original code that worked without error. then when 1.5.11 is released with the fix it can be upgraded to the new file.

note may have to roll back components\search\router.php as well for search to work correctly on a website as well. as i see a connection there to. seems when i tested with sef and a search on my site it does the same thing as phoca so defiantly a bug.

Re: pagination doest work right in the gallery

Posted: 19 Jun 2009, 22:12
by wishwarriorx
update make that version 1.5.12 as it appears 1.5.11 was already released

Re: pagination doest work right in the gallery

Posted: 19 Jun 2009, 22:39
by wishwarriorx
another note is if using sh404sef will need to update to version 1.0.20 or you will still have some minor problems.


I have tested

joomla router file 1.5.9 and search router file 1.5.9
updated sh404sef to version 1.0.20 (has some fixes to work with 1.5.11)
clear cache and try and all should work.

hope that helps anyone else who has this problem. Bug reported to Joomla, will see if this fixes the problem in 1.5.12. ( i still have to check 1.5.11 as it may have already been fixed.)

thanks for pointing me in the right direction jan.

Re: pagination doest work right in the gallery

Posted: 23 Jun 2009, 23:10
by Jan
Ok