Users Can not upload to public albums Users Can not upload to public albums
 

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

Users Can not upload to public albums

Started by jsogden, February 09, 2008, 09:00:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jsogden

I am new to all this, but I have read the instructions on this site under troubleshooting and still need help.  I can upload pictures just fine as the administrator, but my users cannot.  I'm also not so sure I want my users to have their own private albums, which is the only place they seem to be able to upload.  This site is not technically "live"  I have created a few test users to play with.

Here is the message my testuser gets when they select "upload file"

"Sorry there is no album where you are allowed to upload files
Create / order my albums
File: /home/jogden/public_html/CopperminePHOTOS/upload.php - Line: 865"

Here is the debugging info as requested
USER:
------------------
Array
(
    [ID] => 7285f5e240b7c3945ee960de41a85594
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 64
    [user_name] => testuser2
    [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] => 0
        [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 cpg_filetypes; (0s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => SELECT * FROM cpg_bridge (0s)
        [3] => 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)
        [4] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 2 (0s)
        [5] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 64 (0s)
        [6] => DELETE FROM cpg_banned WHERE expiry < '2008-02-09 19:36:11' (0s)
        [7] => SELECT * FROM cpg_banned WHERE (ip_addr='68.52.23.242' OR ip_addr='68.52.23.242' OR user_id=64) AND brute_force=0 (0s)
        [8] => SELECT aid FROM cpg_albums WHERE visibility != '0' AND visibility !='10064' AND visibility NOT IN (2) (0s)
        [9] => SELECT aid, title FROM cpg_albums WHERE category < 10000 AND uploads='YES' AND (visibility = '0' OR visibility IN (2)) ORDER BY title (0s)
        [10] => SELECT aid, title FROM cpg_albums WHERE category='10064' ORDER BY title (0s)
    )

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

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

    ==========================
    Page generated in 0.122 seconds - 11 queries in 0 seconds - Album set : ; Meta set: ;

    My website is:
    theartistibaker.com

    login with username: testuser3 and password: testuser3

    I searched on the 777 and 755 permissions, they make sense (scary), BUT I'm not quite sure where I'm to make these changes.  I cannot find the referenced folders.  All my "group" permissions under "user settings" seem fine.  Registered Guests are suppose to be allowed to upload to public albums.  What am I missing here?

    Thanks in advance for your help! 

jsogden

Sorry, all, I misspelled my website name:

theartisticbaker.com

jsogden

You will also want to try logging in as testuser2 with password testuser2.  I forgot that with testuser3 they can upload, BUT ONLY to a personal album.  The error messages I posted above came from testuser2.  Sorry!  I'm losing my mind now I think! 

Nibbler

Set upload permissions in album properties for at least one album. You are running 1.4.12 - update.

jsogden

Okay, I'm going to sound really dumb now because I do not know what you are referring to.......where is the album properties?  I thought I had all permissions set in the "group" button in the admin panel. 

Nibbler

Go to your index page and click the button named 'properties' next the album.

jsogden

THANK YOU SO VERY MUCH!

I am so glad this was so simple, but don't laugh........I have been trying to figure this out ALL day! 

Thanks for the quick response.