I updated the my 2.0 beta with the updated pages for 2.1 and suddenly my paging URL outputting for the photo pages is wrong. The page numbers and >> text are outputting URLs like this:
/gallery/index.php?level=album&id=129?page=2
It should actually be:
/gallery/index.php?level=album&id=129&page=2
It's putting a ? at page=2 instead of a & symbol.
I also had an issue with the gallery paging that was displaying like this:
gallery/index.php&page=2
I had to edit the gallery.php so it would output gallery/index.php?page=2 instead, which works. Why is all my page outputting going nuts?
function generate_pagination($url, $current_page, $items_total, $items_on_page){ $output = '';
$num_pages = ceil($items_total / $items_on_page);
// if adding arguments to mod_rewritten urls, then I need ? (question mark) before the arguments // otherwise I want & $last = substr($url,-1); if ($last == "/") { //$url = substr($url,0,-1); $separator = "?"; } else { $separator = "?"; };
Very strange. I haven't been able to observe this behavior on any other 2.1 galleries. I'm thinking some code got mixed up when you uploaded the new version, maybe some files didn't get overwritten.
Some things to try: Turn on cruft-free URLs and see if that solves the problem (in options tab) Delete all your Plogger files (not the folders or pictures in the images directory) except for plog-config.php, reupload everything from the 2.1 package.
If all else fails, delete everything, drop the plogger tables from your database, and reinstall. Hopefully you didn't spend too much time setting up your gallery... only do this as a last resort.