Users do not have permission to upload - no matter what Users do not have permission to upload - no matter what
 

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

Users do not have permission to upload - no matter what

Started by avedianj, February 11, 2005, 07:17:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

avedianj

This is very frustrating. All the settings have been gone over a hundred times, everything should be set up to allow un-registered users to view albums, and registered (non-admin) users to upload, comment, and rate. However it still doesn't work, here is the debug report, can someone help me fix this? ???

USER:
------------------
Array
(
   [ID] => b63e2fdd524f6aff0f22ebbb39956623
   [am] => 1
   [liv] => Array
       (
           
  • => 10
               [1] => 16
               [2] => 17
               [3] => 6
               [4] => 12
           )

       [uid] => 2
       [theme] => rainy_day
       [lap] => 1
       [sort] => da
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
       [user_id] => 1
       [user_group] => 1
       [user_active] => YES
       [user_name] => avedianj
       [user_password] => ********
       [user_lastvisit] => 2005-02-11 10:04:35
       [user_regdate] => 2005-02-03 20:22:00
       [user_group_list] =>
       [user_email] =>
       [user_website] =>
       [user_location] => East Lansing, Michigan, USA
       [user_interests] => My beautiful wife Arevik, Anything and Everything Armenian, Studies of the Potential for Armenian Revolution, Genealogy, Small Animals (rodent family - ie. Squirrels, Guinea Pigs)
       [user_occupation] => Student, Business owner
       [user_actkey] =>
       [disk_max] => 0
       [disk_min] => 0
       [can_rate_pictures] => 1
       [can_send_ecards] => 1
       [ufc_max] => 3
       [ufc_min] => 3
       [custom_user_upload] => 0
       [num_file_upload] => 10
       [num_URI_upload] => 2
       [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] => 3
       [group_quota] => 0
       [can_see_all_albums] => 1
       [group_id] => 1
       [groups] => Array
           (
               [1] => 1
           )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
       [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '8eb3dc15fe92281acd7c81392796023d'
       [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 cpg132_usergroups WHERE group_id in (1)
       [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
       [4] => DELETE FROM cpg132_banned WHERE expiry < 1108145269
       [5] => SELECT * FROM cpg132_banned WHERE ip_addr='35.11.32.60' OR ip_addr='35.11.32.60' OR user_id=1
    )

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

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

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.6 - OK
    ------------------
    mySQL version: 4.1.7
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.22 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    JIS-mapped Japanese Font Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.18
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient  
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.125 seconds - 6 queries in 0.003 seconds - Album set :

Nibbler

Post how you have the settings at the moment, a link to your site and test user account. Also your php needs updating.

avedianj

Well, I thought what I sent above "debug" was what you needed to view settings. I have allowed in config registered users and admin to upload files. the album ports and others as mentioned in FAQ are set to 755. I don't know what else you want to know other than what is in "debug". I did set up account for you to use in your test:

username: test
password: test

the website is:
http://photos.armenianancestry.com

Please let me know if there are any settings you want to know. Or, if you need admin access, give me your e-mail and I will send you another username and password.

Thanks

avedianj

One thing I think needs to be mentioned. I know that a registered user can create his/her own album which he may upload to. This is not the issue. To my knowledge, a registered user also has the ability to upload (if allowed by admin, which is the case) to the public album(s). This is what I would like to enable.

kegobeer

In your public album, you have Visitors can upload files set to yes?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

avedianj

Keg,
Admin and Registered users are both set to "yes" (can upload files). I think registered is what you meant by visitors. Anyway, all the others are set to know (banned, anon) Any ideas?

???

Nibbler

In the actual album properties page for the album you wish to allow uploads to, have you set it to allow uploads ? (option: Visitors can upload files).

avedianj

Well, nibb I have done that too. The only wierd thing is that it is unclear how to make this setting. From FAQ on coppermines website I understood that I was supposed to type the word "yes" (obviously without the quotation marks) in the form line. I have tried this and after entering "yes" I click the button to update the album. Now, when I click that button it brings the page back without the word typed there. It does not show the word "yes" at all. So, I don't know if that means the setting isn't made or it just isn't visable. It then takes me to a page that says:

"No update needed - File: /usr/local/psa/home/vhosts/armenianancestry.com/httpdocs/photos.armenianancestry.com/db_input.php - Line: 182 "

In debug on this page it says:

USER:
------------------
Array
(
    [ID] => b63e2fdd524f6aff0f22ebbb39956623
    [am] => 1
    [liv] => Array
        (
           
  • => 10
                [1] => 16
                [2] => 17
                [3] => 6
                [4] => 12
            )

        [uid] => 2
        [theme] => rainy_day
        [lap] => 1
        [sort] => da
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => avedianj
        [user_password] => ********
        [user_lastvisit] => 2005-02-11 16:57:04
        [user_regdate] => 2005-02-03 20:22:00
        [user_group_list] =>
        [user_email] =>
        [user_website] =>
        [user_location] => East Lansing, Michigan, USA
        [user_interests] => My beautiful wife Arevik, Anything and Everything Armenian, Studies of the Potential for Armenian Revolution, Genealogy, Small Animals (rodent family - ie. Squirrels, Guinea Pigs)
        [user_occupation] => Student, Business owner
        [user_actkey] =>
        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 10
        [num_URI_upload] => 2
        [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] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '8eb3dc15fe92281acd7c81392796023d'
        [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 cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1108254176
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='35.11.32.60' OR ip_addr='35.11.32.60' OR user_id=1
        [6] => UPDATE cpg132_albums SET title='Avedian Documents', description='', category='0', thumb='0', uploads='NO', comments='NO', votes='NO', visibility='0' WHERE aid='6' LIMIT 1
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [event] => album_update
        [aid] => 6
        [title] => Avedian Documents
        [description] =>
        [thumb] => 0
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.6 - OK
    ------------------
    mySQL version: 4.1.7
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.22 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    JIS-mapped Japanese Font Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.18
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.1.4
    Linked Version 1.1.4
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | Off | Off
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear | .:/php/includes:/usr/local/share/pear:/usr/local/lib/php/pear
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.127 seconds - 7 queries in 0.006 seconds - Album set :


    ???  ???  ???  ???  ???

    So, what do you think I should do?

Nibbler

It should be radio buttons, if there is just a box there then you may be using a modified version of coppermine provided by your host. You should download the package from here, and replace all files on your server with those from the package, retaining only your config.inc.php and anycontent.php if you have modified it. Then you should get the proper options displayed.