Hi i have problem with my gallery i don't change the code today but im getting error when i try to click on "last comments" in the profiles,the error is;
The selected album/file does not exist !
File: /home/abroadbg/public_html/include/functions.inc.php - Line: 1297
The line in function.inc.php is ;
default : // Invalid meta album
cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
}
This happening only for some galleries not all.
Link to my site is http://abroadbg.com
user; test
password; 123654
Did you manually remove 'lastcomby' from the file?
I didn't remove anything Nibbler, i have the same problem before when i try to see last comment,i report the problem here http://forum.coppermine-gallery.net/index.php/topic,57390.msg281562.html#msg281562 and when i don't find any solution for the problem i just delete the line from the file,it seems to be not solution but at least i don't receive the error anymore.What to do this time i don't know ???
Upload a clean copy of the file.
I remember now !!! This is what i did i replace at with http://forum.coppermine-gallery.net/index.php/topic,35240.msg282055.html#msg282055 this is the only edit i did.
You probably replaced both lastcom and lastcomby with the new code instead of just lastcom.
Thank you Nibbler i will have a look when im back from holidays,in the topic above from my previous post some users run db query for the modification to have effect,i don't run the query do you think this is the reason for the error ?
SELECT cpg14x_comments.* FROM cpg14x_comments
LEFT JOIN cpg14x_comments t2
ON (t2.pid = cpg14x_comments.pid
AND t2.msg_date > cpg14x_comments.msg_date)
WHERE t2.pid is null
ORDER BY msg_date DESC
ore
$query_meta_album_set = str_replace( $CONFIG['TABLE_PICTURES'], "p" , $TMP_SET );
$query = "SELECT cpg14x_comments.* FROM cpg14x_comments
LEFT JOIN cpg14x_comments t2
ON (t2.pid = cpg14x_comments.pid
AND t2.msg_date > cpg14x_comments.msg_date)
WHERE t2.pid is null
ORDER BY msg_date DESC;";