I'm running Drupal 4.7.x and the latest Acidfree module. Acidfree seems to work well except if you want to switch to another photo in the album while viewing a single image. See this page for an example:

http://palmettopaddlers.org/node/1759

If you look at the URLs for 1, 2, ... next, last, they don't point to the corresponding node of the target image; instead they have the URL of the node of the parent album with ?page=page=0,x, where x is a number that varies.

Is this an Acidfree problem or something with my Drupal configuration?

BTW, I posted this problem as a support query in the forum a couple weeks ago and didn't receive any suggestions: http://drupal.org/node/67071

Any help will be appreciated!

Comments

Mike Boone’s picture

Anyone else seeing this? Perhaps my install of Drupal is messed up somehow.

Anyway, I came up with a crude fix inside function acidfree_pager_creator:

    // Get pager per Drupal
    $pager = theme('pager', NULL, 1, ELEMENT_PAGER);
    $pager=str_replace('page%3D0%2C','0,',$pager); // here's the line I added
    $_GET['q'] = $q;

The line I added replaces the bad part of the URL in the pager string. Then it can successfully be passed onto the preg_replace_callback later on.

This corrects the problem for me, but it's ugly. Any suggestions for a real solution would be appeciated.

vhmauery’s picture

Status: Active » Fixed

I just made some pager fixes and it seems to work fine for me. See if the latest (try in 12+ hours) tarball fixes the problem. I just committed the changes to CVS, so you can check them out there too. Either in the HEAD branch or 4-7 branch.

vhmauery’s picture

Status: Fixed » Closed (fixed)