Profile Fields not displaying Profile Fields not displaying
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Profile Fields not displaying

Started by sinaluna, November 28, 2005, 04:02:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sinaluna

I have designated custom fields for user profiles on the config page.  They appear to the user when they edit thier profile.  Yet they do not display when other users view that profile.

Can anyone help with this?  Why is the information not showing up?  Thank you.

sinaluna

Maybe this will help:

Debug Info:

USER:
------------------
Array
(
    [ID] => 1f7b5baf5638d2fb2fe533bd0fa890e5
    [am] => 1
    [lang] => english
    [liv] => Array
        (
           
  • => 83
                [1] => 42
                [2] => 1
                [3] => 20
                [4] => 57
            )

        [uid] => 1
        [theme] => water_drop
        [search] => Array
            (
                [search] => blue
                [album] => search
                [newer_than] =>
                [older_than] =>
                [type] => AND
                [user1] => on
                [params] => Array
                    (
                        [user1] => on
                    )

            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => Kyndrid
        [groups] => Array
            (
               
  • => 1
            )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg140_filetypes; (0s)
        [1] => select * from cpg140_plugins order by priority asc; (0s)
        [2] => delete from `kaeleer`.cpg140_sessions where time<1133239099 and remember=0; (0s)
        [3] => delete from `kaeleer`.cpg140_sessions where time<1132033099; (0s)
        [4] => select user_id from `kaeleer`.cpg140_sessions where session_id=md5("74775a8c2b4106231585d5aee704f08fc6b9aeaba8a84d42d8e4526e39f87aff"); (0s)
        [5] => select user_id as id, user_password as password from `kaeleer`.cpg140_users where user_id=1 (0s)
        [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `kaeleer`.cpg140_users AS u INNER JOIN `kaeleer`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `kaeleer`.cpg140_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg140_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 1 (0s)
        [10] => update `kaeleer`.cpg140_sessions set time='1133242699' where session_id=md5('74775a8c2b4106231585d5aee704f08fc6b9aeaba8a84d42d8e4526e39f87aff'); (0s)
        [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg140_banned WHERE expiry < '2005-11-29 05:38:19' (0s)
        [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='68.217.227.191' OR ip_addr='68.217.227.191' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT user_name AS user_name,
                                  user_email AS user_email,
                                  UNIX_TIMESTAMP(user_regdate) AS user_regdate,
                                  '' AS user_location,
                                  '' AS user_website
                                  
                                  FROM  `kaeleer`.cpg140_users WHERE user_id = '6' (0s)
        [15] => SELECT count(*), MAX(pid) FROM cpg140_pictures AS p WHERE owner_id = '6' AND approved = 'YES'  (0s)
        [16] => SELECT count(*) FROM cpg140_albums AS p WHERE category = '10006'  (0s)
        [17] => SELECT count(*), MAX(msg_id) FROM cpg140_comments as c, cpg140_pictures as p WHERE c.pid = p.pid AND author_id = '6'  (0s)
        [18] => SELECT pid FROM cpg140_pictures WHERE owner_name = 'Sinaluna' (0.001s)
        [19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg140_pictures WHERE pid='127' (0s)
        [20] => SELECT COUNT(*) FROM cpg140_pictures WHERE approved = 'NO' (0s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [uid] => 6
    )

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.6 - OK
    ------------------
    mySQL version: 4.0.18
    ------------------
    Coppermine version: 1.4.2(stable)
    ==========================
    Module: GD
    ------------------
    GD Version: bundled (2.0.22 compatible)
    FreeType Support: 1
    FreeType Linkage: with freetype
    T1Lib Support: 1
    GIF Read Support: 1
    GIF Create Support: 1
    JPG Support: 1
    PNG Support: 1
    WBMP Support: 1
    XBM Support: 1
    JIS-mapped Japanese Font Support: 1

    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 1
    Active Links 2
    Client API version 4.0.18
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .: | .:
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.081 seconds - 21 queries in 0.001 seconds - Album set : ; Meta set: ;


    Notices:

    /profile.php
    Notice line 438: Undefined index: user_profile1
    Notice line 439: Undefined index: user_profile2
    Notice line 440: Undefined index: user_profile3
    Notice line 441: Undefined index: user_profile4
    Notice line 442: Undefined index: user_profile5
    Notice line 443: Undefined index: user_profile6

artistsinhawaii

It's the same on mine, sinaluna.

It may be a bug.  Just got to be a little more patient until someone a little more familiar with this end of the script can get around to it.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

post a link to your site for a start please.

Nibbler

I noticed why this happens earlier. I'll go fix it.

Nibbler

bridge/udb_base.inc.php

find

$sql = "SELECT {$this->field['username']} AS user_name,

change to

$sql = "SELECT *, {$this->field['username']} AS user_name,

artistsinhawaii

I would have never thought of looking in there, thanks Nibbler.

Works perfectly, now.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

sinaluna