I cant view photo before login!!! (critical error) I cant view photo before login!!! (critical error)
 

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

I cant view photo before login!!! (critical error)

Started by okoroglu, September 18, 2007, 10:42:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

okoroglu

How can i view photo before login?
Pls help me!!!
How can i do?


Error:


While executing query "INSERT INTO cpg1410_hit_stats
                          SET
                            pid = 6,
                            search_phrase = '',
                            Ip   = '81.214.147.155',
                            sdate = '1190147951',
                            referer='http%3A%2F%2Fkezbanyilmazbilek.com%2Fthumbnails.php%3Falbum%3D1',
                            browser = 'Unknown',
                            os = 'Windows'" on 0

mySQL error: Duplicate entry '0' for key 1






USER:
------------------
Array
(
    [ID] => 1af7bbd1e6abebc3434af9aa232d3403
    [am] => 1
    [lang] => turkish
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
           
  • => 3
            )

        [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] => Guests
        [can_see_all_albums] => 0
        [group_id] => 3
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.001s)
        [1] => select * from cpg1410_plugins order by priority asc; (0s)
        [2] => delete from `kezbanyi_kezbanyilmaz`.cpg1410_sessions where time<1190144350 and remember=0; (0s)
        [3] => delete from `kezbanyi_kezbanyilmaz`.cpg1410_sessions where time<1188938350; (0s)
        [4] => select user_id from `kezbanyi_kezbanyilmaz`.cpg1410_sessions where session_id=md5("cb1c5833b5fee8ca030657c183b3ee7a51b677baea1866dc196e35daa54e5227"); (0s)
        [5] => select user_id as id, user_password as password from `kezbanyi_kezbanyilmaz`.cpg1410_users where user_id=0 (0s)
        [6] => 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 cpg1410_usergroups WHERE group_id in (3) (0s)
        [7] => SELECT group_name FROM  cpg1410_usergroups WHERE group_id= 3 (0s)
        [8] => update `kezbanyi_kezbanyilmaz`.cpg1410_sessions set time='1190147950' where session_id=md5('cb1c5833b5fee8ca030657c183b3ee7a51b677baea1866dc196e35daa54e5227'); (0s)
        [9] => DELETE FROM cpg1410_banned WHERE expiry < '2007-09-18 20:38:48' (0s)
        [10] => SELECT * FROM cpg1410_banned WHERE (ip_addr='81.214.147.155' OR ip_addr='81.214.147.155' OR user_id=0) AND brute_force=0 (0s)
        [11] => SELECT aid FROM cpg1410_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
        [12] => SELECT aid FROM cpg1410_albums (0s)
        [13] => SELECT title,keyword from cpg1410_albums WHERE aid='1' (0s)
        [14] => SELECT COUNT(*) from cpg1410_pictures WHERE ((aid='1'  ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12)  (0s)
        [15] => SELECT * from cpg1410_pictures WHERE ((aid='1'  ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12)  ORDER BY filename ASC  LIMIT 0 ,1 (0.001s)
        [16] => SELECT title, comments, votes, category, aid FROM cpg1410_albums WHERE aid='1' LIMIT 1 (0s)
        [17] => SELECT name, parent FROM cpg1410_categories WHERE cid = '2' (0s)
        [18] => UPDATE cpg1410_pictures SET hits=hits+1, lasthit_ip='81.214.147.155', mtime=CURRENT_TIMESTAMP WHERE pid='6' (0s)
        [19] => INSERT INTO cpg1410_hit_stats
                              SET
                                pid = 6,
                                search_phrase = '',
                                Ip   = '81.214.147.155',
                                sdate = '1190147951',
                                referer='http%3A%2F%2Fkezbanyilmazbilek.com%2Fthumbnails.php%3Falbum%3D1',
                                browser = 'Unknown',
                                os = 'Windows' (0.102s)
    )

    ==========================
    GET :
    ------------------
    Array
    (
        [album] => 1
        [pos] => 0
    )

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

    ==========================
    Page generated in 0.442 seconds - 20 queries in 0.104 seconds - Album set : AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12) ; Meta set: AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12) ;

Nibbler

Verify you have `sid` set to auto_increment in cpg1410_hit_stats using phpmyadmin. Alternatively disable hit stats in config.

okoroglu

in which file I must verify `sid` set to auto_increment in cpg1410_hit_stats ?
thank you already now :)

Joachim Müller

You're not supposed to edit a file. Nibbler suggested to use phpMyAdmin, which is a third party app used to modify the database directly. We can not provide help for the use of third party apps.