KoolReport's Forum

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

Could not execute phantomjs #2822

Open Subbu Annamalai opened this topic on on Sep 12, 2022 - 1 comments

Subbu Annamalai commented on Sep 12, 2022

I have hosted my site on shared hosting. (Linux) I have placed phantomjhs in export/bin folder and provided 755 Permission. shell_exec() also enabled.

Even I am getting null result for

if(!function_exists('shell_exec')) {

    throw new \Exception( "exec is disabled");
    return false;
    }
    
    $result = shell_exec($command);
    // echo str_replace("<", "&lt", $result); exit;
    if (strpos($result, ";")===false) {
        throw new \Exception("Could not execute phantomjs");
    }

Please let me know if any suggestions.

Sebastian Morales commented on Sep 14, 2022

Pls open the file koolreport/export/Handler.php and add the following line:

        echo "command = $command<br>"; exit; // add this line
        $result = shell_exec($command);

Then run export to see the output phantomjs command. Copy and paste it into your terminal/command line to see if there's any error message. Tks,

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

Export