I've set up MachForm for a customer, and they sent in a ticket to us, and said that exporting to Excel leads to a "File not found". The server is a CentOS 7 and runs PHP7.0.
Looking at the php error log, there is the following:
[28-Oct-2019 10:49:59 Europe/Copenhagen] PHP Warning: ZipArchive::close(): Failure to create temporary file: No such file or directory in /var/www/form../public_html/lib/phpexcel/PHPExcel/Writer/Excel2007.php on line 388
[28-Oct-2019 10:49:59 Europe/Copenhagen] PHP Fatal error: Uncaught PHPExcel_Writer_Exception: Could not close zip file php://output. in /var/www/form../public_html/lib/phpexcel/PHPExcel/Writer/Excel2007.php:389
#0 /var/www/form../public_html/export_entries.php(1136): PHPExcel_Writer_Excel2007->save('php://output')
thrown in /var/www/form../public_html/lib/phpexcel/PHPExcel/Writer/Excel2007.php on line 389
I've looked throughout the forums, and I can't find anyone having the same issue. All I've seen so far is "export_entries.php missing" or similar; as far as I am aware, all the files are there.
While I have played a lot with PHP and taken an education in it, I somehow have missed opening and closing files, especially the "php://output" part.
Any help is appreciated.