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

Fatal error: Uncaught Error: Undefined constant "Hybridauth\HttpClient\CURLOPT_TIMEOUT" #1348

Open
theflatworld opened this issue Nov 7, 2022 · 1 comment

Comments

@theflatworld
Copy link

theflatworld commented Nov 7, 2022

Hey All,

I pulled the source code and attempt to implement some simple example, but it ends up with errors:

Fatal error: Uncaught Error: Undefined constant "Hybridauth\HttpClient\CURLOPT_TIMEOUT"
at /Adapter/AbstractAdapter.php on line 248

constant CURLOPT_TIMEOUT seems to be defined within src\HttpClient\Curl.php as a part of interface implements
and shared within the namespace Hybridauth\HttpClient.
It seems that the code was not able to recognize the shared variables based on namespace.

a link to the error is at:
https://www.playwhatyoufeel.com/hybridauth/face.php

please let me know what went wrong?
Is it something to do with composer installation?
I installed directly using zip folder

Do I need additional SDK from all social logins such as Google/Facebook SDKs?

thanks!

Steven

@scheffmr
Copy link

scheffmr commented Dec 5, 2022

Hi Steven,

make sure cURL is enabled in your environment: echo 'Curl: ', function_exists('curl_version') ? 'Enabled' . "\xA" : 'Disabled' . "\xA";

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

No branches or pull requests

2 participants