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] 2   Go Down

Author Topic: Getting "The selected album/file does not exist !" error  (Read 12575 times)

0 Members and 1 Guest are viewing this topic.

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Getting "The selected album/file does not exist !" error
« on: November 17, 2007, 05:31:22 pm »

Hi Just from today everyone on my gallery is getting the above message. The only change that has been made recently is the installation of the Stramm modpack. Have searched through the forum and the only instances I can find end up with neither user following the instructions so I hope I've done this right.

I've enabled the debug info and the full message I get when uploading a file is

The selected album/file does not exist !

File: /home/content/d/a/v/davieb/html/epv3/coppermine/include/functions.inc.php - Line: 1363


Gallery is bridged so need to access via www.davidbrennan.co.uk/epv3/simplemachinesforum

User - test2
Password - camera500
« Last Edit: November 18, 2007, 08:00:10 pm by Stramm »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Getting "The selected album/file does not exist !" error
« Reply #1 on: November 17, 2007, 05:38:30 pm »

Actual Gallery URL is http://davidbrennan.co.uk/epv3/coppermine/
Don't post the forum URL - supporters will be sent their automatically when clicking login.

I'm sure that I have seen this error before. Doesn't happen using an unmodified coppermine afaik. Maybe a modpack issue (not sure).
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #2 on: November 17, 2007, 06:19:07 pm »

I'm sure that I have seen this error before. Doesn't happen using an unmodified coppermine afaik. Maybe a modpack issue (not sure).

You possibly have. Like I said earlier on there are 2 instances of this when I used the search but neither had been answered as they hadn't followed the instructions you had set for support queries.

Do you want me to open this in the board for the modpack instead?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Getting "The selected album/file does not exist !" error
« Reply #3 on: November 17, 2007, 06:56:04 pm »

Let's wait if Stramm has something to say on this.
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #4 on: November 17, 2007, 08:11:32 pm »

Don't know if this is related or not but I just got another error when placing a comment

The selected album/file does not exist !

File: /home/content/d/a/v/davieb/html/epv3/coppermine/db_input.php - Line: 125

It was quite a long comment mind you. A shorter one went on no problem
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #5 on: November 18, 2007, 10:24:17 am »

Done a little bit more investigating one a 2nd install of coppermine and this error doesn't appear until the modpack is installed. Once it's in then the error starts.
Strangely enough I can stop it by setting the URI upload boxes to 1 or more. Files added go straight in then without the error. Only problem then is the screen that you add all the data to (title, desctription etc) gets stretched so you end up with massive gaps and scroll bars everywhere.

Hope this extra stuff helps to find a solution
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #6 on: November 18, 2007, 11:17:31 am »

Blimey finding more problems now. Screens are being stretched all over the place and getting blank screens when clicking on thumbnails.

I think I'll just return to the backed up version prior to installing the modpack
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Getting "The selected album/file does not exist !" error
« Reply #7 on: November 18, 2007, 11:58:16 am »

The stretched look of your sites isn't a problem at all. It's how IE renders the debug box. The other issue I'll have a look at. May need a few cause I do not use SMF, will need to install it again. 

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Getting "The selected album/file does not exist !" error
« Reply #8 on: November 18, 2007, 11:59:45 am »

login doesn't work

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #9 on: November 18, 2007, 12:17:09 pm »

Sorry about that, was doing some work so had the bridge disabled.

Login should be ok now
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Getting "The selected album/file does not exist !" error
« Reply #10 on: November 18, 2007, 12:41:34 pm »

k, have seen what you mean. Pictures get added to the pictures table but the mentioned error message appeares nevertheless. However I can't see any issues when commenting.

Will try to replicate that behaviour on my local install with an uptodate SMF.

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #11 on: November 18, 2007, 12:47:29 pm »

Thanks Stramm

I think the commenting thing may have just been a glitch to be honest. It worked ok when I put the second comment in
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Getting "The selected album/file does not exist !" error
« Reply #12 on: November 18, 2007, 04:24:01 pm »

I couldn't replicate your issues on my local install (win and nix[Suse] CPG 1.4.14, AMF 1.1.4). When trying again to upload on your site, it wasn't possible anymore. This time the pictures weren't added to the db as before.
I suspect your additional modifications to be the culprit (You are currently using xx MB (xx%) of your 50 MB of storage.)

It's not possible for me to search for issues if you've modified the code yourself, too.

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #13 on: November 18, 2007, 04:31:24 pm »

So it basically boils down to either having a usage warning showing or having the modpack installed, but not both.

Ah well, back to the drawing board I go. Thought Coppermine was going to be the answer to my problems  :'(

Thanks for your time
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Getting "The selected album/file does not exist !" error
« Reply #14 on: November 18, 2007, 05:40:25 pm »

Both is possible if done properly. Stramm suggested that you have a flaw in your custom coding. Subsequently, turn it off (by undoing your changes). Check if uploading then works as expected. If true, then your customization is to blame. If this is the case, it's time to look into your customization and make it work properly.
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #15 on: November 18, 2007, 06:24:45 pm »

