Advanced search  

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

Pages: [1]   Go Down

Author Topic: function.inc error on profile.php  (Read 3874 times)

0 Members and 1 Guest are viewing this topic.

Heroe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 124
    • abroadbg.com
function.inc error on profile.php
« on: January 26, 2009, 01:30:40 am »

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;

Code: [Select]
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 ;

Code: [Select]
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
 

 
Logged

Nibbler

  • Guest
Re: function.inc error on profile.php
« Reply #1 on: January 28, 2009, 09:59:21 pm »

Did you manually remove 'lastcomby' from the file?
Logged

Heroe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 124
    • abroadbg.com
Re: function.inc error on profile.php
« Reply #2 on: January 29, 2009, 02:28:36 am »

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

Nibbler

  • Guest
Re: function.inc error on profile.php
« Reply #3 on: January 29, 2009, 01:30:37 pm »

Upload a clean copy of the file.
Logged

Heroe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 124
    • abroadbg.com
Re: function.inc error on profile.php
« Reply #4 on: January 29, 2009, 02:12:45 pm »

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

Nibbler

  • Guest
Re: function.inc error on profile.php
« Reply #5 on: January 29, 2009, 02:16:35 pm »

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

Heroe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 124
    • abroadbg.com
Re: function.inc error on profile.php
« Reply #6 on: January 29, 2009, 02:24:40 pm »

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 ?

Code: [Select]
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

Code: [Select]
$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;";

Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.