Error when uploading a large number of files: No permission to acces this page. Error when uploading a large number of files: No permission to acces this page.
 

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 when uploading a large number of files: No permission to acces this page.

Started by itetcboo, September 29, 2004, 10:41:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

itetcboo

Hi all. I have a fresh install (I have installed freshly over 5 times) of cpg 1.3.2, and it works fine as expected, except in 2 cases.

When I try to make a batch upload if in the folder I select there are a small number of pics (less than 60 or so) everything goes fine, but if there is a number of files more than 60 or so, I receive the error:

QuoteYou don't have permission to access this page.

File: /var/www/localhost/htdocs/coppermine/searchnew.php - Line: 25

and the debug info that appears at the bottom of the page is this one:

Quote
USER:
------------------
Array
(
   [ID] => 399f21b6932d73d180bcd4b0b0d6dcc6
   [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] => 0
   [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
       (
           
  • => 3
           )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => 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 < 1096452984
       [5] => SELECT * FROM cpg131_banned WHERE ip_addr='192.230.30.154' OR ip_addr='192.230.30.154' OR user_id=0
       [6] => SELECT aid FROM cpg131_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3)
    )

    ==========================
    GET :
    ------------------
    Array
    (
       [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
       [d0000] => 0
       [pics] => Array
           (
               
  • => i0000
               [1] => i0001
               [2] => i0002
               [3] => i0003
               [4] => i0004
               [5] => i0005
               [6] => i0006
               [7] => i0007
               [8] => i0008
               [9] => i0009
               [10] => i0010
               [11] => i0011
               [12] => i0012
               [13] => i0013
               [14] => i0014
               [15] => i0015
               [16] => i0016
               [17] => i0017
               [18] => i0018
               [19] => i0019
               [20] => i0020
               [21] => i0021
               [22] => i0022
               [23] => i0023
               [24] => i0024
               [25] => i0025
               [26] => i0026
               [27] => i0027
               [28] => i0028
               [29] => i0029
               [30] => i0030
               [31] => i0031
               [32] => i0032
               [33] => i0033
               [34] => i0034
               [35] => i0035
               [36] => i0036
               [37] => i0037
               [38] => i0038
               [39] => i0039
               [40] => i0040
               [41] => i0041
               [42] => i0042
               [43] => i0043
               [44] => i0044
               [45] => i0045
               [46] => i0046
               [47] => i0047
               [48] => i0048
               [49] => i0049
               [50] => i0050
               [51] => i0051
               [52] => i0052
               [53] => i0053
               [54] => i0054
               [55] => i0055
               [56] => i0056
               [57] => i0057
               [58] => i0058
               [59] => i0059
               [60] => i0060
               [61] => i0061
               [62] => i0062
               [63] => i0063
               [64] => i0064
               [65] => i0065
           )

       [album_lb_id_i0000] => d0000
       [picfile_i0000] => bWVub3MvRFNDMDA2MDAuSlBH
       [album_lb_id_i0001] => d0000
       [picfile_i0001] => bWVub3MvRFNDMDA2MDEuSlBH
       [album_lb_id_i0002] => d0000
       [picfile_i0002] => bWVub3MvRFNDMDA2MDIuSlBH
       [album_lb_id_i0003] => d0000
       [picfile_i0003] => bWVub3MvRFNDMDA2MDQuSlBH
       [album_lb_id_i0004] => d0000
       [picfile_i0004] => bWVub3MvRFNDMDA2MDUuSlBH
       [album_lb_id_i0005] => d0000
       [picfile_i0005] => bWVub3MvRFNDMDA2MDYuSlBH
       [album_lb_id_i0006] => d0000
       [picfile_i0006] => bWVub3MvRFNDMDA2MDcuSlBH
       [album_lb_id_i0007] => d0000
       [picfile_i0007] => bWVub3MvRFNDMDA2MDguSlBH
       [album_lb_id_i0008] => d0000
       [picfile_i0008] => bWVub3MvRFNDMDA2MDkuSlBH
       [album_lb_id_i0009] => d0000
       [picfile_i0009] => bWVub3MvRFNDMDA2MTAuSlBH
       [album_lb_id_i0010] => d0000
       [picfile_i0010] => bWVub3MvRFNDMDA2MTEuSlBH
       [album_lb_id_i0011] => d0000
       [picfile_i0011] => bWVub3MvRFNDMDA2MTIuSlBH
       [album_lb_id_i0012] => d0000
       [picfile_i0012] => bWVub3MvRFNDMDA2MTMuSlBH
       [album_lb_id_i0013] => d0000
       [picfile_i0013] => bWVub3MvRFNDMDA2MTQuSlBH
       [album_lb_id_i0014] => d0000
       [picfile_i0014] => bWVub3MvRFNDMDA2MTUuSlBH
       [album_lb_id_i0015] => d0000
       [picfile_i0015] => bWVub3MvRFNDMDA2MTYuSlBH
       [album_lb_id_i0016] => d0000
       [picfile_i0016] => bWVub3MvRFNDMDA2MTcuSlBH
       [album_lb_id_i0017] => d0000
       [picfile_i0017] => bWVub3MvRFNDMDA2MTguSlBH
       [album_lb_id_i0018] => d0000
       [picfile_i0018] => bWVub3MvRFNDMDA2MTkuSlBH
       [album_lb_id_i0019] => d0000
       [picfile_i0019] => bWVub3MvRFNDMDA2MjAuSlBH
       [album_lb_id_i0020] => d0000
       [picfile_i0020] => bWVub3MvRFNDMDA2MjEuSlBH
       [album_lb_id_i0021] => d0000
       [picfile_i0021] => bWVub3MvRFNDMDA2MjIuSlBH
       [album_lb_id_i0022] => d0000
       [picfile_i0022] => bWVub3MvRFNDMDA2MjMuSlBH
       [album_lb_id_i0023] => d0000
       [picfile_i0023] => bWVub3MvRFNDMDA2MjQuSlBH
       [album_lb_id_i0024] => d0000
       [picfile_i0024] => bWVub3MvRFNDMDA2MjUuSlBH
       [album_lb_id_i0025] => d0000
       [picfile_i0025] => bWVub3MvRFNDMDA2MjYuSlBH
       [album_lb_id_i0026] => d0000
       [picfile_i0026] => bWVub3MvRFNDMDA2MjcuSlBH
       [album_lb_id_i0027] => d0000
       [picfile_i0027] => bWVub3MvRFNDMDA2MjguSlBH
       [album_lb_id_i0028] => d0000
       [picfile_i0028] => bWVub3MvRFNDMDA2MjkuSlBH
       [album_lb_id_i0029] => d0000
       [picfile_i0029] => bWVub3MvRFNDMDA2MzAuSlBH
       [album_lb_id_i0030] => d0000
       [picfile_i0030] => bWVub3MvRFNDMDA2MzEuSlBH
       [album_lb_id_i0031] => d0000
       [picfile_i0031] => bWVub3MvRFNDMDA2MzIuSlBH
       [album_lb_id_i0032] => d0000
       [picfile_i0032] => bWVub3MvRFNDMDA2MzMuSlBH
       [album_lb_id_i0033] => d0000
       [picfile_i0033] => bWVub3MvRFNDMDA2MzQuSlBH
       [album_lb_id_i0034] => d0000
       [picfile_i0034] => bWVub3MvRFNDMDA2MzUuSlBH
       [album_lb_id_i0035] => d0000
       [picfile_i0035] => bWVub3MvRFNDMDA2MzYuSlBH
       [album_lb_id_i0036] => d0000
       [picfile_i0036] => bWVub3MvRFNDMDA2MzcuSlBH
       [album_lb_id_i0037] => d0000
       [picfile_i0037] => bWVub3MvRFNDMDA2MzguSlBH
       [album_lb_id_i0038] => d0000
       [picfile_i0038] => bWVub3MvRFNDMDA2MzkuSlBH
       [album_lb_id_i0039] => d0000
       [picfile_i0039] => bWVub3MvRFNDMDA2NDAuSlBH
       [album_lb_id_i0040] => d0000
       [picfile_i0040] => bWVub3MvRFNDMDA2NDEuSlBH
       [album_lb_id_i0041] => d0000
       [picfile_i0041] => bWVub3MvRFNDMDA2NDIuSlBH
       [album_lb_id_i0042] => d0000
       [picfile_i0042] => bWVub3MvRFNDMDA2NDMuSlBH
       [album_lb_id_i0043] => d0000
       [picfile_i0043] => bWVub3MvRFNDMDA2NDQuSlBH
       [album_lb_id_i0044] => d0000
       [picfile_i0044] => bWVub3MvRFNDMDA2NDUuSlBH
       [album_lb_id_i0045] => d0000
       [picfile_i0045] => bWVub3MvRFNDMDA2NDcuSlBH
       [album_lb_id_i0046] => d0000
       [picfile_i0046] => bWVub3MvRFNDMDA2NDguSlBH
       [album_lb_id_i0047] => d0000
       [picfile_i0047] => bWVub3MvRFNDMDA2NDkuSlBH
       [album_lb_id_i0048] => d0000
       [picfile_i0048] => bWVub3MvRFNDMDA2NTAuSlBH
       [album_lb_id_i0049] => d0000
       [picfile_i0049] => bWVub3MvRFNDMDA2NTEuSlBH
       [album_lb_id_i0050] => d0000
       [picfile_i0050] => bWVub3MvRFNDMDA2NTIuSlBH
       [album_lb_id_i0051] => d0000
       [picfile_i0051] => bWVub3MvRFNDMDA2NTMuSlBH
       [album_lb_id_i0052] => d0000
       [picfile_i0052] => bWVub3MvRFNDMDA2NTUuSlBH
       [album_lb_id_i0053] => d0000
       [picfile_i0053] => bWVub3MvRFNDMDA2NTYuSlBH
       [album_lb_id_i0054] => d0000
       [picfile_i0054] => bWVub3MvRFNDMDA2NTguSlBH
       [album_lb_id_i0055] => d0000
       [picfile_i0055] => bWVub3MvRFNDMDA2NTkuSlBH
       [album_lb_id_i0056] => d0000
       [picfile_i0056] => bWVub3MvRFNDMDA2NjAuSlBH
       [album_lb_id_i0057] => d0000
       [picfile_i0057] => bWVub3MvRFNDMDA2NjEuSlBH
       [album_lb_id_i0058] => d0000
       [picfile_i0058] => bWVub3MvRFNDMDA2NjIuSlBH
       [album_lb_id_i0059] => d0000
       [picfile_i0059] => bWVub3MvRFNDMDA2NjMuSlBH
       [album_lb_id_i0060] => d0000
       [picfile_i0060] => bWVub3MvRFNDMDA2NjQuSlBH
       [album_lb_id_i0061] => d0000
       [picfile_i0061] => bWVub3MvRFNDMDA2NjUuSlBH
       [album_lb_id_i0062] => d0000
       [picfile_i0062] => bWVub3MvRFNDMDA2NjYuSlBH
       [album_lb_id_i0063] => d0000
       [picfile_i0063] => bWVub3MvRFNDMDA2NjcuSlBH
       [album_lb_id_i0064] => d0000
       [picfile_i0064] => bWVub3MvRFNDMDA2NjguSlBH
       [album_lb_id_i0065] => d0000
       [picfile_i0065] => bWVub3MvRFNDMDA2NjkuSlBH
    )

    ==========================
    Page generated in 0.521 seconds - 7 queries in 0.22 seconds - Album set :
I have also noticed (as also seen in the debug info) that in top of page, doesn't appears the text "Logout[user]", appears "Login" even I have logged before as administrator.

If I try to do the batch upload with a less number of files it works, even if the size of pics is very much large than the other dir (In the dir with more than 60 files total size was about 15 Mb and in the other one, just with 1 files total size was more than 36 Mb).

When all works fine, I see at top of the page the "Logout[user]" text, and this is the debug info when all works fine.
Quote
USER:
------------------
Array
(
   [ID] => 399f21b6932d73d180bcd4b0b0d6dcc6
   [am] => 1
)

==========================
USER DATA:
------------------
Array
(
   [user_id] => 1
   [user_group] => 1
   [user_active] => YES
   [user_name] => victor
   [user_password] => ********
   [user_lastvisit] => 2004-09-28 20:18:03
   [user_regdate] => 2004-09-28 19:47:23
   [user_group_list] =>
   [user_email] =>
   [user_website] =>
   [user_location] =>
   [user_interests] =>
   [user_occupation] =>
   [user_actkey] =>
   [user_favpics] =>
   [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] => 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] => 0
   [can_see_all_albums] => 1
   [group_id] => 1
   [groups] => Array
       (
           [1] => 1
       )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg131_filetypes;
       [1] => SELECT * FROM cpg131_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'f75ea4b783395a49dead675dfeedd244'
       [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 (1)
       [3] => SELECT group_name FROM  cpg131_usergroups WHERE group_id= 1
       [4] => DELETE FROM cpg131_banned WHERE expiry < 1096454124
       [5] => SELECT * FROM cpg131_banned WHERE ip_addr='192.230.30.154' OR ip_addr='192.230.30.154' OR user_id=1
    )

    ==========================
    GET :
    ------------------
    Array
    (
       [insert] => 1
    )

    ==========================
    POST :
    ------------------
    Array
    (
       [d0000] => 3
       [pics] => Array
           (
               
  • => i0000
               [1] => i0001
               [2] => i0002
               [3] => i0003
               [4] => i0004
               [5] => i0005
               [6] => i0006
               [7] => i0007
               [8] => i0008
               [9] => i0009
               [10] => i0010
           )

       [album_lb_id_i0000] => d0000
       [picfile_i0000] => SXRhbGlhL0NhcmxvcyBjYW5vIC0gQWxnbyBlc3BlY2lhbCAtIHRyYXNlcmEuanBn
       [album_lb_id_i0001] => d0000
       [picfile_i0001] => SXRhbGlhL0NhcmxvcyBDYW5vIC0gRW4gZGlyZWN0byAtIHBvcnRhZGEuanBn
       [album_lb_id_i0002] => d0000
       [picfile_i0002] => SXRhbGlhL0NhcmxvcyBDYW5vIC0gTGEgY29wbGEsIG1lbW9yaWEgc2VudGltZW50YWwgLSB0cmFzZXJhLmpwZw==
       [album_lb_id_i0003] => d0000
       [picfile_i0003] => SXRhbGlhL0NhcmxvcyBDYW5vIC0gUG9ydGFkYSB2b2x1bWVuIDIgKENhamEgZmluYSkuanBn
       [album_lb_id_i0004] => d0000
       [picfile_i0004] => SXRhbGlhL0Nhcmxvc19DYW5vXy1fIEZvcm1hIGRlIFNlci10cmFzZXJhLmpwZw==
       [album_lb_id_i0005] => d0000
       [picfile_i0005] => SXRhbGlhL0phcGFuZXNlIFJpY2UgUGFwZXIuanBn
       [album_lb_id_i0006] => d0000
       [picfile_i0006] => SXRhbGlhL3BlZGlncmkuanBn
       [album_lb_id_i0007] => d0000
       [picfile_i0007] => SXRhbGlhL1JlZCBPcmlnYW1pIEZsb3dlcnMuanBn
       [album_lb_id_i0008] => d0000
       [picfile_i0008] => SXRhbGlhL1NlcGlhIE1hcmJsZSBQYXBlci5qcGc=
       [album_lb_id_i0009] => d0000
       [picfile_i0009] => SXRhbGlhL1dvb2RjaGlwIFBhcGVyLmpwZw==
       [album_lb_id_i0010] => d0000
       [picfile_i0010] => SXRhbGlhL1dyaW5rbGVkIFdvb2RjaGlwIFBhcGVyLmpwZw==
       [insert] => Insert selected files
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.8 - OK
    ------------------
    mySQL version: 4.0.20
    ------------------
    Coppermine version: 1.3.1
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.23 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    T1Lib Support enabled
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.20
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /var/run/mysqld/mysqld.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient  
    ==========================
    Module: zlib
    ------------------
    ZLib Support enabled
    Compiled Version 1.2.1
    Linked Version 1.2.1
    ==========================
    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 | .:/usr/lib/php | .:/usr/lib/php
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | no value | no value
    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 | 300 | 300
    max_input_time | 600 | 600
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.254 seconds - 6 queries in 0.006 seconds - Album set :
As you can seen I have damatically increased times of execution and set "memory_limit = 80M" in php.ini
I have cookies enabled.... and don't know what more to say....

I have no idea where to look more :(
I have made a whole search before posting but didn't find any kind of help aplicable to this case.

Thanx 4 all

itetcboo

Sorry, the other case that doesn't works fine is when I'm trying to delete a large number of files of an album.

Same occurs..