Can't create temporary file

Topics: Developer Forum
Jan 23, 2012 at 1:50 PM

On sys_get_temp_dir I have 0777 and on Shared directory 0777, but phpExcel generate xls-file with this content. Any idea how to resolve this problem?
<br /><b>Fatal error</b>:  Uncaught exception 'Exception' with message 'Can't create temporary file' in /var/www/admin/data/www/
Stack trace:
#0 /var/www/admin/data/www/ PHPExcel_Shared_OLE_PPS_File-&gt;init()
#1 /var/www/admin/data/www/ PHPExcel_Writer_Excel5-&gt;save('php://output')
#2 {main}  thrown in <b>/var/www/admin/data/www/</b> on line <b>98</b><br />

Jan 23, 2012 at 8:10 PM
Edited Jan 23, 2012 at 8:11 PM

What version of PHPExcel are you running? Classes/PHPExcel/Shared/OLE/OLE_File.php hasn't existed since PHPExcel 1.7.2. The latest version is 1.7.6, and this problem was fixed several versions ago.

Jan 24, 2012 at 7:31 AM

My fault, it was 1.7.1. Try 1.7.6, it work's perfect. Thank's a lot.