- Saved searches
- Use saved searches to filter your results more quickly
- Quickstart Error #66
- Quickstart Error #66
- Comments
- Expected Behavior
- Actual Behavior
- Steps to Reproduce the Problem
- Specifications
- Saved searches
- Use saved searches to filter your results more quickly
- Parameter must be an array or an object that implements Countable #2107
- Parameter must be an array or an object that implements Countable #2107
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Crash CurlFactory:67 — PHP 7.2.0-dev #1750
- Crash CurlFactory:67 — PHP 7.2.0-dev #1750
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- Problem with PHP 7.2 and Quickstarts #29
- Problem with PHP 7.2 and Quickstarts #29
- Comments
- Expected Behavior
- Actual Behavior
- Steps to Reproduce the Problem
- Specifications
Saved searches
Use saved searches to filter your results more quickly
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.
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
Quickstart Error #66
Quickstart Error #66
Comments
(Please search existing issues before creating a new one.)
error
PHP Warning: count(): Parameter must be an array or an object that implements Countable in D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
PHP Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187
Stack trace:
#0 D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection()
#1 D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError()
#2 D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish()
#3 D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke()
#4 D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler()
#5 D:\quickstart\vendor\guzzlehttp\guzzle\src\PrepareBodyMiddleware.php(72): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler()
#6 D:\quickstart\v in D:\quickstart\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187
Expected Behavior
Actual Behavior
evry time I try to run php quickstart.php it shows me to open the link and enter the verificatin code
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
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.
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
Parameter must be an array or an object that implements Countable #2107
Parameter must be an array or an object that implements Countable #2107
Comments
Hi guzzle, I’m receiving this error on the line:
I think that this solved changing this to
if (is_array($this->handles) && count($this->handles) >= $this->maxHandles) < //check if it's array first curl_close($resource); > else < // Remove all callback functions as they can hold onto references // and are not cleaned up by curl_reset. Using curl_setopt_array // does not work for some reason, so removing each one // individually. curl_setopt($resource, CURLOPT_HEADERFUNCTION, null); curl_setopt($resource, CURLOPT_READFUNCTION, null); curl_setopt($resource, CURLOPT_WRITEFUNCTION, null); curl_setopt($resource, CURLOPT_PROGRESSFUNCTION, null); curl_reset($resource); $this->handles[] = $resource; >
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
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.
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
Crash CurlFactory:67 — PHP 7.2.0-dev #1750
Crash CurlFactory:67 — PHP 7.2.0-dev #1750
Comments
just letting know that request will fail in unit test (due warning).
You can run the test in this repo. Easy query with basic auth with a 401 exception.
1) SmartEmailing\v3\Tests\Request\Credentials\CredentialsLiveTest::testSend401 count(): Parameter must be an array or an object that implements Countable /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:67 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:107 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:42 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Middleware.php:30 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:68 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Middleware.php:59 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/HandlerStack.php:67 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Client.php:275 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Client.php:123 /home/travis/build/pionl/smart-emailing-v3/vendor/guzzlehttp/guzzle/src/Client.php:129 /home/travis/build/pionl/smart-emailing-v3/src/Request/AbstractRequest.php:66 /home/travis/build/pionl/smart-emailing-v3/src/Request/Credentials/Credentials.php:24 /home/travis/build/pionl/smart-emailing-v3/tests/Request/Credentials/CredentialsLiveTest.php:36
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
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.
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
Problem with PHP 7.2 and Quickstarts #29
Problem with PHP 7.2 and Quickstarts #29
Comments
Expected Behavior
Runs throught example without errors
Actual Behavior
Problems with required Guzzle Client.
PHP Warning: count(): Parameter must be an array or an object that implements Countable in C:\Users[. ]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
Warning: count(): Parameter must be an array or an object that implements Countable in C:\Users[. ]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered:
Got this error
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
«
Fatal error: Uncaught Error: Class ‘Google_Client’ not found in C:\xampp\phpMyAd
min\quickstart.php:14
Stack trace:
#0 C:\xampp\phpMyAdmin\quickstart.php(63): getClient()
#1
thrown in C:\xampp\phpMyAdmin\quickstart.php on line 14
@tobilektri
Had exactly the same issue running php 7.2
I had to edit the CurlFactory.php file at C:\Users[. ]\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67
I had to cast the Object($this->handles) to an array:
I changed this:
if (count($this->handles) >= $this->maxHandles) < curl_close($resource);
to this:
$arrayHandle = (array)$this->handles; if (count($arrayHandle) >= $this->maxHandles) < curl_close($resource); >else
This clear the error after re-entering the verification code, but then I go another message from my command line which am not sure its an error or warning or something else:
Files:
SAMVIC (1V8W0SguM210_nCZt5ZqtLUXSWa9TwS4Q)
upgrade_221.html (1pwXW1bMjbcsaDa6izVIziSMBsWbEsFLX)
upgrade_222.html (1shJX1DPaMdYOg_e6F5_NWdG8sPYGPF1i)
pdo_sqlsrv_forge.php (1c7fw7CqYjTMPsXT5f_QfP-sxVE8PK3iP)
pdo_sqlsrv_driver.php (1BcbnnXWoPA0M6mjIVRAs34Cig4UNlDjG)
pdo_sqlite_forge.php (1ABhavgNtd2qHESJ06kwCPxQhjf9wWhn9)
pdo_sqlite_driver.php (1ytHpG4AQF_ZXrTKu2nZjHV73zJauxPoo)
pdo_odbc_forge.php (1VrsFMXtxDtCn9VWHS1pCE4jTrJ6U4yWX)
pdo_odbc_driver.php (1RS9lM5EcgvTlX9Ay69lxpMwSCdH_k4if)
pdo_oci_forge.php (1wolDrzxAvQXqHOSfjZ_BTHcMtKKsutQ3)
Well, I guess I have to find out when I run some other code..
Cheers.
This appears to be the same problem reported here:
They claim the issue was fixed in version 2.2.2 of the google/apiclient dependency. Can you try updating to that version and let me know if it works? If so I can update the version dependency in the instructions.
@erickoledadevrel Thanks for the share. It seems like I have to manually update the guzzle folder.