You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
require 'vendor/autoload.php';
use Nesk\Puphpeteer\Puppeteer;
use Nesk\Rialto\Exceptions\Node;
$puppeteer = new Puppeteer;
$browser = $puppeteer->launch([
'args' => ['--no-sandbox', '--disable-setuid-sandbox', '--proxy-server=xx.xx.xxx.xx:3128'],
]);
$page = $browser->newPage();
...
My setup: OS CentOS Linux 7.5.1804
Node v9.11.2
PHP 7.1.22
NPM 6.2.0
nesk Puppeteer 1.8.0
nesk Rialto 1.2.1
Here newPage() doesn't work anymore and the script stops:
[01-Oct-2018 12:36:05 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to a member function newPage() on null in /home/myuser/public_html/foder/project/myscript.php:203
Stack trace:
#0 {main}
thrown in /home/myuser/public_html/foder/project/myscript.php on line 203
Do you know the reason, please? Thank you very much
The text was updated successfully, but these errors were encountered:
Hello, there's no way at the moment to run the latest versions on CentOS 7. I don't know if about the no-sandbox but that's it. Please, did you test it on CentOS or do you know why newPage() on null ? Thanks...
Sorry for the delay, I didn't have much time to work on this and I'm currently unable to test the project with CentOS 7. Could you provide me some logs? Here are some instructions.
Hello,
the PHP usual code...here on CentOS 7
My setup:
OS CentOS Linux 7.5.1804
Node v9.11.2
PHP 7.1.22
NPM 6.2.0
nesk Puppeteer 1.8.0
nesk Rialto 1.2.1
Here
newPage()
doesn't work anymore and the script stops:Do you know the reason, please? Thank you very much
The text was updated successfully, but these errors were encountered: