Batch upload problem, just with certain folders/files Batch upload problem, just with certain folders/files
 

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

Batch upload problem, just with certain folders/files

Started by tukak, March 20, 2006, 12:33:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tukak

Hello everyone,
I'm trying to import some photos already uploaded by ftp. All the folders are in the albums/ directory and all of them have 777 set. Some of these folder can be processed all right, but when I click 'Insert selected files' on three of them I get an error 'You don't have permission to access this page.' and I'm logged off. I tried importing into different gallery, renaming the galleries, renaming the folders, I checked the filenames for strange characters but everything seems normal.

This is the debug info before click 'Insert selected files':

USER:
------------------
Array
(
    [ID] => 84a2ebf13668e24637be39d20d71fb75
    [am] => 1
    [lang] => czech
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => tukak
    [groups] => Array
        (
            [0] => 1
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
    [1] => select * from cpg143_plugins order by priority asc; (0.001s)
    [2] => delete from `fotky_tukak_net`.cpg143_sessions where time<1142850394 and remember=0; (0.001s)
    [3] => delete from `fotky_tukak_net`.cpg143_sessions where time<1141644394; (0s)
    [4] => select user_id from `fotky_tukak_net`.cpg143_sessions where session_id=md5("3b93f84248a18ced2e1eabdef169699df6d26340442270db93e293771d9b9820"); (0.001s)
    [5] => select user_id as id, user_password as password from `fotky_tukak_net`.cpg143_users where user_id=1 (0.001s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `fotky_tukak_net`.cpg143_users AS u INNER JOIN `fotky_tukak_net`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.004s)
    [7] => SELECT user_group_list FROM `fotky_tukak_net`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0.001s)
    [8] => 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 cpg143_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0s)
    [10] => update `fotky_tukak_net`.cpg143_sessions set time='1142853994' where session_id=md5('3b93f84248a18ced2e1eabdef169699df6d26340442270db93e293771d9b9820'); (0.001s)
    [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.551s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-03-20 12:26:35' (0.003s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='194.108.122.215' OR ip_addr='194.108.122.215' OR user_id=1) AND brute_force=0 (0.022s)
    [14] => SELECT aid, title FROM cpg143_albums WHERE 1 (0.007s)
    [15] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.006s)
    [16] => SELECT filepath, filename FROM cpg143_pictures WHERE filepath LIKE 'hochkar%' (0.005s)
    [17] => SELECT aid, title FROM cpg143_albums WHERE category = 0 (0.106s)
    [18] => SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg143_albums as a, cpg143_categories as c WHERE a.category = c.cid AND a.category < '10000' (2.998s)
    [19] => SELECT aid, CONCAT('(', user_name, ') ', a.title) AS title
                                                        FROM cpg143_albums AS a
                                                        INNER JOIN `fotky_tukak_net`.cpg143_users AS u
                                                        ON category = (10000 + 1) AND user_id = 1 ORDER BY title (0.004s)
)

==========================
GET :
------------------
Array
(
    [startdir] => hochkar
)

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

