Noté dans phpinfo.php
memory_limit 8388608 (local et master)
upload_max_filesize 2097152 (local et master)
Avec le MAC (Safari) j'ai une page blanche
Avec le PC (Firefox) j'ai ceci :
Erreur d'upload - './albums/edit/'
Fichier: /home/sites/site16/web/copp/upload.php - Ligne: 2261
2261 // We reject the file, and make a note of the error.
2262
2263 $file_failure_array[] = array( 'failure_ordinal'=>$failure_ordinal, 'file_name'=> $file_name, 'error_code'=>$lang_upload_php['forb_ext']);
INFOS DE DEBOGAGE :
USER:
------------------
Array
(
[ID] => XXXXXXXX
[am] => 1
[lang] => french
[liv] => Array
(
[0] => 14
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => X
[user_name] => XXXXXXXX
[groups] => Array
(
[0] => 1
)
[disk_max] => 5000
[disk_min] => 5000
[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] => 5000
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.003s)
[1] => select * from cpg149_plugins order by priority asc; (0.001s)
[2] => delete from `my118081`.cpg149_sessions where time<1158133717 and remember=0; (0.001s)
[3] => delete from `my118081`.cpg149_sessions where time<1156927717; (0.001s)
[4] => select user_id from `my118081`.cpg149_sessions where session_id=md5("84a1ceb88ca915517dc488eb0e5d5063a5e7e85e709d5d1f90f73a85de5e275e"); (0.001s)
[5] => select user_id as id, user_password as password from `my118081`.cpg149_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 `my118081`.cpg149_users AS u INNER JOIN `my118081`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
[7] => SELECT user_group_list FROM `my118081`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0.002s)
[9] => SELECT group_name FROM cpg149_usergroups WHERE group_id= 1 (0.001s)
[10] => update `my118081`.cpg149_sessions set time='1158137317' where session_id=md5('84a1ceb88ca915517dc488eb0e5d5063a5e7e85e709d5d1f90f73a85de5e275e'); (0.001s)
[11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
[12] => DELETE FROM cpg149_banned WHERE expiry < '2006-09-13 08:48:41' (0.001s)
[13] => SELECT * FROM cpg149_banned WHERE (ip_addr='87.91.216.156' OR ip_addr='87.91.216.156' OR user_id=1) AND brute_force=0 (0.001s)
[14] => SELECT aid, title FROM cpg149_albums WHERE category < 10000 ORDER BY title (0.001s)
[15] => SELECT aid, title FROM cpg149_albums WHERE category='10001' ORDER BY title (0.001s)
[16] => SELECT encoded_string FROM cpg149_temp_data WHERE unique_ID = 'c33c65da' (0.001s)
[17] => UPDATE cpg149_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = 'c33c65da' (0.001s)
[18] => SELECT category FROM cpg149_albums WHERE aid='8' (0.001s)
[19] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.005s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[album] => 8
[title] =>
[caption] =>
[keywords] =>
[control] => phase_2
[unique_ID] => c33c65da
[debugtext] => USER:
------------------
Array
(
[ID] => XXXXXXXXXX
[am] => 1
[lang] => french
[liv] => Array
(
[0] => 14
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => XXXXXXXXXX
[groups] => Array
(
[0] => 1
)
[disk_max] => 5000
[disk_min] => 5000
[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] => 5000
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.003s)
[1] => select * from cpg149_plugins order by priority asc; (0.001s)
[2] => delete from `my118081`.cpg149_sessions where time<1158133690 and remember=0; (0.001s)
[3] => delete from `my118081`.cpg149_sessions where time<1156927690; (0.001s)
[4] => select user_id from `my118081`.cpg149_sessions where session_id=md5("84a1ceb88ca915517dc488eb0e5d5063a5e7e85e709d5d1f90f73a85de5e275e"); (0.001s)
[5] => select user_id as id, user_password as password from `my118081`.cpg149_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 `my118081`.cpg149_users AS u INNER JOIN `my118081`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
[7] => SELECT user_group_list FROM `my118081`.cpg149_users AS u WHERE user_id='1' and user_group_list <> ''; (0.003s)
[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 cpg149_usergroups WHERE group_id in (1) (0.002s)
[9] => SELECT group_name FROM cpg149_usergroups WHERE group_id= 1 (0.001s)
[10] => update `my118081`.cpg149_sessions set time='1158137290' where session_id=md5('84a1ceb88ca915517dc488eb0e5d5063a5e7e85e709d5d1f90f73a85de5e275e'); (0.001s)
[11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.017s)
[12] => DELETE FROM cpg149_banned WHERE expiry < '2006-09-13 08:48:14' (0.04s)
[13] => SELECT * FROM cpg149_banned WHERE (ip_addr='87.91.216.156' OR ip_addr='87.91.216.156' OR user_id=1) AND brute_force=0 (0.012s)
[14] => SELECT aid, title FROM cpg149_albums WHERE category < 10000 ORDER BY title (0.001s)
[15] => SELECT aid, title FROM cpg149_albums WHERE category='10001' ORDER BY title (0.001s)
[16] => SELECT encoded_string FROM cpg149_temp_data WHERE unique_ID = 'c33c65da' (0.001s)
[17] => UPDATE cpg149_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czo3OiIzMzguanBnIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF83OTFjNmQ0NC5qcGciO3M6MTI6InByZXZpZXdfcGF0aCI7czozNDoiLi9hbGJ1bXMvZWRpdC9wcmV2aWV3Xzk4NmIyODMzLmpwZyI7fX0=' WHERE unique_ID = 'c33c65da' (0.001s)
[18] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
[19] => SELECT cat.name FROM cpg149_categories cat, cpg149_albums alb WHERE alb.aid='8' AND cat.cid=alb.category (0.002s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[unique_ID] => XXXXXXXXX
[control] => phase_2
[debugtext] => USER:
------------------
Array
(
[ID] => XXXXXXXXXXXX
[am] => 1
[lang] => french
[liv] => Array
(
[0] => 14
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => XXXXXXXXX
[user_name] => XXXXXXXXXXXX
[groups] => Array
(
[0] => 1
)
[disk_max] => 5000
[disk_min] => 5000
[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] => 5000
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.005s)
[1] => select * from cpg149_plugins order by priority asc; (0.005s)
[2] => delete from `my118081`.cpg149_sessions where time<1158133681 and remember=0; (0.001s)
[3] => delete from `my118081`.cpg149_sessions where time<1156927681; (0.001s)
[4] => select user_id from `my118081`.cpg149_sessions where session_id=md5("84a1ceb88ca915517dc488eb0e5d5063a5e7e85e709d5d1f90f73a85de5e275e"); (0.001s)
[5] => select user_id as id, user_password as password from `my118081`.cpg149_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 `my118081`.cpg149_users AS u INNER JOIN `my118081`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.001s)
[7] => SELECT user_group_list FROM `my118081`.cpg149_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 cpg149_usergroups WHERE group_id in (1) (0.029s)
[9] => SELECT group_name FROM cpg149_usergroups WHERE group_id= 1 (0.001s)
[10] => update `my118081`.cpg149_sessions set time='1158137281' where session_id=md5('84a1ceb88ca915517dc488eb0e5d5063a5e7e85e709d5d1f90f73a85de5e275e'); (0.001s)
[11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.002s)
[12] => DELETE FROM cpg149_banned WHERE expiry < '2006-09-13 08:48:05' (0.001s)
[13] => SELECT * FROM cpg149_banned WHERE (ip_addr='87.91.216.156' OR ip_addr='87.91.216.156' OR user_id=1) AND brute_force=0 (0.001s)
[14] => SELECT aid, title FROM cpg149_albums WHERE category < 10000 ORDER BY title (0.001s)
[15] => SELECT aid, title FROM cpg149_albums WHERE category='10001' ORDER BY title (0.001s)
[16] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.002s)
[17] => SELECT unique_ID FROM cpg149_temp_data (0.001s)
[18] => INSERT INTO cpg149_temp_data VALUES ('c33c65da', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czo3OiIzMzguanBnIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF83OTFjNmQ0NC5qcGciO319', '1158137285') (0.001s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[URI_array] => Array
(
[0] =>
[1] =>
[2] =>
)
[control] => phase_1
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 4.0.16-standard
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.23 compatible)
FreeType Support: 1
FreeType Linkage: with TTF library
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.37
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -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 | .:/usr/lib/php | .:/usr/lib/php
open_basedir | .:/home/sites | .:/home/sites
==========================
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 | -1 | -1
upload_max_filesize | 2097152 | 2097152
post_max_size | 8M | 8M
==========================
Page generated in 4.592 seconds - 19 queries in 0.057 seconds - Album set : ; Meta set: ;
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 4.0.16-standard
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.23 compatible)
FreeType Support: 1
FreeType Linkage: with TTF library
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.37
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -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 | .:/usr/lib/php | .:/usr/lib/php
open_basedir | .:/home/sites | .:/home/sites
==========================
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 | -1 | -1
upload_max_filesize | 2097152 | 2097152
post_max_size | 8M | 8M
==========================
Page generated in 8.896 seconds - 20 queries in 0.092 seconds - Album set : ; Meta set: ;
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 4.0.16-standard
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.23 compatible)
FreeType Support: 1
FreeType Linkage: with TTF library
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.37
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -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 | .:/usr/lib/php | .:/usr/lib/php
open_basedir | .:/home/sites | .:/home/sites
==========================
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 | -1 | -1
upload_max_filesize | 2097152 | 2097152
post_max_size | 8M | 8M
==========================
Page generated in 5.172 seconds - 20 queries in 0.027 seconds - Album set : ; Meta set: ;
edit: j'ai placé des balises [ code ] autour des infos de débogage histoire d'alléger la page - Titooy