We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I am using php-casperjs in a wordpress plugin. I installed as recommended with
npm install phantomjs npm install casperjs
then
composer require phpcasperjs/phpcasperjs
i can initialize casper without error like this:
try { $casperJSExecutable = trailingslashit(realpath(dirname(__FILE__) . '/node_modules/casperjs/bin/casperjs')); self::getLogger()->trace("Casper path : " . $casperJSExecutable); $this->casper = new Casper($casperJSExecutable, '/tmp'); } catch (Exception $e) { self::getLogger()->error($e->getMessage()); }
but as soon as i run it, the error in the title of this post appears
try { $this->casper->run(); } catch (Exception $e) { self::getLogger()->error("####### ERROR #######"); self::getLogger()->error($e->getMessage()); return null; }
Any idea ? Thanks a lot
The text was updated successfully, but these errors were encountered:
Is there an other way i should use to pass to php-casperjs the path to casperjs executable, which is done here during Casper instanciation:
$casperJSExecutable = trailingslashit(realpath(dirname(__FILE__) . '/node_modules/casperjs/bin/casperjs')); self::getLogger()->trace("Casper path : " . $casperJSExecutable); $this->casper = new Casper($casperJSExecutable, '/tmp');
Is there a problem here ? Thanks
Sorry, something went wrong.
Ok, the path was not good, need to provide the parent directory, not the exe file:
$casperJSExecutable = trailingslashit(realpath(dirname(__FILE__) . '/node_modules/casperjs/bin/'));
Thanks for this!
No branches or pull requests
Hi,
I am using php-casperjs in a wordpress plugin. I installed as recommended with
then
composer require phpcasperjs/phpcasperjs
i can initialize casper without error like this:
but as soon as i run it, the error in the title of this post appears
Any idea ?
Thanks a lot
The text was updated successfully, but these errors were encountered: