Regular Users unable to upload Regular Users unable to upload
 

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

Regular Users unable to upload

Started by angry, October 07, 2005, 04:23:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

angry

Ive been at this for hours now (10 to be precise), firstly I installed coppermine as it came with my webhost, tested it out, worled fine when I was logged in as the admin, changed over to a regular user, and I cuddnt upload any images. Did a search for help, followed intructions on what I cud find, again didnt work, un-installed, re-installed (about 20 times), started to get really angry, deleted again, downloaded the software and installed it manually, thinking that might help, but it seems it just doesnt want to woek, no matter what I do, people can't upload unless they are admin. Can anyone help?
Thx in advance.

==================================

USER:
------------------
Array
(
    [ID] => 45f93d5f1b3bda38e029f29fd1c8d6fb
    [am] => 0
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => SoulessTigress
    [user_password] => ********
    [user_lastvisit] => 2005-10-07 02:44:09
    [user_regdate] => 2005-10-07 02:43:29
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 5
    [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] => 0
    [group_quota] => 1024
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg135_filetypes;
        [1] => SELECT * FROM cpg135_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '43cdd4c762a5dd09f0003a280253543b'
        [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 cpg135_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg135_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg135_banned WHERE expiry < '2005-10-07 03:10:32'
        [5] => SELECT * FROM cpg135_banned WHERE ip_addr='84.9.165.181' OR ip_addr='84.9.165.181' OR user_id=1
        [6] => SELECT aid, title FROM cpg135_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (1)) ORDER BY title
        [7] => SELECT aid, title FROM cpg135_albums WHERE category='10001' ORDER BY title
    )

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

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

    ==========================
    Page generated in 0.051 seconds - 8 queries in 0.005 seconds - Album set :

Nibbler

Check you have allowed uploads for registered users in the groups page. Posting a link and test user account would be helpful.

angry

Uploads are allowed for registered users. Ive checked, double checked, and triple checked everything, and cant see where or what Im doing wrong, ive re-installed that many times now, I don't know where I am lol, and Im about to rip my hair out.

Abbas Ali

As Nibbler said please post a link and  test user account info.

Also posting the error message which the user gets while uploading will help.
Chief Geek at Ranium Systems

angry

http://dropdadrama.co.uk/epaints/cpg135

Not quite sure what u mean by test user info, if you mean for me to set up an account to test it out: username: test
password: testing

The error I get is:

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

File: /home/dropdad/public_html/epaints/cpg135/upload.php - Line: 845

Nibbler

Ok, now post a screenshot of the album properties of the album you have created showing that 'Visitors can upload files' is set to 'YES'.

angry


By "visitors" do you mean registered users or anonymous users?

angry

Ohhh wait nevermind, found it, hold on.
Never saw this part before *slaps forehead*

angry


Ahhhhhh, Ok it works now, ty ty ty ty ty ty ty *is happy again now*