Windows server issue

Topics: Developer Forum, User Forum
Dec 16, 2013 at 3:35 AM
Edited Dec 16, 2013 at 3:53 AM
Fatal error: Cannot redeclare class ZipArchive in application\libraries\PHPExcel\Shared\ZipArchive.php on line 42

Works on Linux, but i encountered this problem on windows.
PHP 5.4.22, Apache 2,

line 42
class ZipArchive
{

    /** constants */
    const OVERWRITE     = 'OVERWRITE';
    const CREATE        = 'CREATE';
// Save Excel 2007 file
//echo date('H:i:s') . " Write to Excel2007 format\n";
$objWriter = new Excel2007($objPHPExcel);
$filename = date("d.m.Y.H.i.s",time()) . $this->lang->line('controller_excelist').".xlsx";
$objWriter->save('upload/export/'.$filename);
Thank you.
Dec 16, 2013 at 4:50 PM
Normally, this class is declared if PHPExcel setting tells it to use the management of zips by PCL.