Problème pour uploader des photos (je commence) Problème pour uploader des photos (je commence)
 

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

Problème pour uploader des photos (je commence)

Started by passions, January 10, 2006, 06:15:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

passions

Bonjour à tous.

Je ne suis pas capable d'uploader des photos.

Comme je suis nouveau, je ne comprend pas trop tous ce qui se dit concernant mon problème j'ai donc
décidé d'écrire ma question.

Lorsque je veux uploader une photo tout fonctionne jusqu'au dernier click su "continuer"
(je choisi une photo, je lui donne un titre, une description, je la place dans un album,...)

Après mon dernier click, j'ai le message suivant:       Le fichier précédent n'a pas pu être placé.

                                                                        Vous avez placé tous les fichiers avec succès.

Voici le message d'erreur:

USER:
------------------
Array
(
    [ID] => 9e451be3703d5ccc59fa1c93aab88289
    [am] => 1
    [lang] => french
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => passions
    [groups] => Array
        (
           
  • => 1
            )

        [disk_max] => 1024
        [disk_min] => 1024
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 10
        [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] => 1024
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `passions_copp1`.cpg_sessions where time<1136909666 and remember=0; (0s)
        [3] => delete from `passions_copp1`.cpg_sessions where time<1135703666; (0s)
        [4] => select user_id from `passions_copp1`.cpg_sessions where session_id=md5("0f59e0994e7e07b5d6586e078da556698d59f09868795f836c2f578cef4e29c5"); (0s)
        [5] => select user_id as id, user_password as password from `passions_copp1`.cpg_users where user_id=1 (0s)
        [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 `passions_copp1`.cpg_users AS u INNER JOIN `passions_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `passions_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `passions_copp1`.cpg_sessions set time='1136913266' where session_id=md5('0f59e0994e7e07b5d6586e078da556698d59f09868795f836c2f578cef4e29c5'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-01-10 17:14:26' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='24.201.197.55' OR ip_addr='24.201.197.55' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT encoded_string FROM cpg_temp_data WHERE unique_ID = '42eec708' (0s)
        [17] => UPDATE cpg_temp_data SET encoded_string = 'YTowOnt9' WHERE unique_ID = '42eec708' (0s)
        [18] => SELECT category FROM cpg_albums WHERE aid='5' (0s)
        [19] => DELETE FROM cpg_temp_data WHERE unique_ID = '42eec708' (0s)
        [20] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 5
        [title] =>
        [caption] =>
        [keywords] =>
        [control] => phase_2
        [unique_ID] => 42eec708
        [debugtext] => USER:
    ------------------
    Array
    (
        [ID] => 9e451be3703d5ccc59fa1c93aab88289
        [am] => 1
        [lang] => french
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => passions
        [groups] => Array
            (
               
  • => 1
            )

        [disk_max] => 1024
        [disk_min] => 1024
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 10
        [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] => 1024
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `passions_copp1`.cpg_sessions where time<1136909661 and remember=0; (0s)
        [3] => delete from `passions_copp1`.cpg_sessions where time<1135703661; (0s)
        [4] => select user_id from `passions_copp1`.cpg_sessions where session_id=md5("0f59e0994e7e07b5d6586e078da556698d59f09868795f836c2f578cef4e29c5"); (0s)
        [5] => select user_id as id, user_password as password from `passions_copp1`.cpg_users where user_id=1 (0s)
        [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 `passions_copp1`.cpg_users AS u INNER JOIN `passions_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `passions_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `passions_copp1`.cpg_sessions set time='1136913261' where session_id=md5('0f59e0994e7e07b5d6586e078da556698d59f09868795f836c2f578cef4e29c5'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-01-10 17:14:21' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='24.201.197.55' OR ip_addr='24.201.197.55' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT encoded_string FROM cpg_temp_data WHERE unique_ID = '42eec708' (0s)
        [17] => UPDATE cpg_temp_data SET encoded_string = 'YToxOntpOjA7YTozOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMjoiRFNDXzAxMDAuSlBHIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF81NzY4YjUyNi5KUEciO3M6MTI6InByZXZpZXdfcGF0aCI7czozNDoiLi9hbGJ1bXMvZWRpdC9wcmV2aWV3XzBmNGRkNzMyLkpQRyI7fX0=' WHERE unique_ID = '42eec708' (0s)
        [18] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
        [19] => SELECT cat.name FROM cpg_categories cat, cpg_albums alb WHERE alb.aid='5' AND cat.cid=alb.category (0s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [unique_ID] => 42eec708
        [control] => phase_2
        [debugtext] => USER:
    ------------------
    Array
    (
        [ID] => 9e451be3703d5ccc59fa1c93aab88289
        [am] => 1
        [lang] => french
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_name] => passions
        [groups] => Array
            (
               
  • => 1
            )

        [disk_max] => 1024
        [disk_min] => 1024
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 10
        [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] => 1024
        [can_see_all_albums] => 1
        [group_id] => 1
    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content, player FROM cpg_filetypes; (0.001s)
        [1] => select * from cpg_plugins order by priority asc; (0s)
        [2] => delete from `passions_copp1`.cpg_sessions where time<1136909659 and remember=0; (0s)
        [3] => delete from `passions_copp1`.cpg_sessions where time<1135703659; (0s)
        [4] => select user_id from `passions_copp1`.cpg_sessions where session_id=md5("0f59e0994e7e07b5d6586e078da556698d59f09868795f836c2f578cef4e29c5"); (0s)
        [5] => select user_id as id, user_password as password from `passions_copp1`.cpg_users where user_id=1 (0s)
        [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 `passions_copp1`.cpg_users AS u INNER JOIN `passions_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
        [7] => SELECT user_group_list FROM `passions_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
        [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 cpg_usergroups WHERE group_id in (1) (0s)
        [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
        [10] => update `passions_copp1`.cpg_sessions set time='1136913259' where session_id=md5('0f59e0994e7e07b5d6586e078da556698d59f09868795f836c2f578cef4e29c5'); (0s)
        [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
        [12] => DELETE FROM cpg_banned WHERE expiry < '2006-01-10 17:14:19' (0s)
        [13] => SELECT * FROM cpg_banned WHERE (ip_addr='24.201.197.55' OR ip_addr='24.201.197.55' OR user_id=1) AND brute_force=0 (0s)
        [14] => SELECT aid, title FROM cpg_albums WHERE category < 10000 ORDER BY title (0s)
        [15] => SELECT aid, title FROM cpg_albums WHERE category='10001' ORDER BY title (0s)
        [16] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
        [17] => SELECT unique_ID FROM cpg_temp_data (0s)
        [18] => INSERT INTO cpg_temp_data VALUES ('42eec708', 'YToxOntpOjA7YToyOntzOjExOiJhY3R1YWxfbmFtZSI7czoxMjoiRFNDXzAxMDAuSlBHIjtzOjE0OiJ0ZW1wb3JhcnlfbmFtZSI7czoyMzoibUhUVFBfdGVtcF81NzY4YjUyNi5KUEciO319', '1136913259') (0s)
    )

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

    ==========================
    POST :
    ------------------
    Array
    (
        [URI_array] => Array
            (
               
  • =>
                [1] =>
                [2] =>
            )

        [control] => phase_1
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 4.0.25-standard
    ------------------
    Coppermine version: 1.4.2(stable)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.25
    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.2.1.2
    Linked Version 1.2.1.2
    ==========================
    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/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/passions:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.471 seconds - 19 queries in 0.001 seconds - Album set : ; Meta set: ;
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 4.0.25-standard
    ------------------
    Coppermine version: 1.4.2(stable)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.25
    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.2.1.2
    Linked Version 1.2.1.2
    ==========================
    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/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/passions:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.496 seconds - 20 queries in 0.001 seconds - Album set : ; Meta set: ;
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.4.1 - OK
    ------------------
    mySQL version: 4.0.25-standard
    ------------------
    Coppermine version: 1.4.2(stable)
    ==========================
    Module: gd
    ------------------
    module doesn't exist
    ==========================
    Module: mysql
    ------------------
    MySQL Supportenabled
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.25
    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.2.1.2
    Linked Version 1.2.1.2
    ==========================
    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/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
    open_basedir | /home/passions:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 30 | 30
    max_input_time | 60 | 60
    upload_max_filesize | 2M | 2M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.517 seconds - 21 queries in 0.001 seconds - Album set : ; Meta set: ;


    Pouvez-vous m'aider SVP. Je n'y comprend pas grand chose.

    Merci.

Titooy

La réponse se trouve probablement ici
Quote==========================
Module: gd
------------------
module doesn't exist
==========================
Vous devez avoir l'extension php_gd (ou ImageMagick) pour que Coppermine puisse créer les vignettes.

Il faut donc demander à votre hébergeur d'installer une librairie graphique.

Pascal YAP

#2
Bonjour Passions,
(MON POST C'EST CROISE AVEC CELUI DE TITOOY, je le laisse au cas où)
==========================
Module: gd
------------------
module doesn't exist
==========================
D'après le fichier debug que vous postez, la librairie GD n'est pas configurée sur votre machine (votre PC)
Selon votre installation APACHE, PHP, MySQL, tentez de trouver le fichier PHP.INI et le bloc suivant :
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;PHPExt
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
;extension=php_iisfunc.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_java.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pdf.dll
;extension=php_pgsql.dll
;extension=php_printer.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sybase_ct.dll
;extension=php_w32api.dll
;extension=php_xmlrpc.dll
;extension=php_xslt.dll
;extension=php_yaz.dll
;extension=php_zip.dll
;/PHPExt

Supprimez le POINT-VIRGULE devant ;php_gd2.dll

PYAP

passions

Merci à vous deux,

J'ai faite part de vos réponses à mon hébergeur via un message, il devrait pouvoir me répondre d'ici peu.

Merci bien.