KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.

Export package loads blank pdf #1076

Closed Donald Orban opened this topic on on Sep 4, 2019 - 2 comments

Donald Orban commented on Sep 4, 2019

I have debugged using this https://www.koolreport.com/forum/topics/557. Below is the command from Browser.php with the error when the command is run. I'm using nodejs -V 9.3.0

PATH=$PATH:/usr/local/bin NODE_PATH=npm root -g node "C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\its404\php-puppeteer\src/js/puppeteer-api.js" "{ goto :{ waitUntil :[ load , domcontentloaded , networkidle0 , networkidle2 ]}, viewport :{ width :1024, height :800}, pdf :{ format : A4 , printBackground :true, nodeBinary : C:\Program Files\nodejs\node.exe , path : C:\Users\JD\Documents\XAM PP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c170283.pdf }, url : file:\/\/C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c1497d2.html , n odeBinary : C:\Program Files\nodejs\node.exe , chromeBinary :null}" undefined:1 { goto :{ waitUntil :[ load , domcontentloaded , networkidle0 , networkidle2 ]}, viewport :{ width :1024, height :800}, pdf :{ format : A4 , printBackground :true, nodeBinary : C:\Program Files\nodejs\node.exe , path : C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c170283.pdf }, url : file:\/\/C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\koolreport\export\/tmp\/5d701d6c1497d2.html , nodeBinary : C:\Program Files\nodejs\node.exe , chromeBinary :null} ^

SyntaxError: Unexpected token g in JSON at position 2

at JSON.parse (<anonymous>)
at Object.<anonymous> (C:\Users\JD\Documents\XAMPP\htdocs\dv2.quality\vendor\its404\php-puppeteer\src\js\puppeteer-api.js:3:28)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
at Function.Module.runMain (module.js:701:10)
at startup (bootstrap_node.js:194:16)
at bootstrap_node.js:618:3
David Winterburn commented on Sep 5, 2019

Hi Donald,

Support for headless chrome via nodejs' puppeteer in our Export package is not up to date as we have a lot of user feedback about it being hard to install and run on many server environment. Therefore with headless chrome we focus on cloud export service where we set it up on our server. Please have a look at the CloudExport package:

https://www.koolreport.com/packages/cloudexport

Please try it and let us know if you have any problem with cloud export. Thanks!

Donald Orban commented on Sep 5, 2019

Well that won't be an option for me, I'm dealing with sensitive data potentially. I'll attempt to use PhantomJS. Thanks

KoolReport Is Free and Open-Source!

KoolReport is a professional php reporting framework which saves you tons of time to construct dynamic data report & dashboard.

  • Connect to various datasources such as MySQL, SQL Server, MongoDB or even from CSV or Excel file.
  • Contain series of powerful built-in data processes for your data manipulation.
  • Generate stunning charts and graphs to help you communicate data insights to your audiences effectively.
  • Integrate seamlessly with any php frameworks such as Laravel, CodeIgniter, Symfony.
Download Now and register our tutorials to get started!

Download KoolReport
None yet

Export