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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

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

Started by The Grand Pooh-Bah, April 16, 2006, 07:28:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The Grand Pooh-Bah

Newbie here. 

I can upload as a admin but not as a registered user.  ERROR: Sorry there is no album where you are allowed to upload files  File: /home/cissell/public_html/photos/upload.php - Line: 864

I have the registered users set to: allowed to upload in both public and private albums.  I have file upload box at 1 and URI box at 0.
What am I doing wrong? 

Here is the debug message.


USER:
------------------
Array
(
    [ID] => 4b246846b7585bc3cacb5ab709c225c8
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 6
    [user_name] => xxx xxxxx
    [groups] => Array
        (
            [0] => 2
        )

    [disk_max] => 25000
    [disk_min] => 25000
    [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] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 0
    [group_quota] => 25000
    [can_see_all_albums] => 0
    [group_id] => 2
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => delete from `cissell_copp1`.cpg_sessions where time<1145160840 and remember=0; (0s)
    [3] => delete from `cissell_copp1`.cpg_sessions where time<1143954840; (0s)
    [4] => select user_id from `cissell_copp1`.cpg_sessions where session_id=md5("269f5ee30f600fbebc96b32c4adcec6e2111ca9cb0bca0818c71bd218f6e9076"); (0s)
    [5] => select user_id as id, user_password as password from `cissell_copp1`.cpg_users where user_id=3 (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 `cissell_copp1`.cpg_users AS u INNER JOIN `cissell_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='3' (0s)
    [7] => SELECT user_group_list FROM `cissell_copp1`.cpg_users AS u WHERE user_id='3' 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 cpg_usergroups WHERE group_id in (2) (0s)
    [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 2 (0s)
    [10] => update `cissell_copp1`.cpg_sessions set time='1145164440' where session_id=md5('269f5ee30f600fbebc96b32c4adcec6e2111ca9cb0bca0818c71bd218f6e9076'); (0s)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 3 (0.001s)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2006-04-15 20:14:00' (0s)
    [13] => SELECT * FROM cpg_banned WHERE (ip_addr='64.126.160.110' OR ip_addr='64.126.160.110' OR user_id=3) AND brute_force=0 (0s)
    [14] => SELECT aid FROM cpg_albums WHERE visibility != '0' AND visibility !='10003' AND visibility NOT IN (2) (0s)
    [15] => SELECT aid, title FROM cpg_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (2)) ORDER BY title (0s)
    [16] => SELECT aid, title FROM cpg_albums WHERE category='10003' ORDER BY title (0s)
    [17] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)

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

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

==========================
Page generated in 0.077 seconds - 18 queries in 0.001 seconds - Album set : ; Meta set: ;
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

allow users to upload to particular albums by settings "visitors can upload" to yes on the album's properties screen. Please read the documentation.

The Grand Pooh-Bah

#2
I don't want visitores uploading.....just registered users.

I just changed :guest" to yes "alowed to upload" and nothing changed when i tried to upload when I was signed in as a registered user.....same message. "Sorry there is no album where you are allowed to upload files"
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

is visitor is not a guest. Do as I suggested and read the docs.

The Grand Pooh-Bah

Doc is rather large.....I am disabled and it will take me a day+ to read everything.  Can you guide me to where I need to make the changes.

Thanks in Advance.
"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington

Joachim Müller

Exactly the sections of the docs that explain groups permissions and album properties, as I suggested.

The Grand Pooh-Bah

"The very atmosphere of firearms anywhere and everywhere restrains evil interference - they deserve a place of honor with all that's good." - George Washington