Impossible uploader par ftp (PHP4>PHP5) Impossible uploader par ftp (PHP4>PHP5)
 

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

Impossible uploader par ftp (PHP4>PHP5)

Started by labricotblanc, May 05, 2006, 11:59:55 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

labricotblanc

Salut, :)

Dans "FTP" quand je click sur le dossier qui contien les photos que je veu uploader j'ai ce message :
QuoteWarning: cannot yet handle MBCS in html_entity_decode()! in D:\www\xxxxxxx.com\website\voyeur\include\functions.inc.php on line 2910


Dans "include\functions.inc.php on line 2910" je trouve ça:
Quote$chars = html_entity_decode($CONFIG['forbiden_fname_char'], ENT_QUOTES, 'UTF-8');

Voici les infos de debugage:

USER:
------------------
Array
(
    [ID] => 2e92cdb12a085929d2ec1b099e478751
    [am] => 1
    [lang] => french
    [liv] => Array
        (
            [0] => 1259
            [1] => 1260
            [2] => 1261
            [3] => 1202
            [5] => 549
        )

    [search] => Array
        (
            [search] => cochone
            [album] => search
            [title] => on
            [newer_than] =>
            [caption] => on
            [older_than] =>
            [keywords] => on
            [type] => AND
            [params] => Array
                (
                    [title] => on
                    [caption] => on
                    [keywords] => on
                )

        )

    [theme] => mac_ox_x
)

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

    [disk_max] => 100000000
    [disk_min] => 100000000
    [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] => 100000000
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg143_filetypes; (0.003s)
    [1] => select * from cpg143_plugins order by priority asc; (0.012s)
    [2] => delete from `coppellese`.cpg143_sessions where time<1146937497 and remember=0; (0.025s)
    [3] => delete from `coppellese`.cpg143_sessions where time<1145731497; (0.04s)
    [4] => select user_id from `coppellese`.cpg143_sessions where session_id=md5("fb84017b355b7f34c27ec40fe238bc5d5683464fb1ab46657c6a370da15e5fc3"); (0.076s)
    [5] => select user_id as id, user_password as password from `coppellese`.cpg143_users where user_id=1 (0.009s)
    [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 `coppellese`.cpg143_users AS u INNER JOIN `coppellese`.cpg143_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.008s)
    [7] => SELECT user_group_list FROM `coppellese`.cpg143_users AS u WHERE user_id='1' and user_group_list <> ''; (0.018s)
    [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.004s)
    [9] => SELECT group_name FROM  cpg143_usergroups WHERE group_id= 1 (0.004s)
    [10] => update `coppellese`.cpg143_sessions set time='1146941097' where session_id=md5('fb84017b355b7f34c27ec40fe238bc5d5683464fb1ab46657c6a370da15e5fc3'); (0.002s)
    [11] => SELECT user_favpics FROM cpg143_favpics WHERE user_id = 1 (0.001s)
    [12] => DELETE FROM cpg143_banned WHERE expiry < '2006-05-06 18:44:58' (0.001s)
    [13] => SELECT * FROM cpg143_banned WHERE (ip_addr='86.219.230.86' OR ip_addr='86.219.230.86' OR user_id=1) AND brute_force=0 (0.001s)
    [14] => SELECT aid, title FROM cpg143_albums WHERE 1 (0.001s)
    [15] => SELECT COUNT(*) FROM cpg143_pictures WHERE approved = 'NO' (0.001s)
    [16] => SELECT filepath, filename FROM cpg143_pictures WHERE filepath LIKE '2006/alamaison/mai%' (0.006s)
    [17] => SELECT aid, title FROM cpg143_albums WHERE category = 0 (0.001s)
    [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' (0.001s)
    [19] => SELECT aid, CONCAT('(', user_name, ') ', a.title) AS title
FROM cpg143_albums AS a
INNER JOIN `coppellese`.cpg143_users AS u
ON category = (10000 + user_id)
ORDER BY title (0.004s)
)

