function.inc error on profile.php function.inc error on profile.php
 

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

function.inc error on profile.php

Started by Heroe, January 26, 2009, 01:30:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Heroe

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



Nibbler

Did you manually remove 'lastcomby' from the file?

Heroe

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

Nibbler


Heroe


Nibbler

You probably replaced both lastcom and lastcomby with the new code instead of just lastcom.

Heroe

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