Only problem there is the only customisation I've done, other than that which is possible via the config menu, is changing the wording in the anycontent.php file (which I've switched back and tried again, still no change). Considering it was working fine until I put the Stramm modpack in it looks like I'll have to go without those extra bits, as knowing how much space members have is more important to them than getting an e-mail about a comment.
Logged

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #16 on: November 18, 2007, 06:29:43 pm »

Sorry Stramm - just realised you were testing there when I'd switched of the debug. It's back on again if you are wanting to try something else
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Getting "The selected album/file does not exist !" error
« Reply #17 on: November 18, 2007, 07:02:36 pm »

OK, I finally was able to replicate the problem. This is a modpack issue. Will move the thread therefore to the modpack board.

Till I have a fix you can set the number of file upload boxes > 1 and the issue is gone.

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Getting "The selected album/file does not exist !" error
« Reply #18 on: November 18, 2007, 07:59:04 pm »

final fix for that bug:
include/picmgmnt.inc.php.... find
Code: [Select]
    $query = "INSERT INTO {$CONFIG['TABLE_PICTURES']} (aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('{$CURRENT_PIC_DATA['aid']}', '" . addslashes($CURRENT_PIC_DATA['filepath']) . "', '" . addslashes($CURRENT_PIC_DATA['filename']) . "', '{$CURRENT_PIC_DATA['filesize']}', '{$CURRENT_PIC_DATA['total_filesize']}', '{$CURRENT_PIC_DATA['pwidth']}', '{$CURRENT_PIC_DATA['pheight']}', '" . time() . "', '{$CURRENT_PIC_DATA['owner_id']}', '{$CURRENT_PIC_DATA['owner_name']}','{$CURRENT_PIC_DATA['title']}', '{$CURRENT_PIC_DATA['caption']}', '{$CURRENT_PIC_DATA['keywords']}', '{$CURRENT_PIC_DATA['approved']}', '{$CURRENT_PIC_DATA['user1']}', '{$CURRENT_PIC_DATA['user2']}', '{$CURRENT_PIC_DATA['user3']}', '{$CURRENT_PIC_DATA['user4']}', '{$CURRENT_PIC_DATA['pic_raw_ip']}', '{$CURRENT_PIC_DATA['pic_hdr_ip']}', '{$CURRENT_PIC_DATA['position']}')";
    $result = cpg_db_query($query);

$time = time();
if ($CONFIG['enable_user_notification']){
$auto_subscribe_post = $cpg_udb->get_auto_subscribe_post($user_id);
if ($auto_subscribe_post['auto_subscribe_post']) {
$result3 = cpg_db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE ctime='".$time."' AND filename='".addslashes($filename)."'");
    if(list($pid) = mysql_fetch_row($result3)){
cpg_db_query("INSERT INTO {$CONFIG['TABLE_NOTIFY']} (user_id, picture_id) VALUES('".$user_id."' ,'".$pid."')");
}
}
}
replace with
Code: [Select]
$time = time();
if ($CONFIG['enable_user_notification']){
$auto_subscribe_post = $cpg_udb->get_auto_subscribe_post($user_id);
if ($auto_subscribe_post['auto_subscribe_post']) {
$result3 = cpg_db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE ctime='".$time."' AND filename='".addslashes($filename)."'");
    if(list($pid) = mysql_fetch_row($result3)){
cpg_db_query("INSERT INTO {$CONFIG['TABLE_NOTIFY']} (user_id, picture_id) VALUES('".$user_id."' ,'".$pid."')");
}
}
}

    $query = "INSERT INTO {$CONFIG['TABLE_PICTURES']} (aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('{$CURRENT_PIC_DATA['aid']}', '" . addslashes($CURRENT_PIC_DATA['filepath']) . "', '" . addslashes($CURRENT_PIC_DATA['filename']) . "', '{$CURRENT_PIC_DATA['filesize']}', '{$CURRENT_PIC_DATA['total_filesize']}', '{$CURRENT_PIC_DATA['pwidth']}', '{$CURRENT_PIC_DATA['pheight']}', '" . time() . "', '{$CURRENT_PIC_DATA['owner_id']}', '{$CURRENT_PIC_DATA['owner_name']}','{$CURRENT_PIC_DATA['title']}', '{$CURRENT_PIC_DATA['caption']}', '{$CURRENT_PIC_DATA['keywords']}', '{$CURRENT_PIC_DATA['approved']}', '{$CURRENT_PIC_DATA['user1']}', '{$CURRENT_PIC_DATA['user2']}', '{$CURRENT_PIC_DATA['user3']}', '{$CURRENT_PIC_DATA['user4']}', '{$CURRENT_PIC_DATA['pic_raw_ip']}', '{$CURRENT_PIC_DATA['pic_hdr_ip']}', '{$CURRENT_PIC_DATA['position']}')";
    $result = cpg_db_query($query);

so you just have to switch the two code blocks

davieb

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Getting "The selected album/file does not exist !" error
« Reply #19 on: November 18, 2007, 08:43:16 pm »

Made the change as above.

still get an error, just not the same one. It now shows

"The selected album/file does not exist ! "

Image still goes into the gallery though.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.021 seconds with 19 queries.