Error msg Error msg
 

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

Error msg

Started by 26cmg77, May 24, 2005, 09:46:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

26cmg77

In user mode when i try to upload a file I get this error:

You dont have Permission to access this page
File: /usr/local/psa/home/vhosts/baaworld.org/httpdocs/photos/addalbum.php - Line: 25


Debug Info:

USER:
------------------
Array
(
    [ID] => 0a50462ba64c8a7a5d20e7b73c842ac6
    [am] => 0
    [liv] => Array
        (
           
  • => 7
                [1] => 6
                [2] => 12
                [3] => 11
                [4] => 13
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => anubis
        [user_password] => ********
        [user_lastvisit] => 2005-05-24 12:34:34
        [user_regdate] => 2005-05-23 11:51:30
        [user_group_list] =>
        [user_email] => anubis@baaworld.org
        [user_website] => http://www.ajlg77.net
        [user_location] => Maryland
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [disk_max] => 3072
        [disk_min] => 3072
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [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] => 3072
        [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) = '492c539c90bf1b4cdfb7b9cdd30a1f8b'
        [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 < 1116963534
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='70.16.167.17' OR ip_addr='70.16.167.17' OR user_id=1
    )

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

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

    ==========================
    Page generated in 0.135 seconds - 6 queries in 0.007 seconds - Album set :

Joachim Müller

then don't use user mode. Stay in admin mode all the time.

Tranz

Is it possible to hide the upload link if the person cannot upload? It's probably possible but would it impact performance too much?

Joachim Müller

upload button hidden when not allowed to upload should go into cpg1.5, not possible that easily for the current stable imo

26cmg77

Quote from: GauGau on May 24, 2005, 11:11:25 PM
then don't use user mode. Stay in admin mode all the time.

ok but what about the registered members? The upload doesnt work for anyone in user mode.

Tranz

The members must be in admin mode.

Joachim Müller

I recommend disabling the user mode link altogether, will stop the confusion both for you and your users.

26cmg77

well here is the thing....I leave for basic training on Wed. I was wanting it so that my members could upload pics as they wanted while Im gone but I do not want to give them admin access. I take it Im not getting any help here for my error, just a sloppy work around?

kegobeer

I will look at your site if you'd like.  PM me your FTP login/password, your MySQL login/password, control panel login/password, links to everything, and I'll see what I can do.

Anything to help out before you leave for basic.
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

Joachim Müller

disabling the "user mode link" is not a workaround. User mode is meant for the admin to see the gallery with the "eyes" of a regular user (i.e. without the admin menu and additional albums controls). It's most helpfull when creating a new theme, nothing else. You don't lose any functionality when you disable it. Your users will not be admins if you disable the "user mode" link. In the next version, the user mode link will be removed permanently for regular users, as it doesn't make sense for them.

@kego: I'm not sure what you actually want to look into, this is just a problem of 26cmg77 not fully understanding the concept that's behind coppermine, there's no actual malfunction as far as I can see.