Registered users can not upload images to public albums Registered users can not upload images to public albums
 

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

Registered users can not upload images to public albums

Started by Marisa, April 19, 2008, 12:23:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Marisa

My registered users can not upload images it public albums, I can as admin.

Error message reads: Sorry there is no album where you are allowed to upload files

If they create a member album this is the only album they are allowed to upload to.

Group permissions set at: registered users are allowed to upload
Album properties, all set as: vistors can upload - no
ftp album properties - permissions are set at 777.

USER:
------------------
Array
(
    [ID] => aaa0f0d5c017ee7babbd9223a9059633
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 195
            [1] => 190
            [2] => 189
            [3] => 188
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 16
    [user_name] => Rattie
    [groups] => Array
        (
            [0] => 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
(
    [0] => SELECT extension, mime, content, player FROM cpg140_filetypes; (0.001s)
    [1] => select * from cpg140_plugins order by priority asc; (0s)
    [2] => delete from `j6desig_coppermine0`.cpg140_sessions where time<1208594981 and remember=0; (0.001s)
    [3] => delete from `j6desig_coppermine0`.cpg140_sessions where time<1207388981; (0s)
    [4] => select user_id from `j6desig_coppermine0`.cpg140_sessions where session_id = 'ddb23cbfa294ba32e75bb60bea151f96' (0s)
    [5] => select user_id as id, user_password as password from `j6desig_coppermine0`.cpg140_users where user_id=16 (0.001s)
    [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 `j6desig_coppermine0`.cpg140_users AS u INNER JOIN `j6desig_coppermine0`.cpg140_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='16' (0.002s)
    [7] => SELECT user_group_list FROM `j6desig_coppermine0`.cpg140_users AS u WHERE user_id='16' 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 (2) (0.001s)
    [9] => SELECT group_name FROM  cpg140_usergroups WHERE group_id= 2 (0s)
    [10] => update `j6desig_coppermine0`.cpg140_sessions set time='1208598581' where session_id = 'ddb23cbfa294ba32e75bb60bea151f96' (0s)
    [11] => SELECT user_favpics FROM cpg140_favpics WHERE user_id = 16 (0.001s)
    [12] => DELETE FROM cpg140_banned WHERE expiry < '2008-04-19 20:07:41' (0s)
    [13] => SELECT * FROM cpg140_banned WHERE (ip_addr='124.254.127.228' OR ip_addr='124.254.127.228' OR user_id=16) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg140_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (2)) ORDER BY title (0.001s)
    [15] => SELECT aid, title FROM cpg140_albums WHERE category='10016' ORDER BY title (0s)
)

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

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

==========================
Page generated in 5.057 seconds - 16 queries in 0.008 seconds - Album set : ; Meta set: ;


I dont know what else to look for.

If you require login info please advise.









Joachim Müller

What albums are they supposed to be able to upload to? The ones you (as admin) created in the public categories? If yes, do as suggested in the docs: groups control panel, set "Public albums upload" to "yes" for the group your members are in (usually "registered"). Then go to the album properties of the individual albums that your users are supposed to be able to upload to and set "visitors can upload files" to "yes". As suggested, this is being explained in the docs and has been explained countless times already on this board, so please read the docs and search the board in the future before asking questions, as we're reluctant to explain the same thing over and over. And btw: don't post debug_output unless a supporter explicitely asks for it.