==========================
GET :
------------------
Array
(
    [startdir] => 2006/alamaison/mai
)

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

==========================
VERSION INFO :
------------------
PHP version: 4.3.1 - OK
------------------
mySQL version: 3.23.51-nt
------------------
Coppermine version: 1.4.3(stable)
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
==========================
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 | .;c:\php4\pear | .;c:\php4\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | merak@cybergraphik.com | merak@cybergraphik.com
sendmail_path | no value | no value
SMTP | 62.39.109.12 | 62.39.109.12
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 1.031 seconds - 20 queries in 0.218 seconds - Album set : ; Meta set: ;


Avez vous une idée à l'origine du probleme?

Merci
Coppermine 1.4.19
Serveur: phpMyAdmin 2.6.4, (php5), Mysql 5.0.22
Serveur: Linux
Hebergeur: Aruba.it
(je ne donne pas le l'URL de ma gallerie car c'est du charme)

Titooy

Il paraîtrait que remplacer html_entity_decode() par @html_entity_decode() résout le problème.

http://forum.coppermine-gallery.net/index.php?topic=27479.0

labricotblanc

Ben ça supprimme les messages d'erreurs mais apres avoir clické sur le dossier (sur la page qui suit où il y a le nom des photos) les vignettes ne s'affichent toujours pas.

Je me suis aussi rendu compte que certaines photos ne s'affichent pas, alors que leurs vignettes s'affichent (je ne voi pas pourquoi). 
Coppermine 1.4.19
Serveur: phpMyAdmin 2.6.4, (php5), Mysql 5.0.22
Serveur: Linux
Hebergeur: Aruba.it
(je ne donne pas le l'URL de ma gallerie car c'est du charme)

Titooy

Y a-t-il des caractères accentués dans les noms de fichiers ?

labricotblanc

#4
Non c'est ex:"tout_nx_01.jpeg"
Coppermine 1.4.19
Serveur: phpMyAdmin 2.6.4, (php5), Mysql 5.0.22
Serveur: Linux
Hebergeur: Aruba.it
(je ne donne pas le l'URL de ma gallerie car c'est du charme)

Titooy

Et dans les noms de répertoires non plus ?

Apparemment c'est un bug de PHP connu depuis 2003 mais qui n'est corrigé que dans PHP5
http://bugs.php.net/bug.php?id=25670

Ce qui est étonnant, c'est que presque personne n'a eu ce problème avec Coppermine.

Une solution possible:

remplacer    if (function_exists('html_entity_decode')) {
      $chars = html_entity_decode($CONFIG['forbiden_fname_char'], ENT_QUOTES, 'UTF-8');
    } else {
      $chars = str_replace(array('&amp;', '&quot;', '&lt;', '&gt;', '&nbsp;', '&#39;'), array('&', '"', '<', '>', ' ', "'"), $CONFIG['forbiden_fname_char']);
    }

par    $chars = str_replace(array('&amp;', '&quot;', '&lt;', '&gt;', '&nbsp;', '&#39;'), array('&', '"', '<', '>', ' ', "'"), $CONFIG['forbiden_fname_char']);


Par ailleurs, je vois que vous utilisez la version 1.4.3. Je vous conseille de passer à la 1.4.5 qui corrige plusieurs problèmes de sécurité.

labricotblanc

Je vien de modifier le code mais ça ne fonctionne toujours pas.

???
Coppermine 1.4.19
Serveur: phpMyAdmin 2.6.4, (php5), Mysql 5.0.22
Serveur: Linux
Hebergeur: Aruba.it
(je ne donne pas le l'URL de ma gallerie car c'est du charme)

labricotblanc

Cool,

Je suis passé sur du PHP5 et tourne !!!

MERCI !  ;D
Coppermine 1.4.19
Serveur: phpMyAdmin 2.6.4, (php5), Mysql 5.0.22
Serveur: Linux
Hebergeur: Aruba.it
(je ne donne pas le l'URL de ma gallerie car c'est du charme)