==========================
VERSION INFO :
------------------
PHP version: 5.1.2 - OK
------------------
mySQL version: 5.0.18-log
------------------
Coppermine version: 1.4.4(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.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
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /dev/null | /dev/null
safe_mode_gid | Off | Off
safe_mode_include_dir | . | .
safe_mode_exec_dir | /dev/null | /dev/null
sql.safe_mode | Off | Off
disable_functions | leak, pfsockopen, shell_exec, syslog, proc_open, glob | leak, pfsockopen, shell_exec, syslog, proc_open, glob
file_uploads | On | On
include_path | . | .
open_basedir | /DISK2/WWW:/DISK3/WWW:/DISK4/WWW:/DISK2/TMP | /DISK2/WWW:/DISK3/WWW:/DISK4/WWW:/DISK2/TMP
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | apache@www3.pipni.cz | apache@www3.pipni.cz
sendmail_path | /usr/exim/bin/exim -t -i -f apache@www3.pipni.cz | /usr/exim/bin/exim -t -i -f apache@www3.pipni.cz
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 5 | 5
max_input_time | 5 | 5
upload_max_filesize | 8M | 8M
post_max_size | 8M | 8M
==========================
Page generated in 4.175 seconds - 20 queries in 3.714 seconds - Album set : ; Meta set: ;


and this is debug after clicking (and getting logged off):


USER:
------------------
Array
(
    [ID] => c7da054567d74554ce5293b152982877
    [am] => 1
    [lang] => czech
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
            [0] => 3
        )

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.001s)
    [1] => select * from cpg143_plugins order by priority asc; (0.002s)
    [2] => delete from `fotky_tukak_net`.cpg143_sessions where time<1142850702 and remember=0; (0.003s)
    [3] => delete from `fotky_tukak_net`.cpg143_sessions where time<1141644702; (0.001s)
    [4] => SELECT session_id FROM `fotky_tukak_net`.cpg143_sessions WHERE session_id=MD5('8c78028dd470c4af8a362a0e4c363d4cf6d26340442270db93e293771d9b9820') (0.001s)
    [5] => insert into `fotky_tukak_net`.cpg143_sessions (session_id, user_id, time, remember) values ("45c5ba1029e596068467cee227c39bfa", 0, "1142854302", 0); (0s)
    [6] => 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 cpg143_usergroups WHERE group_id in (3) (0.003s)
    [7] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 3 (0s)
    [8] => update `fotky_tukak_net`.cpg143_sessions set time='1142854302' where session_id=md5('8c78028dd470c4af8a362a0e4c363d4cf6d26340442270db93e293771d9b9820'); (0s)
    [9] => DELETE FROM cpg143_banned WHERE expiry < '2006-03-20 12:31:43' (0.006s)
    [10] => SELECT * FROM cpg143_banned WHERE (ip_addr='194.108.122.215' OR ip_addr='194.108.122.215' OR user_id=0) AND brute_force=0 (0.001s)
    [11] => SELECT aid FROM cpg143_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0.002s)
)

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

