Giter Club home page Giter Club logo

Comments (8)

DragonStar01 avatar DragonStar01 commented on June 29, 2024

Update your php version to 7 it should work fine

from pokemongoapi-php.

Spettacolo83 avatar Spettacolo83 commented on June 29, 2024

Thank you so much! I can't update to php 7 on my website, but I could on my mac, so I've updated and after that the web error now is:

( ! ) Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 35: SSL: CA certificate set, but certificate verification is disabled (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
( ! ) GuzzleHttp\Exception\ConnectException: cURL error 35: SSL: CA certificate set, but certificate verification is disabled (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186

Do you know how can I fix it? Thank you again!

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on June 29, 2024

Try changing the SSL_VERIFICATION environment variable to true.

SSL_VERIFICATION=true

from pokemongoapi-php.

Spettacolo83 avatar Spettacolo83 commented on June 29, 2024

Thank you @NicklasWallgren !
I'm trying to do that but without success!
Can you help me to change that environment variable to true.
Thank you very much!

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on June 29, 2024

Make a copy of the ".env.example file", name it ".env".
Then add the file path as the fourth parameter to the ApplicationKernel constructor.

// Initialize the pokemon go application
$application = new ApplicationKernel('INSERT_EMAIL', 'INSERT_PASSWORD', Factory::AUTHENTICATION_TYPE_GOOGLE, INSERT_FILE_PATH_TO_ENVIRONMENT_FOLDER);

from pokemongoapi-php.

Spettacolo83 avatar Spettacolo83 commented on June 29, 2024

I tried in this way:

  1. Modifying .env file in this way:
DEBUG=false
LOG_FILE_PATH=
LOG_LEVEL=100
SSL_VERIFICATION=true
  1. Modifying the initialize function in example file RetrievePlayerProfile.php in this way:
$application = new ApplicationKernel(
            'xxx-my-username-xxx', 'xxx-my-password-xxx', Factory::AUTHENTICATION_TYPE_GOOGLE, '/Library/WebServer/Documents/pokemongo/.env
');
( ! ) Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 51: SSL: certificate verification failed (result: 5) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 187
( ! ) GuzzleHttp\Exception\RequestException: cURL error 51: SSL: certificate verification failed (result: 5) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /Library/WebServer/Documents/pokemongo/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 187

Can I try others things?

from pokemongoapi-php.

NicklasWallgren avatar NicklasWallgren commented on June 29, 2024

Seems to be a problem related to OSX, nothing I can do about it I'm afraid.

Homebrew/legacy-homebrew#32019

from pokemongoapi-php.

Spettacolo83 avatar Spettacolo83 commented on June 29, 2024

I fixed it installing MAMP with PHP 7!

from pokemongoapi-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.