KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Cloud Export has stopped working. #3309

Closed iWorQ Systems opened this topic on on Jun 7 - 6 comments

iWorQ Systems commented on Jun 7

We have been using cloud export on various reports for the last few years, and now none of them are working. I am getting this as an error

This is what our code looks like:

$settings = [
    "pageWaiting" => "networkidle2", //load, domcontentloaded, networkidle0, networkidle2
    // "useLocalTempFolder" => true,
];
$pdfOptions = [
    "format" => "A4",
    "landscape" => false,
    "noRepeatTableFooter" => true,
];
$report->run();
$report
->cloudExport("NewReportsPdf")
->chromeHeadlessio("ff7b46de3410380533eaa67c67be318c50f745a685debb37334e2dbece9e2b4a")
->settings($settings)
->pdf($pdfOptions)
->toBrowser("permit.pdf");

Any help would be appreciated

KoolReport commented on Jun 9

We have tested the chromeheadless and it seems working well now. It could be that there is server overload when handle the surge of requests at a time. If you use chromeheadless for critical tasks, you may consider our private server service in which there is only you on a private server so it could avoid the over crowded issue in the public server.

iWorQ Systems commented on Jun 25

how do we do that, because it is continually not working and I am not sure what else we can do.

Sebastian Morales commented on Jun 26

Would you pls post a full screenshot of error message if there is when cloud exporting for us to find a solution for you? Tks,

iWorQ Systems commented on Jun 26