==========================
POST :
------------------
Array
(
    [d0000] => 7
    [pics] => Array
        (
            [0] => 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] => aG9jaGthci9Ib2Noa2FyXzAwMS5qcGc=
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => aG9jaGthci9Ib2Noa2FyXzAwMi5qcGc=
    [album_lb_id_i0002] => d0000
    [picfile_i0002] => aG9jaGthci9Ib2Noa2FyXzAwMy5qcGc=
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => aG9jaGthci9Ib2Noa2FyXzAwNC5qcGc=
    [album_lb_id_i0004] => d0000
    [picfile_i0004] => aG9jaGthci9Ib2Noa2FyXzAwNS5qcGc=
    [album_lb_id_i0005] => d0000
    [picfile_i0005] => aG9jaGthci9Ib2Noa2FyXzAwNi5qcGc=
    [album_lb_id_i0006] => d0000
    [picfile_i0006] => aG9jaGthci9Ib2Noa2FyXzAwOS5qcGc=
    [album_lb_id_i0007] => d0000
    [picfile_i0007] => aG9jaGthci9Ib2Noa2FyXzAxMC5qcGc=
    [album_lb_id_i0008] => d0000
    [picfile_i0008] => aG9jaGthci9Ib2Noa2FyXzAxMS5qcGc=
    [album_lb_id_i0009] => d0000
    [picfile_i0009] => aG9jaGthci9Ib2Noa2FyXzAxMi5qcGc=
    [album_lb_id_i0010] => d0000
    [picfile_i0010] => aG9jaGthci9Ib2Noa2FyXzAxMy5qcGc=
    [album_lb_id_i0011] => d0000
    [picfile_i0011] => aG9jaGthci9Ib2Noa2FyXzAxNC5qcGc=
    [album_lb_id_i0012] => d0000
    [picfile_i0012] => aG9jaGthci9Ib2Noa2FyXzAxNS5qcGc=
    [album_lb_id_i0013] => d0000
    [picfile_i0013] => aG9jaGthci9Ib2Noa2FyXzAxNi5qcGc=
    [album_lb_id_i0014] => d0000
    [picfile_i0014] => aG9jaGthci9Ib2Noa2FyXzAxNy5qcGc=
    [album_lb_id_i0015] => d0000
    [picfile_i0015] => aG9jaGthci9Ib2Noa2FyXzAxOC5qcGc=
    [album_lb_id_i0016] => d0000
    [picfile_i0016] => aG9jaGthci9Ib2Noa2FyXzAxOS5qcGc=
    [album_lb_id_i0017] => d0000
    [picfile_i0017] => aG9jaGthci9Ib2Noa2FyXzAyMC5qcGc=
    [album_lb_id_i0018] => d0000
    [picfile_i0018] => aG9jaGthci9Ib2Noa2FyXzAyMS5qcGc=
    [album_lb_id_i0019] => d0000
    [picfile_i0019] => aG9jaGthci9Ib2Noa2FyXzAyMi5qcGc=
    [album_lb_id_i0020] => d0000
    [picfile_i0020] => aG9jaGthci9Ib2Noa2FyXzAyMy5qcGc=
    [album_lb_id_i0021] => d0000
    [picfile_i0021] => aG9jaGthci9Ib2Noa2FyXzAyNC5qcGc=
    [album_lb_id_i0022] => d0000
    [picfile_i0022] => aG9jaGthci9Ib2Noa2FyXzAyNS5qcGc=
    [album_lb_id_i0023] => d0000
    [picfile_i0023] => aG9jaGthci9Ib2Noa2FyXzAyNi5qcGc=
    [album_lb_id_i0024] => d0000
    [picfile_i0024] => aG9jaGthci9Ib2Noa2FyXzAyNy5qcGc=
    [album_lb_id_i0025] => d0000
    [picfile_i0025] => aG9jaGthci9Ib2Noa2FyXzAyOC5qcGc=
    [album_lb_id_i0026] => d0000
    [picfile_i0026] => aG9jaGthci9Ib2Noa2FyXzAyOS5qcGc=
    [album_lb_id_i0027] => d0000
    [picfile_i0027] => aG9jaGthci9Ib2Noa2FyXzAzMC5qcGc=
    [album_lb_id_i0028] => d0000
    [picfile_i0028] => aG9jaGthci9Ib2Noa2FyXzAzMS5qcGc=
    [album_lb_id_i0029] => d0000
    [picfile_i0029] => aG9jaGthci9Ib2Noa2FyXzAzMi5qcGc=
    [album_lb_id_i0030] => d0000
    [picfile_i0030] => aG9jaGthci9Ib2Noa2FyXzAzMy5qcGc=
    [album_lb_id_i0031] => d0000
    [picfile_i0031] => aG9jaGthci9Ib2Noa2FyXzAzNC5qcGc=
    [album_lb_id_i0032] => d0000
    [picfile_i0032] => aG9jaGthci9Ib2Noa2FyXzAzNS5qcGc=
    [album_lb_id_i0033] => d0000
    [picfile_i0033] => aG9jaGthci9Ib2Noa2FyXzAzNi5qcGc=
    [album_lb_id_i0034] => d0000
    [picfile_i0034] => aG9jaGthci9Ib2Noa2FyXzAzNy5qcGc=
    [album_lb_id_i0035] => d0000
    [picfile_i0035] => aG9jaGthci9Ib2Noa2FyXzAzOC5qcGc=
    [album_lb_id_i0036] => d0000
    [picfile_i0036] => aG9jaGthci9Ib2Noa2FyXzAzOS5qcGc=
    [album_lb_id_i0037] => d0000
    [picfile_i0037] => aG9jaGthci9Ib2Noa2FyXzA0MS5qcGc=
    [album_lb_id_i0038] => d0000
    [picfile_i0038] => aG9jaGthci9Ib2Noa2FyXzA0Mi5qcGc=
    [album_lb_id_i0039] => d0000
    [picfile_i0039] => aG9jaGthci9Ib2Noa2FyXzA0My5qcGc=
    [album_lb_id_i0040] => d0000
    [picfile_i0040] => aG9jaGthci9Ib2Noa2FyXzA0NC5qcGc=
    [album_lb_id_i0041] => d0000
    [picfile_i0041] => aG9jaGthci9Ib2Noa2FyXzA0NS5qcGc=
    [album_lb_id_i0042] => d0000
    [picfile_i0042] => aG9jaGthci9Ib2Noa2FyXzA0Ni5qcGc=
    [album_lb_id_i0043] => d0000
    [picfile_i0043] => aG9jaGthci9Ib2Noa2FyXzA0Ny5qcGc=
    [album_lb_id_i0044] => d0000
    [picfile_i0044] => aG9jaGthci9Ib2Noa2FyXzA0OC5qcGc=
    [album_lb_id_i0045] => d0000
    [picfile_i0045] => aG9jaGthci9Ib2Noa2FyXzA0OS5qcGc=
    [album_lb_id_i0046] => d0000
    [picfile_i0046] => aG9jaGthci9Ib2Noa2FyXzA1MC5qcGc=
    [album_lb_id_i0047] => d0000
    [picfile_i0047] => aG9jaGthci9Ib2Noa2FyXzA1MS5qcGc=
    [album_lb_id_i0048] => d0000
    [picfile_i0048] => aG9jaGthci9Ib2Noa2FyXzA1Mi5qcGc=
    [album_lb_id_i0049] => d0000
    [picfile_i0049] => aG9jaGthci9Ib2Noa2FyXzA1My5qcGc=
    [album_lb_id_i0050] => d0000
    [picfile_i0050] => aG9jaGthci9Ib2Noa2FyXzA1NC5qcGc=
    [album_lb_id_i0051] => d0000
    [picfile_i0051] => aG9jaGthci9Ib2Noa2FyXzA1NS5qcGc=
    [album_lb_id_i0052] => d0000
    [picfile_i0052] => aG9jaGthci9Ib2Noa2FyXzA1Ni5qcGc=
    [album_lb_id_i0053] => d0000
    [picfile_i0053] => aG9jaGthci9Ib2Noa2FyXzA1Ny5qcGc=
    [album_lb_id_i0054] => d0000
    [picfile_i0054] => aG9jaGthci9Ib2Noa2FyXzA1OS5qcGc=
    [album_lb_id_i0055] => d0000
    [picfile_i0055] => aG9jaGthci9Ib2Noa2FyXzA2MC5qcGc=
    [album_lb_id_i0056] => d0000
    [picfile_i0056] => aG9jaGthci9Ib2Noa2FyXzA2MS5qcGc=
    [album_lb_id_i0057] => d0000
    [picfile_i0057] => aG9jaGthci9Ib2Noa2FyXzA2Mi5qcGc=
    [album_lb_id_i0058] => d0000
    [picfile_i0058] => aG9jaGthci9Ib2Noa2FyXzA2My5qcGc=
    [album_lb_id_i0059] => d0000
    [picfile_i0059] => aG9jaGthci9Ib2Noa2FyXzA2NC5qcGc=
    [album_lb_id_i0060] => d0000
    [picfile_i0060] => aG9jaGthci9Ib2Noa2FyXzA2NS5qcGc=
    [album_lb_id_i0061] => d0000
    [picfile_i0061] => aG9jaGthci9Ib2Noa2FyXzA2Ni5qcGc=
    [album_lb_id_i0062] => d0000
    [picfile_i0062] => aG9jaGthci9Ib2Noa2FyXzA2Ny5qcGc=
    [album_lb_id_i0063] => d0000
    [picfile_i0063] => aG9jaGthci9Ib2Noa2FyXzA2OC5qcGc=
    [album_lb_id_i0064] => d0000
    [picfile_i0064] => aG9jaGthci9Ib2Noa2FyXzA2OS5qcGc=
    [album_lb_id_i0065] => d0000
    [picfile_i0065] => aG9jaGthci9Ib2Noa2FyXzA3MC5qcGc=
)

==========================
Page generated in 0.516 seconds - 12 queries in 0.02 seconds - Album set : ; Meta set: ;


There is also a warning :
/bridge/coppermine.inc.php

    * Notice line 199: Undefined index: f6d26340442270db93e293771d9b9820


Is there any way how to get it working?

Joachim Müller

yes: don't post debug_output unless requested by a supporter, and turn off notices_display unless you're a coder and know what the notices mean. Then read the sticky thread on this board and the upload troubleshooting section of the docs and do exactly as suggested there.