forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: udgang99 on May 30, 2006, 02:31:02 pm

Title: Add To Favorites.... - Album Doesn't Exist
Post by: udgang99 on May 30, 2006, 02:31:02 pm
Thank from me too - I finally found the "add to favorites" (after following jb "tutorial") ...
BUT, when I hit "add", I'm told that the chosen album/file dosn't excist...!!!     Whaaat... ???

www,udgang99.dk/galleri99
test1 / test


*** update***
Okay - this is odd. It DOES keep saying that the chosen album/file dosn't excist - but it turns out it DOES save the picture in "my favorites" anyway. Hmmmm ... ???
Title: Re: Add To Favorites.... - Album Doesn't Exist
Post by: Paver on May 31, 2006, 12:36:30 am
I split this off since it's not related to the original thread (http://forum.coppermine-gallery.net/index.php?topic=29713.0) you posted on.  Unless you are sure your issue is the same, you should start a new thread for a support issue, and reference other relevant threads in your post.

It's good that you browsed/searched for a relevant thread, but if you had searched for "favorites album exist", you would have found the following thread:  I believe you are having the same issue as this thread (http://forum.coppermine-gallery.net/index.php?topic=31124.0).

Try the fix from there, which is to add to addfav.php the following lines after the first line shown below:
Code: [Select]
$header_location = (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) ? 'Refresh: 0; URL=' : 'Location: ';
// MOD BEGIN
$ref .= '&cat='.$_GET['cat'].'&pos='.$_GET['pos'];
// MOD END
header($header_location . $ref);
Title: Re: Add To Favorites.... - Album Doesn't Exist
Post by: udgang99 on June 01, 2006, 08:14:18 pm
YES !!!   
Thank you very much - it works perfectly!!!   :)