editpics.php: refuses to edit file attributes! major problem! editpics.php: refuses to edit file attributes! major problem!
 

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

editpics.php: refuses to edit file attributes! major problem!

Started by tchocky, September 26, 2004, 06:12:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tchocky

Right, in my Coppermine setup (1.3.2, upgraded from 1.3.1), I've only got one user- me. I batch upload images to my album for people to see, etc.

However, when I uploaded my latest album, and then tried to change the captions using the "Edit Files" page, clicking on the "Save Changes" button (or whatever its called) returns a page saying that I do not have permission to use the page! Even trying to submit the page without changing anything results in this error. Also, the admin bar is missing from the top of the page, but reappears if I load any other page.

Anyone got any ideas?

The debug output on this page is as follows:
USER:
------------------
Array
(
    [ID] => 32e180472310a9b9519f46e0a0553ba3
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [group_name] => Anonymous
    [upload_form_config] => 0
    [group_quota] => 0
    [can_see_all_albums] => 0
    [group_id] => 3
    [groups] => Array
        (
            [0] => 3
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg131_filetypes;
    [1] => SELECT * FROM cpg131_users WHERE user_id='0'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '*'
    [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 cpg131_usergroups WHERE group_id in (3)
    [3] => SELECT group_name FROM  cpg131_usergroups WHERE group_id= 3
    [4] => DELETE FROM cpg131_banned WHERE expiry < 1096171381
    [5] => SELECT * FROM cpg131_banned WHERE ip_addr='142.104.20.62' OR ip_addr='142.104.20.62' OR user_id=0
    [6] => SELECT aid FROM cpg131_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3)
)

==========================
GET :
------------------
Array
(
    [album] => 7
    [start] => 0
    [count] => 25
)

==========================
POST :
------------------
Array
(
    [count] => 25
    [pid] => Array
        (
            [0] => 128
            [1] => 129
            [2] => 130
            [3] => 131
            [4] => 133
            [5] => 132
            [6] => 135
            [7] => 134
            [8] => 138
            [9] => 136
            [10] => 137
            [11] => 139
            [12] => 141
            [13] => 140
            [14] => 143
            [15] => 142
            [16] => 144
            [17] => 145
            [18] => 147
            [19] => 146
            [20] => 148
            [21] => 149
        )

    [aid128] => 7
    [title128] =>
    [caption128] =>
    [keywords128] =>
    [user1128] =>
    [user2128] =>
    [user3128] =>
    [user4128] =>
{continues in this fashion for each page in the album! stripped it out because it made the post hideously long...}
)

==========================
Page generated in 0.423 seconds - 7 queries in 0.293 seconds - Album set :

Casper

Try clearing your cookies.

Please give a link, with test user log in (non-admin)
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here