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