Empty xlsx archives on linux

Aug 30, 2011 at 2:54 AM

I'm having an issue with the excel writer on linux only.  The same code works fine on windows.  When I extract the files from the result xlsx file on linux, all the expected files exist but are empty ([Content_Types].xml, app.xml,  .rels, etc).  Any pointers on narrowing down the issue?



$this->_writer = new PHPExcel_Writer_Excel2007($this->_excel);





Aug 30, 2011 at 4:11 AM

The issue was with setUseDiskCaching(true);.  I swear I must have found that example in the docs, but maybe not.  I disabled it and everything worked as expected.  I think having the second parameter as null defaulted to the document root on windows, and somewhere invalid on linux.