forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dreams83 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:
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
-
What's the name of the album that causes an error message for you in above example?
-
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 !
-
Don't make me search around. Post what user gallery I'm suppossed to click to see the error message.
-
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.
-
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 (http://www.ehmongmusic.com/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.
-
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