I need help to fix ths problem I need help to fix ths problem
 

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 need help to fix ths problem

Started by Kjellko, February 26, 2006, 12:34:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kjellko

I got this error when i try to upload och picture. it works in admin mode not in usermod.
I can upload if I made my own album not in the premade album.

---
Sorry there is no album where you are allowed to upload files

File: /hsphere/local/home/cirrus/melin.web.surftown.se/cpg/upload.php - Line: 874
-----

this is the debug info.
------
USER:
------------------
Array
(
    [ID] => 4e19578e4eb2110c548b5692043a6c41
    [am] => 1
    [lang] => english_gb
    [uid] => 2
    [liv] => Array
        (
           
  • => 3
                [1] => 1
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 2
        [user_name] => tester
        [groups] => Array
            (
               
  • => 2
            )

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

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.002s)
        [1] => select * from cpg143_plugins order by priority asc; (0.002s)
        [2] => delete from `cirrus_kjell`.cpg143_sessions where time<1140949770 and remember=0; (0.001s)
        [3] => delete from `cirrus_kjell`.cpg143_sessions where time<1139743770; (0s)
        [4] => select user_id from `cirrus_kjell`.cpg143_sessions where session_id=md5("6661f8aa143a494f2544fe74e8680f8eabbce867d39d3d0aafbc8d1e23996a0d"); (0s)
        [5] => select user_id as id, user_password as password from `cirrus_kjell`.cpg143_users where user_id=2 (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 `cirrus_kjell`.cpg143_users AS u INNER JOIN `cirrus_kjell`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0s)
        [7] => SELECT user_group_list FROM `cirrus_kjell`.cpg143_users AS u WHERE user_id='2' 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 cpg143_usergroups WHERE group_id in (2) (0.001s)
        [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 2 (0s)
        [10] => update `cirrus_kjell`.cpg143_sessions set time='1140953370' where session_id=md5('6661f8aa143a494f2544fe74e8680f8eabbce867d39d3d0aafbc8d1e23996a0d'); (0s)
        [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 2 (0s)
        [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-02-26 11:29:30' (0s)
        [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='213.100.103.214' OR ip_addr='213.100.103.214' OR user_id=2) AND brute_force=0 (0.001s)
        [14] => SELECT aid FROM cpg143_albums WHERE visibility != '0' AND visibility !='10002' AND visibility NOT IN (2) (0s)
        [15] => SELECT aid FROM cpg143_albums (0s)
        [16] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = ''  ORDER BY pos (0s)
        [17] => SELECT aid FROM cpg143_albums as a WHERE category>=10000 (0s)
        [18] => SELECT count(*) FROM cpg143_pictures as p, cpg143_albums as a WHERE p.aid = a.aid AND category >= 10000 (0s)
        [19] => SELECT cid, name, description, thumb FROM cpg143_categories WHERE parent = '1'  ORDER BY pos (0s)
        [20] => SELECT aid FROM cpg143_albums as a WHERE category = '0' (0s)
        [21] => SELECT count(*) FROM cpg143_albums as a WHERE 1 (0s)
        [22] => SELECT count(*) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0s)
        [23] => SELECT count(*) FROM cpg143_comments as c LEFT JOIN cpg143_pictures as p ON c.pid=p.pid LEFT JOIN cpg143_albums as a ON a.aid=p.aid WHERE 1 (0s)
        [24] => SELECT count(*) FROM cpg143_categories WHERE 1 (0s)
        [25] => SELECT sum(hits) FROM cpg143_pictures as p LEFT JOIN cpg143_albums as a ON p.aid=a.aid WHERE 1 (0s)
        [26] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0s)
        [27] => SELECT count(*) FROM cpg143_albums as a WHERE category = '0' (0s)
        [28] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg143_albums as a LEFT JOIN cpg143_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,1 (0s)
        [29] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg143_albums AS a  LEFT JOIN cpg143_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1)GROUP BY a.aid (0s)
        [30] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES' AND aid IN (1)  (0s)
        [31] => SELECT * FROM cpg143_pictures WHERE approved = 'YES' AND aid IN (1)  ORDER BY RAND() LIMIT 8 (0.001s)
        [32] => SELECT COUNT(*) from cpg143_pictures WHERE approved = 'YES' AND aid IN (1)  (0s)
        [33] => SELECT * FROM cpg143_pictures WHERE approved = 'YES' AND aid IN (1)  ORDER BY pid DESC  LIMIT 0 ,8 (0.001s)
    )

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

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

    ==========================
    Page generated in 0.393 seconds - 34 queries in 0.009 seconds - Album set : ; Meta set: AND aid IN (1) ;


    I made a test account at this adress.

    http://melin.web.surftown.se/cpg/

    Username: tester
    Password: test

Joachim Müller


Kjellko

As a user it works if you make a album.
I want my user to put there pictures in
premade albums. Not only in User galleries .

you can login and try to put a picture, in the album called Elitserien.
That want work.


Kjellko