I am getting the same Error "Cannot execute phantomjs" but I'm on Windows 10 running XAMPP server. I have gone through this forum extensively, still can't get it to work. I can see the PhantomJs.exe show up in the Task manager (from koolreport/export/bin) I have checked the permissions, checked the php.ini for disabled_functions, it just hangs the export. It does generate the tmp file correctly.... If I close task it releases the export but does not generate the pdf. XAMPP 3.3.0 PHP 7.4.22 PhantomJS 2.1.1. What else should I be looking into?
FOUND THE SOLUTION...on this forum
This is a known issue when phantomjs working with built-in php web server (php -S). We are still testing below solution. Please locate the file "koolreport/export/Handler.php", look for this line in pdf() method
$params["expectedLocation"] = $this->getFullUrl();
and you change to
$params["expectedLocation"] = str_replace("http://","",$this->getFullUrl());
This solution will be implemented in next version of export package when we are done with testing.
Please reverse to us if above solution is working.