coppermine-gallery.com/forum

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
        (
           
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
, u.{$f['avatar_url']} AS avatar_url
from the queries in udb_base.inc.php. This would remove the avatar functionality.