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
count(): Parameter must be an array or an object #1377
Comments
Stack trace for the same issue:
It seems that this issue has been already been solved in guzzle guzzle/guzzle#1686, however google api links to a specific version of guzzle which is older than the fix. |
try
If that doesnt work try
|
Same type of error when using: $client = new Google_Client(['client_id' => $CLIENT_ID]); "count(): Parameter must be an array or an object that implements Countable" |
The problem is in PHP 7.2 the parameter for count() can't be NULL. The warning in the first post gets displayed when $this->handles equals NULL. Just replace line 67 in CurlFactory.php with the following:
|
Please try upgrading your version of Guzzle. |
Links to Can't quickstart with PHP for Google Analytics Note this is not my question i am just linking it here for documentation reasons. |
Please try upgrading your version of *Guzzle*.
s pozdravem,
*Filip Oščádal*
…On Mon, Jun 18, 2018 at 8:25 AM Linda Lawton ***@***.***> wrote:
Links to Can't quickstart with PHP for Google Analytics
<https://stackoverflow.com/q/50898330/1841839>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1377 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEmXukQxg_rRnAxoTq4eZVZinRpCavNks5t90fggaJpZM4RsLDh>
.
|
when i use this code
I got this warning
i think it only in php 7.2 was fine in 7.1
The text was updated successfully, but these errors were encountered: