Problem with page navigation

Hello all...
I've recently integrated a ZP install into an existing site with no problems. Everything works fine. I simply styled the ZP frontend to look like this site design.

I should mention, my level of understanding and application of html and css is very high, but my php skills are not quite as good.

I'm having some difficulty with the page navigation not working properly on the gallery index page. (btw, I'm running the latest nightly build.)

What's happening is that I have set the max numbers of albums per to 4. I currently have 12 albums (so 3 pages worth).

I do indeed see the page navigation, and when I click page 2 and/or page 3, it navigates properly to the approprate page (the path properly changes to /gallery/page/2/ or /gallery/page/3/ ).

However, for some reason once I've left the index page to page 2 or page 3, I can't go back to page 1. When I click the page 1 in the pagination, it just reloads the current page. I should mention that the previous button also doesn't go from page 2 back to page 1.

Any ideas what I should be looking for?

Comments

  • UPDATE: Just to be certain that this bug wasn't due to my custom theme integration into this existing site, I've just set the admin to each of the other stock themes and am getting the same behavior.
  • Sorry to keep posting, but I've also noticed that when I'm on 'gallery/page/2/' and I hover over the previous or the page 1 link, it is pointing toward 'gallery/page/2/. Should be obviously pointing toward 'gallery/index.php' (or 'gallery/page/1/' if it works that way).

    This seems like a bug, no?

    Any insight or suggestions on this would be greatly appreciated!

    Kind Regards,
    lvp
  • You should update to the nightly build.
  • Thanks for the reply, as stated in my first post, I had updated to last nights nightly build. Maybe I'll try tonites?

    I've found something else peculiar regarding pagination and setting the number of albums per page and number of thumbs per album in the admin.

    Under admin theme options, I had the following results:

    ALBUMS PER PAGE:

    entering 1 displays 2 albums per page
    entering 2 displays 2 albums per page
    entering 3 displays 4 albums per page
    entering 4 displays 4 albums per page
    entering 5 displays 5 albums per page

    I didn't go any further than that for albums per index page.

    I also tried setting images per page on album pages and received odd results:

    IMAGES PER PAGE:

    entering 1 displays 6 thumbs
    entering 2 displays 6 thumbs
    entering 3 displays 6 thumbs
    entering 4 displays 6 thumbs
    entering 5 displays 6 thumbs
    entering 6 displays 6 thumbs
    entering 7 displays 8 thumbs
    entering 8 displays 8 thumbs
    entering 9 displays 10 thumbs

    I didn't go any further than that for the image thumbs per album page.

    I will try tonites nightly build and cross my fingers. This is definitely buggy behavior. I'll come back with results.
  • Ok... checking back.

    So I ended up doing a fresh install using the latest nightly build. I'm using the default theme. And I configured all my admin settings for image sizes, thumb size, # of albums on index page, # of thumbs on album pages, etc. No problems there.

    I then uploaded my folders of pics (5 folders with between 8 and 15 pics in each) via FTP. Everything works a treat as it did with my last install. Gallery front end looks just fine and is functioning.

    HOWEVER, again, I'm getting the same paging problem as stated in my first post. And I'm also getting the same bug regarding setting the number of albums on the index page and the number of thumbs on the albums page. :(

    Is this a bug? Is anyone else experiencing this issue??

    Thanks in advance for any insight! :)

    Kind Regards,
    lvp
  • acrylian Administrator, Developer
    I can't sadly reproduce the pagination error yet. But regarding your images per page setting please read this: http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#20
  • Ok, well I've now installed a fresh copy of zenphoto on a different website. I'm getting the same issue as stated in my first post. :S

    I set up a clean database, uploaded the latest nightly build and uploaded a few folders of images into the album folder (which imported with no problem). Any possibility of this having to do with magic_quotes being on? These sites are (unfortunately) hosted with godaddy.

    here's a link to the latest fresh install so you can see the behavior for yourself.

    northfork-ny[dot]com/gallery/

    Since installing the latest nightly build, I do see that the pagination is indeed functioning properly on the album thumbnails pages (wasn't with my previous nightly build I tried), but still not on the index album page.

    Also, just to make you aware, the link you provided above (which I've seen developers at zen photo link to before) brings you to a brief summary of the issue and another link that is supposed to bring you to the function guide... which it doesn't, it takes you to the testimonials page. Just a heads up. :)

    In any event, I sure which I could get to the bottom of this pagination issue - considering this is being repeated on now my 3rd fresh install! :(

    Kind Regards
    lvp
  • Unfortunately I am not able to reproduce this problem. Is this the standard unmodified default theme? I doubt that magic_quotes has anythig to do with the problem.

    Also it is strange that updating to the current nightly build would make a difference as we have not changed pagination code in a while.
  • Thanks for the reply. Yes, a standard unmodified default theme. I'm at my wits end and am not sure what else to try!
  • acrylian Administrator, Developer
    I am also not able to reproduce that. But thanks for the note on the link to the functions guide. That just has been forgotten to be updated.
  • trisweb Administrator
    I have indeed fixed this bug, as I was seeing it as well. It was a simple bug, not sure why it wasn't presenting for others.
Sign In or Register to comment.