Bonjour,
Il s’agit d’un problème de traitement conditionnel des pièces jointes.
Les pièces jointes étaient traitées quelles que soient les conditions.
Pour corriger le problème, il faut modifier le fichier
class.ui_enewsmind.inc.php et remplacer les lignes 76 à 94 (inclues) par
le code ci-dessous. Cette correction sera incluse dans la prochaine
version d’eNewsMind.
Mis à part ce bug, il est conseillé de désactiver les warning PHP sur
des serveurs en production.
Bonne journée
if ($content['file_1']['tmp_name']){
$_SESSION['file_1_content'] =
file_get_contents($content[‘file_1’][‘tmp_name’]);
}else{
$_SESSION[‘file_1_content’] = “”;
}
if ($content[‘file_2’][‘tmp_name’]){
$_SESSION[‘file_2_content’] =
file_get_contents($content[‘file_2’][‘tmp_name’]);
}else{
$_SESSION[‘file_2_content’] = “”;
}
if ($content[‘file_3’][‘tmp_name’]){
$_SESSION[‘file_3_content’] =
file_get_contents($content[‘file_3’][‘tmp_name’]);
}else{
$_SESSION[‘file_3_content’] = “”;
}
if($content['file_1'] &&
$_SESSION[‘file_1_content’]!=""){
$file_1 =
fopen("…/enewsmind/temp/".$_SESSION[‘file_1’][‘name’], ‘w’);
fwrite($file_1, $_SESSION[‘file_1_content’]);
}
if($content['file_2'] &&
$_SESSION[‘file_2_content’]!=""){
$file_1 =
fopen("…/enewsmind/temp/".$_SESSION[‘file_2’][‘name’], ‘w’);
fwrite($file_1, $_SESSION[‘file_2_content’]);
}
if($content['file_3'] &&
$_SESSION[‘file_3_content’]!=""){
$file_1 =
fopen("…/enewsmind/temp/".$_SESSION[‘file_3’][‘name’], ‘w’);
fwrite($file_1, $_SESSION[‘file_3_content’]);
}
–
Bien à vous.
Pierre Wirtz
Responsable technique
VersusMind, Cabinet d’expertise technologique et informatique
La haute performance passe par la libération
www.versusmind.eu
pierre@versusmind.eu
Tél : + 33 (0)3 83 27 22 03
Bonjour à tous,
J’ai installé le module eNewsMind, je crée la Newsletter et la catégorie
pour l’envoi, et quand je clique sur le bouton Prévisualiser, j’ai le
message suivant:
Warning: file_get_contents() [function.file-get-contents]: Filename cannot
be empty in /xxxx/xxxx/www/intranet/enewsmind/inc/class.ui_enewsmind.inc.php
on line 66
Warning: file_get_contents() [function.file-get-contents]: Filename cannot
be empty in /xxxx/xxxx/www/intranet/enewsmind/inc/class.ui_enewsmind.inc.php
on line 76
Warning: file_get_contents() [function.file-get-contents]: Filename cannot
be empty in /xxxx/xxxx/www/intranet/enewsmind/inc/class.ui_enewsmind.inc.php
on line 77
Warning: file_get_contents() [function.file-get-contents]: Filename cannot
be empty in /xxxx/xxxx/www/intranet/enewsmind/inc/class.ui_enewsmind.inc.php
on line 78
Je suis sur un serveur mutualisé OVH plan 240
le repertoire temp est à 755
Merci aux concepteurs de ce module de nous apporter une solution à ce
problème
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World™ will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
egroupware-french mailing list
egroupware-french@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-french