Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Last additions  (Read 3037 times)

0 Members and 1 Guest are viewing this topic.

reallove

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Personal photo gallery
Last additions
« on: May 30, 2006, 10:32:15 pm »

Hello,
After upgrading to 1.4.6,I have this issue.
I've created a password protected album,but after I upload pictures in it,the last pics added appear in the "last additions" section even for the unregistered users. Clicking on a pic over there,points to..other pic,what it should be there,I suppose.
My gallery's URL is http://dansimiha.websun.ro ,to see.
Thanks,
« Last Edit: June 12, 2006, 12:01:46 pm by Nibbler »
Logged
Dan/reallove

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Last additions
« Reply #1 on: May 30, 2006, 11:28:39 pm »

I have a hunch that this is caused by the same problem noted in this thread.  Please try the same fix. 

Look for this line in functions.inc.php in the function get_meta_album_set($cat, &$meta_album_set):
Code: [Select]
if ($cpg_show_private_album || $USER_DATA['can_see_all_albums'] && $cat == 0) {

Add in an extra set of parentheses as shown:
Code: [Select]
<buggy code removed>
Remove $cpg_show_private_album as show:
Code: [Select]
if ($USER_DATA['can_see_all_albums'] && $cat == 0) {
Let me know if that fixes the problem.

edit: Modified code with correct fix.  Original code still contained a different but related bug.
« Last Edit: June 12, 2006, 02:05:25 pm by Paver »
Logged

reallove

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Personal photo gallery
Re: Last additions
« Reply #2 on: May 31, 2006, 08:41:31 am »

I did the little changes to that line,but the problem persists . :(
Logged
Dan/reallove

reallove

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
    • Personal photo gallery
Re: Last additions
« Reply #3 on: June 12, 2006, 11:42:47 am »

Upgrading to 1.4.8 seemed to solve the issue,so maybe there was something buggy in 1.4.6 :)
Logged
Dan/reallove

Nibbler

  • Guest
Re: Last additions
« Reply #4 on: June 12, 2006, 12:01:30 pm »

As explained in the link Paver gave you.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Last additions
« Reply #5 on: June 12, 2006, 02:04:58 pm »

As Nibbler said, the link I gave has the correct fix.  I modified my post above to reflect the correct fix as well. 
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 16 queries.