Giter Site home page Giter Site logo

Comments (4)

Minishlink avatar Minishlink commented on June 18, 2024

Hi, what is your dev environment? Platform? PHP version? Extensions installed?

Another user who had this issue used XAMP and resolved it:

Finally i got it worked.I still don't really know why. There maybe some wrong configuration in Apache config (I modified the httpd.conf a little bit and I guess it may cause the issue). 
Then, I stopped XAMP apache and start the php server by using " php -S localhost:80" and it worked. :). 

Also, this seems to be the same issue as #37 , if @lildaypay has any updates, maybe he could share with you his solution.

from web-push-php.

Jeroeny avatar Jeroeny commented on June 18, 2024

Thanks for your reply. Yes I'm using xamp as well. Not sure how that user fixed it but I'll look into it a bit.

(Developing on Win10, xamp server, php 5.6.24)

from web-push-php.

Jeroeny avatar Jeroeny commented on June 18, 2024

Allright I found the fix. It was an issue with SSL certificates and curl HTTPS requests. You have to download a certificate and set the path in your php.ini.

I followed this guide:
https://yikesplugins.com/support/knowledge-base/i-receive-the-error-ssl-certificate-problem-unable-to-get-local-issuer-certificate-why/

The steps are:

  1. Download cacert.pem file from here: http://curl.haxx.se/docs/caextract.html
  2. Save the file in your PHP installation folder. (eg: If using xampp – save it in c:\Installation_Dir\xampp\php\cacert.pem).
  3. Open your php.ini file and add this line:
  4. curl.cainfo=”C:\Installation_Dir\xampp\php\cacert.pem”
  5. Restart your Apache server and that should fix it (Simply stop and start the services as needed).

But that didn't work at once. I had to change my cert lines in php.ini to:

curl.capath = "‪C:\xampp\php"
curl.cainfo = "C:\xampp\php\cacert.crt"

Hope this will help others. Thanks for this awesome library.

Edit: I now see the part 'How to solve "SSL certificate problem: unable to get local issuer certificate" ?' in your guide, which actually describes this. Strange I did not get that error.

from web-push-php.

Minishlink avatar Minishlink commented on June 18, 2024

Thanks for your feedback, and glad you fixed your problem!

So apparently you had no error because Buzz doesn't check for errors when you have MultiCurl :/ I'll make a PR.

from web-push-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.