Problem with upload, (Error Sorry there is no album where you are allowed to...) Problem with upload, (Error Sorry there is no album where you are allowed to...)
 

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

Problem with upload, (Error Sorry there is no album where you are allowed to...)

Started by GamingLoft, July 20, 2007, 08:41:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GamingLoft

Ok, when im in admin mode upload works fine but in user mode i get this error:

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

Create / order my albums

File: /home/mysite/public_html/gallery2/upload.php - Line: 865


DEBUG INFO:
QuoteUSER:
------------------
Array
(
    [ID] => 110283f735cd6923a168787842242c87
    [am] => 0
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Sixtys
    [groups] => Array
        (
           
  • => 1
            )

        [disk_max] => 0
        [disk_min] => 0
        [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] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Administrators
        [upload_form_config] => 0
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM workinggallery_filetypes; (0s)
        [1] => select * from workinggallery_plugins order by priority asc; (0s)
        [2] => SELECT * FROM workinggallery_bridge (0s)
        [3] => SELECT u.uid, u.loginkey FROM `gaminglo_forum`.mybb_sessions AS s INNER JOIN `gaminglo_forum`.mybb_users AS u ON u.uid = s.uid WHERE sid='6f4fcd36991babab4797efddfda19d27' AND ip='216.59.229.85' (0s)
        [4] => SELECT u.uid AS id, u.username AS username, u.loginkey AS password, u.usergroup+100 AS group_id FROM `gaminglo_forum`.mybb_users AS u INNER JOIN `gaminglo_forum`.mybb_usergroups AS g ON u.usergroup=g.gid WHERE u.uid='1' (0s)
        [5] => 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 workinggallery_usergroups WHERE group_id in (1) (0s)
        [6] => SELECT group_name FROM  workinggallery_usergroups WHERE group_id= 1 (0s)
        [7] => SELECT user_favpics FROM workinggallery_favpics WHERE user_id = 1 (0s)
        [8] => DELETE FROM workinggallery_banned WHERE expiry < '2007-07-20 06:31:42' (0s)
        [9] => SELECT * FROM workinggallery_banned WHERE (ip_addr='216.59.229.85' OR ip_addr='216.59.229.85' OR user_id=1) AND brute_force=0 (0s)
        [10] => SELECT aid, title FROM workinggallery_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (1)) ORDER BY title (0s)
        [11] => SELECT aid, title FROM workinggallery_albums WHERE category='10001' ORDER BY title (0s)
    )

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

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

    ==========================
    Page generated in 0.068 seconds - 12 queries in 0 seconds - Album set : ; Meta set: ;


Joachim Müller

Nobody suggested that you tampered with files. What you're experiencing is expected behaviour. Either allow your non-admin users to have personal galleries or allow your user to upload to public albums on coppermine's groups page and then specify what albums they are suppossed to upload to (using the album properties dialog). This is being explained in the documentation and in countless postings as well, as there are a lot of users who ignore board rules (that say you have to read the documentation before being allowed to post) and post their question right away.
In the future, don't post debug_output unless requested.

GamingLoft

i read your one pinned thread on the uploads problem and i followed all those steps, but i have no idea how to set album properties.

Joachim Müller

Quote from: GamingLoft on July 20, 2007, 09:13:22 AMi followed all those steps
No, you haven't. Read more carefully.

Quote from: GamingLoft on July 20, 2007, 09:13:22 AMbut i have no idea how to set album properties.
Then do as I suggested and RTFM.

GamingLoft

hah, i found album properties, its right beside the album you click properties, wow was that stupid, thanks a lot. its working fine now.

GamingLoft