first time user first time user
 

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

first time user

Started by madcow, April 19, 2005, 12:50:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

madcow

ignore this first post or can this post be deleted

madcow

i found the steps but this error came up

Fatal error :
There was an error while processing a database query

Nibbler

Enable debug mode and post the actual sql error message. Don't edit your posts to make them useless.

madcow

how do i enable debug mode? i cant get on any pages of the gallery

Nibbler

Disable the integration by re-commenting the line in init.inc.php

madcow

when i do that there is no error and the gallery works fine but then the gallery isnt integrated

Nibbler

Re-enable the bridge, keeping debug mode on.

madcow

what do you mean i have not changed the bridge but i have recommented the init.inc.php is that what you want and thats what makes no error

madcow

the bridge was changed originally what i am saying is i havnt re edited it as it is the way i was told to make it

donnoman

@madcow

As I understand it:
When you enable bridging your gallery doesn't work properly.
When you disable bridging your gallery works again but is unbridged (thats to be expected, but it will allow you to get in to change the config)

What you should do when your gallery is working is login as an admin, go to the config page

at the bottom under "Miscellaneous settings " set "Enable debug mode" to "yes:everyone"
set "Display notices in debug mode" to yes
apply the settings
verify your gallery still works in standalone mode.
re-edit init.inc.php to enable bridging.
Try to login.
copy the debug output and notices and paste them into this thread.

madcow

While executing query "SELECT id as user_id, name as user_name, mgroup FROM `madcow_`.ibf_members WHERE id='1' AND password='e5b6b63efd616b81d8d38ddc194433b6'" on 0

mySQL error: Unknown column 'password' in 'where clause'

that was the error. i never knew how to get debug mode working

madcow

this is the debug info

USER:
------------------
Array
(
    [ID] => 3a3dbbef30f29442ffa35e3e8139264c
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Anonymous
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 3
    [groups] => Array
        (
           
  • => 3
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='0'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '*'
        [2] => 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 cpg132_usergroups WHERE group_id in (3)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 3
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1113977612
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='211.28.75.184' OR ip_addr='211.28.75.184' OR user_id=0
        [6] => SELECT aid FROM cpg132_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3)
        [7] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
        [8] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
        [9] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
        [10] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos
        [11] => SELECT aid FROM cpg132_albums as a WHERE category = '0'
        [12] => SELECT count(*) FROM cpg132_albums as a WHERE 1
        [13] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
        [14] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
        [15] => SELECT count(*) FROM cpg132_categories WHERE 1
        [16] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1
        [17] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0'
        [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg132_albums as a LEFT JOIN cpg132_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1
        [19] => SELECT aid, count(pid) as pic_count, max(pid) as last_pid, max(ctime) as last_upload FROM cpg132_pictures WHERE aid IN (1) AND approved = 'YES' GROUP BY aid
        [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg132_pictures WHERE pid='1'
        [21] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
        [22] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
        [23] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
        [24] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

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

    ==========================
    Page generated in 0.057 seconds - 25 queries in 0.006 seconds - Album set :


    and at the top of the page it says this

    Notice: Undefined index: offline in /home/madcow/public_html/forums/cpg132/include/init.inc.php on line 381

Nibbler

Please search the board for your error message.

Joachim Müller

Quote from: madcow on April 19, 2005, 12:50:32 PM
ignore this first post or can this post be deleted
We don't delete threads, as the whole point of a support board is that your postings might be helpful to others as well. By editing your first posting and removing it's contents the whole thread becomes useless >:(. This is very selfish behaviour.

Joachim