Warning: file_get_contents(https://www.iworq.net/iworq/vendor/koolreport/datagrid/DataTables/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAAjCAYAAAAe2bNZAAABcGlDQ1BpY2MAACiRdZHNSwJBGMYftTDS8FCHkA57sOigIAXRMQzyYh3UIKvL7rirwe66zK6IdA26dBA6RF36OvQf1DXoWhAERRAR9B/0dQnZ3nEFJXSG2ffHs/O8zDwD+DM6M+yBJGCYDs+mU9JaYV0KviNMM4QoEjKzreXcUh59x88jfKI+JESv/vt6jlBRtRngGyKeYxZ3iBeIMzXHErxHPMbKcpH4hDjO6YDEt0JXPH4TXPL4SzDPZxcBv+gplbpY6WJW5gbxNHHM0KusfR5xk7BqruaoRmlNwEYWaaQgQUEVW9DhIEHVpMx6+5It3wo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0QfhmEkfiNod0Xusct68J1qc8Tdux0Z97Q+hsDb+AYGYEbF/4Guw2Q/qDPqZG/zXgT+3Qj8AtKnfWhFwmuAAAAAAElFTkSuQmCC): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\inetpub\wwwroot\iworq\vendor\chromeheadlessio\php-client\src\Exporter.php on line 15 Warning: file_get_contents(https://www.iworq.net/iworq/vendor/koolreport/datagrid/DataTables/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABcGlDQ1BpY2MAACiRdZHNSwJBGMYftTDS8FCHkA57sOigIAXRMQzyYh3UIKvL7rirwe66zK6IdA26dBA6RF36OvQf1DXoWhAERRAR9B/0dQnZ3nEFJXSG2ffHs/O8zDwD+DM6M+yBJGCYDs+mU9JaYV0KviNMM4QoEjKzreXcUh59x88jfKI+JESv/vt6jlBRtRngGyKeYxZ3iBeIMzXHErxHPMbKcpH4hDjO6YDEt0JXPH4TXPL4SzDPZxcBv+gplbpY6WJW5gbxNHHM0KusfR5xk7BqruaoRmlNwEYWaaQgQUEVW9DhIEHVpMx6+5It3woq5GH0tVAHJ0cJZfLGSa1SV5WqRrpKU0dd5P4/T1ubnfG6h1PA4Kvrfk4CwX2g2XDd31PXbZ4BgRfg2uz4K5TT/DfpjY4WOwYiO8DlTUdTDoCrXWD82ZK53JICtPyaBnxcACMFYPQeGN7wsmr/x/kTkN+mJ7oDDo+AKdof2fwDCBRoDkL8UccAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAG5SURBVEgN3VU9LwVBFF0fiYhofUSlEQkKhU7z/oBCQkIiGr9BgUbhVzy9BAnhFyjV/AYFiU5ICM7ZN+c5Zud5dm3lJmfmzrkz9+7cu3c3y/6jjOBSF8CxXS7FmTkbwqIJjDpJvTcmsJ4K3KPZUpyZsx0sxoB9J6mnAkyC7wGuuCFIipNtEcpcWExgXpOBc78vgj6N+QO4NVsjwdFM59tUIDxDrHMBOeIQ34C5ZDregXuAQm4YcI68nN9B3wr2PcwPAIPkN2EqtJH6b+QZm1ajjTx7BqwAr26Lb+C2Kvpbt0Mb2HAJ7NrGFGfmXO3DeA4UshDfQAVmH0gaUFg852TTTDvlxwBlCtxy9zXyBhQFaq0wMmIdRebrfgosA3zb2hKnqG0oqchp4QbuR8X0TjzABhbdOT8jnQ/atcgqpnfwOA7yqZyTU587ZkIGdesLTt2EkynOnbreMUUKMI/dA4B/QVOcO13CQh+5wWCgDwo/75u59odB/wjmfhbgvACcAOyZPHihMWAoIwxyCLgf1oxfgjzVbgBXSTzIN+f0pg6s5DkcesLMRpsBrgE2XO3CN64JFP7JtUeKHX4CKtRRXFZ+7dEAAAAASUVORK5CYII=): Failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in C:\inetpub\wwwroot\iworq\vendor\chromeheadlessio\php-client\src\Exporter.php on line 15 Warning: require(C:/inetpub/wwwroot/iworq/0_include/class/ziparchive.php): Failed to open stream: No such file or directory in C:\inetpub\wwwroot\iworq\0_include\Init\init.php on line 21 Fatal error: Uncaught Error: Failed opening required 'C:/inetpub/wwwroot/iworq/0_include/class/ziparchive.php' (include_path='.;C:\php\pear') in C:\inetpub\wwwroot\iworq\0_include\Init\init.php:21 Stack trace: #0 C:\inetpub\wwwroot\iworq\vendor\chromeheadlessio\php-client\src\Exporter.php(64): {closure}() #1 C:\inetpub\wwwroot\iworq\vendor\chromeheadlessio\php-client\src\Exporter.php(320): chromeheadlessio\Exporter->zipWholeFolder() #2 C:\inetpub\wwwroot\iworq\vendor\chromeheadlessio\php-client\src\Exporter.php(387): chromeheadlessio\Exporter->saveTempContent() #3 C:\inetpub\wwwroot\iworq\vendor\chromeheadlessio\php-client\src\Service.php(35): chromeheadlessio\Exporter->cloudRequest() #4 C:\inetpub\wwwroot\iworq\vendor\koolreport\cloudexport\ChromeHeadlessIoService.php(119): chromeheadlessio\Service->pdf() #5 C:\inetpub\wwwroot\iworq\vendor\koolreport\cloudexport\ChromeHeadlessIoService.php(79): koolreport\cloudexport\ChromeHeadlessIoService->exportTo() #6 C:\inetpub\wwwroot\iworq\Reporting\NewReporting\export.php(51): koolreport\cloudexport\ChromeHeadlessIoService->pdf() #7 {main} thrown in C:\inetpub\wwwroot\iworq\0_include\Init\init.php on line 21

Sebastian Morales commented on Jun 27

You can ignore the warning messages, they would not affect cloud export result. Instead it is this error that caused the issue:

Fatal error: Uncaught Error: Failed opening required 'C:/inetpub/wwwroot/iworq/0_include/class/ziparchive.php'

It seems your PHP did not have the zip extension installed/enabled. Pls install/enable zip extension and try cloud export again.

iWorQ Systems commented on Jul 2

That worked, Thank you.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed
solved

CloudExport