Cannot get into User's catergory Cannot get into User's catergory
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Cannot get into User's catergory

Started by dreams83, July 10, 2007, 05:57:03 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

dreams83

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:

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 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

Joachim Müller

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

dreams83

okay i have uncommented: 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

The selected album/file does not exist ! 

Joachim Müller

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

dreams83

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.

Joachim Müller

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.

dreams83

I cannot get versioncheck.php to run. Probably because of my host. I guess i will have to just comment out the die function   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