Erreur d'upload - './albums/edit/'[ Erreur d'upload - './albums/edit/'[
 

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

Erreur d'upload - './albums/edit/'[

Started by Theorbe, September 12, 2006, 05:29:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Theorbe

Bonjour, je teste "Coppermine" avant de le mettre sur mon site.
Lorque j'upload des images de plus de 200 ou 300 KO, j'ai le message «Uploads effectués avec succès». Après avoir appuyé sur «Continuer», j'ai une page blanche , ou si j'accède à la page suivante, après le choix de l'album : erreur critique «Erreur d'upload - './albums/edit/'», or un fichier mHTTP_temp XXXXX correspondant à la photo (même taille) a bien été créé dans le dossier /albums/edit sur le serveur ???

Même problème avec les fichiers (plus de 200 ko) déposés en FTP dans le dossier perso, pas moyen de les mettre dans les galeries. Et le message d'erreur généré par PHP ne s'affiche pas.
Aucun problème avec les petites photos.
Le CHMOD des dossiers albums, edit, userpic, et des dossiers persos est bien à 777 :-\

Avez-vous une idée ?

Merci pour vos lumières, la lecture de ce forum m'a appris beaucoup de choses  :)
:)

François Keller

Bonjour,
Quoteun fichier mHTTP_temp XXXXX correspondant à la photo (même taille) a bien été créé dans le dossier /albums/edit sur le serveur
comment avez vous fait cet upload ?
QuoteMême problème avec les fichiers (plus de 200 ko) déposés en FTP dans le dossier perso, pas moyen de les mettre dans les galeries. Et le message d'erreur généré par PHP ne s'affiche pas.
Aucun problème avec les petites photos.
Quel est le parametrage pour la taille maxi des uploads dans votre config ?
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Theorbe

Quote from: Frantz on September 12, 2006, 06:13:31 PM
comment avez vous fait cet upload ?
L'upload s'est fait "normalement" avec Coppermine. Je surveillais le serveur avec le prog FTP en actualisant après chaque manip . Les fichiers mHTTP_XXX y sont toujours.
Quote from: Frantz on September 12, 2006, 06:13:31 PM
Quel est le parametrage pour la taille maxi des uploads dans votre config ?
Poids maximal des images à uploader (ko) 1024.
:)

François Keller

question bête, est ce que vous avez bien GD2 comme parametrage pour Méthode de redimensionnement des images ?
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Theorbe

#4
C'est la méthode choisie dans la configuration.
J'ai essayé CG1, c'est pareil.
Image Magick ne fonctionne pas (hébergeur: AMEN.fr:-[
:)

Titooy

Affichez le rapport de débogage pour avoir des informations complémentaires.

9 chances sur 10 qu'il s'agit d'un problème de mémoire.

Theorbe

#6
Quote from: Titooy on September 12, 2006, 09:32:33 PM
Affichez le rapport de débogage pour avoir des informations complémentaires.
9 chances sur 10 qu'il s'agit d'un problème de mémoire.

Le Voici (enfin, j'espère que c'est cela...) :

USER:
------------------
Array
(
    [ID] => XXXXXXXX
    [am] => 1
    [lang] => french
    [liv] => Array
        (
            [0] => 11
            [1] => 15
            [2] => 21
            [3] => 12
            [4] => 35
        )

    [sort] => na
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => XXXXXX
    [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<1158096993 and remember=0; (0.001s)
    [3] => delete from `my118081`.cpg149_sessions where time<1156890993; (0.001s)
    [4] => select user_id from `my118081`.cpg149_sessions where session_id=md5("358b7d4ab9278444a9ca9241d4aa280f7a9c692597d7e6289ccd3af76c8a2bce"); (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='1158100593' where session_id=md5('358b7d4ab9278444a9ca9241d4aa280f7a9c692597d7e6289ccd3af76c8a2bce'); (0.001s)
    [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-09-12 22:36:36' (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 COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.001s)
    [15] => SELECT value FROM cpg149_config WHERE name = 'theme' (0.001s)
)

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

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

==========================
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 3.593 seconds - 16 queries in 0.019 seconds - Album set : ; Meta set: ;
:)

Titooy

Maintenant que le débogage est activé, réessayez d'uploader des "gros" fichiers et de voir quels sont les messages d'erreur.

Allez également sur <cpg>/phpinfo.php et notez la valeur de memory_limit

Theorbe

#8
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



:)

Theorbe

#9
oops ...
en fait cela depend de la taille du fichier.
Le résultat (sur le précedent post) est le même sur les 2 plateformes avec le même fichier de 338 KO.
Avec un même fichier de 716 KO, j'ai une page blanche (sur Mac et PC), donc pas de message d'erreur et pas d'info de debugage.
Ce fichier (716 KO) est donc présent 2 fois sur le serveur dans albums/edit
:)

Theorbe

Cela peut-il venir d'une limitation par l'hébergeur ?
Connaissez-vous une galerie Coppermine hébergée par AMEN.FR, qui fonctionne sans problème ?
:)

Titooy

Ce qui est très étonnant, c'est que d'habitude quand il y a des problèmes de mémoire, on a le traditionnel message "Allowed memory size of X bytes exhausted", ce qui n'est apparemment pas le cas ici...

Si vous comprenez l'anglais il y a d'autres pistes ici :
http://forum.coppermine-gallery.net/index.php?topic=24088.0
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php

Theorbe

#12
Merci pour votre aide.

J'ai trouvé un début de réponse sur le forum de AMEN.FR :
Quotele problème vient de la nouvelle version de php installé sur les serveurs...!
php 4.3.8 embarque une version bundle de gd2.
Les fonctions de traitement d'image de gd2 sont devenues très gourmandes en allocation mémoire.

En fait, le poids en octet importe peu! c'est la taille en pixels qui pose problème: en effet, gd2 "recompose" en truecolor les images et pour cela récupère tous les pixels de nos images et les recode en 32 bits! donc une image de 1200x1024 devient ingérable avec 8Mo de ressource !
Même si son poids est de 400Ko.

Le seul remède : dans php.ini si on y a accès, il faut passer en memory limit -1
et si on y a pas accès :
Quote..... il faut mettre dans la page du script posant probleme c'est cette petite ligne de code :
ini_set ("memory_limit", "-1");
Reste à savoir dans quel fichier je puis mettre cette ligne.
Pouvez-vous m'aider ?

p.s : je viens d'installer Coppermine chez mon FAI, tout fonctionne et c'est très rapide. Mais il faut qu'il fonctionne chez l'hébergeur à cause du nom de domaine. J'attends une réponse d' AMEN.FR.
:)

François Keller

Quoteje viens d'installer Coppermine chez mon FAI, tout fonctionne et c'est très rapide. Mais il faut qu'il fonctionne chez l'hébergeur à cause du nom de domaine
Ou alors il faut faire une redirection
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

istaria

J'ais eut exactement le même soucis lors de l'upload d'images.
Ne connaissant rien ou peu en code "web" (je suis graphiste  :P), j'ais juste ouvert les photos dans photoshop, taille de l'image réduite un peu, enregistrement; et la les photos passent bien le cap du choix des albums.
Cette erreur vient donc bien des photos et non de Coppermine ^^

Personnellement j'ais limiter la taille d'upload a 1Mo et mes photos sont toujours redimensionner en '600 x homothétie'.jpg

En revanche, grâce a cette erreur, j'ais inclue un petit avertissement aux membres pour pas qu'ils soient perdus.