KoolReport's Forum

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

Missing phantomjs.exe in Latest KoolReportsPro download #378

Open Datagaard opened this topic on on Jul 17, 2018 - 2 comments

Datagaard commented on Jul 17, 2018

It appears that there is a missing file from the most recent KoolReportsPro download version 2.78.0

The phantomjs.exe is not included in the Bin folder

protected function runPhantom($script,$source,$output,$params)
    {
        if(!$this->phantomjs)
        {
            $this->phantomjs = realpath(dirname(__FILE__))."/bin/phantomjs";
            if(!is_file($this->phantomjs))
            {
                $this->phantomjs.=".exe";
                if(!is_file($this->phantomjs))
                {
                    throw new \Exception("Could not find phantomjs executed file in bin folder");
                }
            }    
            if(!is_executable($this->phantomjs))
            {
                throw new \Exception("Please set executable permission for phantomjs");    
            }
        }

My Server error states:

[Tue Jul 17 15:34:52.690775 2018] [:error] [pid 1464:tid 960] [client XXX.XXX.X.226:55258] PHP Fatal error: Uncaught exception 'Exception' with message 'Could not find phantomjs executed file in bin folder' in C:\Apache24\htdocs\RoomBookings\KoolReports\koolreport\packages\export\Handler.php:57\nStack trace:\n#0 C:\Apache24\htdocs\RoomBookings\KoolReports\koolreport\packages\export\Handler.php(156): koolreport\export\Handler->runPhantom('C:\\Apache24\\htd...', 'C:\\Windows\\TEMP...', 'C:\\Windows\\TEMP...', 'eyJmb3JtYXQiOiJ...')\n#1 C:\Apache24\htdocs\RoomBookings\KoolReports\examples\reports\basic\ConferenceRooms\ExportReport.php(26): koolreport\export\Handler->pdf(Array)\n#2 {main}\n thrown in C:\Apache24\htdocs\....

When I look in the koolreport\packages\export\bin\ folder, there is no contents.

Regards

KoolReport commented on Jul 17, 2018

First off, thank you very much for being our customer.

For your question, It is not a bug. could you please go to Export package and download the correct version of Phantomjs for your OS. Due the large filesize, we don't include the phantom execution file in the package.

Please let us know if you need further assistance.

Regards,

KoolPHP Inc

Datagaard commented on Jul 17, 2018

Thanks for the quick follow up.

Will download the extension as suggested

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
help needed
solved

Export