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: Cannot get into User's catergory  (Read 2890 times)

0 Members and 1 Guest are viewing this topic.

dreams83

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 54
Cannot get into User's catergory
« on: July 10, 2007, 05:57:03 am »

for example one of the use has a bunch of album at his:

http://www.ehmongmusic.com/index.php?cat=10867

But I get a error:

The selected album/file does not exist !

debug said the error occurs at this function in the function include file:

Code: [Select]
function get_album_name($aid)
{
        global $CONFIG;
        global $lang_errors;

        $result = cpg_db_query("SELECT title,keyword from {$CONFIG['TABLE_ALBUMS']} WHERE aid='$aid'");
        $count = mysql_num_rows($result);
        if ($count > 0) {
                $row = mysql_fetch_array($result);
                return $row;
        } else {
                cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
        }
}

seems it gets to the else statement
Code: [Select]
cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);and coppermine die. So i comment out the above line and it work again. But i think there is something wrong my my database or something becuase before it wasn't like that. I think accidentally drop or empty a table somewhere when I was adding a new column to the pictures table for my need. I am hoping you girls and guy can help me find the problem.

Thank you
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Cannot get into User's catergory
« Reply #1 on: July 11, 2007, 10:41:16 am »

What's the name of the album that causes an error message for you in above example?
Logged

dreams83

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 54
Re: Cannot get into User's catergory
« Reply #2 on: July 12, 2007, 12:22:52 am »

okay i have uncommented:
Code: [Select]
cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
okay the link below is my user gallery

http://www.ehmongmusic.com/index.php?cat=1

go there you will see some users that have albums. I get the error that

Code: [Select]
The selected album/file does not exist ! 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Cannot get into User's catergory
« Reply #3 on: July 12, 2007, 08:45:42 am »

Don't make me search around. Post what user gallery I'm suppossed to click to see the error message.
Logged

dreams83

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 54
Re: Cannot get into User's catergory
« Reply #4 on: July 13, 2007, 01:24:51 am »

here is one of my user's gallery.

http://www.ehmongmusic.com/index-10867.html

I cannot get into that page. It should show the many albums that he has but it get an error instead.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Cannot get into User's catergory
« Reply #5 on: July 13, 2007, 06:48:33 am »

OK, although I haven't asked for a link, but the name of the user album ("koulee" in your case), I was able to spot it. Please do the following: temporarily turn the SEF_URLs pulgin off. Use versioncheck.php to find out if all your files are up-to-date. The reason why I'm asking you to do this is because in older versions there used to be exactly the behaviour you have, but it was fixed. Subsequently I suspect that you forgot to replace some files when you upgraded.
Logged

dreams83

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 54
Re: Cannot get into User's catergory
« Reply #6 on: July 13, 2007, 08:28:48 am »

I cannot get versioncheck.php to run. Probably because of my host. I guess i will have to just comment out the die function
Code: [Select]
  cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__); because commenting this line out will allow me to go to the user's gallery. And Hope that nothing bad happens.

Thank You
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.