[Doli 10.0.3] Bug à la génération de fichier xlsx

Bonjour.
Installation nouvelle via « Dolibarr installer for Windows (DoliWamp) » sur Win7 SP1
DoliWamp a installé :
Version Apache : Apache/2.4.9 (Win32) PHP/5.5.12
Version PHP : 5.5.12

L’utilisation de « Outil/Nouvel import » et ensuite « Télécharger fichier vierge exemple » ne fonctionne pas correctement car le fichier généré a bien l’extension xlsx mais contient le texte suivant (format texte et non Excel) :

<br />
<b>Warning</b>: tempnam(): open_basedir restriction in effect. File(C:\Windows\TEMP) is not within the allowed path(s): (c:/dolibarr) in <b>C:\dolibarr\www\dolibarr\htdocs\core\modules\import\import_xlsx.modules.php</b> on line <b>219</b><br />
<br />
<b>Warning</b>: ZipArchive::open(): Empty string as source in <b>C:\dolibarr\www\dolibarr\htdocs\includes\phpoffice\phpexcel\Classes\PHPExcel\Writer\Excel2007.php</b> on line <b>239</b><br />
<br />
<b>Warning</b>: ZipArchive::open(): Empty string as source in <b>C:\dolibarr\www\dolibarr\htdocs\includes\phpoffice\phpexcel\Classes\PHPExcel\Writer\Excel2007.php</b> on line <b>240</b><br />
<br />
<b>Fatal error</b>: Uncaught exception ‹ PHPExcel_Writer_Exception › with message ‹ Could not open for writing. › in C:\dolibarr\www\dolibarr\htdocs\includes\phpoffice\phpexcel\Classes\PHPExcel\Writer\Excel2007.php:241
Stack trace:
#0 C:\dolibarr\www\dolibarr\htdocs\core\modules\import\import_xlsx.modules.php(221): PHPExcel_Writer_Excel2007->save(false)
#1 C:\dolibarr\www\dolibarr\htdocs\imports\class\import.class.php(228): ImportXlsx->write_footer_example(Object(Translate))
#2 C:\dolibarr\www\dolibarr\htdocs\imports\emptyexample.php(94): Import->build_example_file(‹ xlsx ›, Array, Array, ‹ accounting_1 ›)
#3 {main}
thrown in <b>C:\dolibarr\www\dolibarr\htdocs\includes\phpoffice\phpexcel\Classes\PHPExcel\Writer\Excel2007.php</b> on line <b>241</b><br />

Cordialement

Dominique Dartois

Bonjour,

Oubliez Doliwamp !
Installez Wamp + Dolibarr : vous aurez des versions à jour d’Apache, MySQL et PHP !

Cordialement,
Sylvain Legrand.

2 « J'aime »

Bonjour.
J’ai suivi votre conseil avisé (installation sans passer par Doliwamp) et mon problème est résolu.

Cordialement

Dominique Dartois