Skip to content
New issue

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

Error creating browser, traced to symfony process #593

Open
gidzr opened this issue Jan 7, 2024 · 2 comments
Open

Error creating browser, traced to symfony process #593

gidzr opened this issue Jan 7, 2024 · 2 comments

Comments

@gidzr
Copy link

gidzr commented Jan 7, 2024

I am using XAMPP, php 8.1, Google Chrome v120.

$pathToChrome = "C:\Program Files\Google\Chrome\Application\chrome.exe"
$browserFactory = new BrowserFactory($pathToChrome); //<-- no error caused here
// starts headless chrome
$browser = $browserFactory->createBrowser(); //<--- triggers error:

////////////////// ERROR

A PHP Error was encountered


Backtrace:

<p>Severity: Warning</p>
<p>Message:  Array to string conversion</p>
<p>Filename: process/Process.php</p>
<p>Line Number: 341</p>


<p style="margin-left:10px">
File: C:\xampp81\php\vendor\chrome-php\chrome\src\Browser\BrowserProcess.php<br />
Line: 134<br />
Function: start
</p>


<p style="margin-left:10px">
File: C:\xampp81\php\vendor\chrome-php\chrome\src\BrowserFactory.php<br />
Line: 83<br />
Function: start
</p>
@adis0308
Copy link

I found an error similar to this:
PHP Notice: Array to string conversion in D:\laragon\www\gdplayer\vendor\symfony\process\Process.php on line 345

@gidzr
Copy link
Author

gidzr commented Aug 28, 2024

Unfortunately I couldn't resolve so I've stopped using chrome-php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants