forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: chula on May 23, 2008, 01:31:12 am

Title: Still getting fatal error
Post by: chula on May 23, 2008, 01:31:12 am
Okay so i thought my gallery is fine because the thumbnails are showing up on the index page. But when I clicked on the images, I got these

While executing query "SELECT c.msg_id, c.msg_author, c.msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, c.author_id, c.author_md5_id, c.msg_raw_ip, c.msg_hdr_ip, c.pid, u.avatar_url AS avatar_url FROM cpg_comments AS c LEFT JOIN `beaalonz_copp1`.cpg_users AS u ON c.author_id=u.user_id WHERE pid='3704' ORDER BY c.msg_id DESC" on Resource id #5

mySQL error: Unknown column 'u.avatar_url' in 'field list'



File: /home/beaalonz/public_html/gallery/include/functions.inc.php - Line: 248

USER:
------------------
Array
(
    [ID] => 0adfdd82156c35077c0e4d05b837893d
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
        )

    [group_quota] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [upload_form_config] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [custom_user_upload] => 0
    [disk_max] => 0
    [disk_min] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [has_admin_access] => 0
    [group_name] => Anonymous
    [can_see_all_albums] => 0
    [group_id] => 3
)

==========================
Queries:
------------------
Array
(
    [album] => lastup
    [cat] => 0
    [pos] => 0
)

==========================
POST :
------------------
Array
(
)

==========================
Page generated in 0.17 seconds - 17 queries in 0.02 seconds - Album set : AND aid IN (34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,94,95,96,97,98) ; Meta set: AND aid IN (34,35,36,37,38,39,40,41,42,43,44,45,46,47,49,50,51,52,53,54,55,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,76,77,78,79,80,81,82,83,85,86,87,88,89,90,91,92,93,94,95,96,97,98) ;

Someone help please? My gallery is www.bea-alonzo.com/gallery/index.php

Thank you
Title: Re: Still getting fatal error
Post by: Nibbler on May 23, 2008, 02:01:36 am
Modpack issues belong in the modpack section. Moving. Check the threads started by others that had the same issue.
Title: Re: Still getting fatal error
Post by: Stramm on May 23, 2008, 09:10:17 am
It's exactly what I've told you in the other thread. The avatar field isn't known cause you haven't defied that in your bridge file.
Compare to the supported bridge files and define the avatar in there.

Alternatively you could remove
Code: [Select]
, u.{$f['avatar_url']} AS avatar_urlfrom the queries in udb_base.inc.php. This would remove the avatar functionality.