Comments (4)
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.
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.
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:
- Download cacert.pem file from here: http://curl.haxx.se/docs/caextract.html
- Save the file in your PHP installation folder. (eg: If using xampp – save it in c:\Installation_Dir\xampp\php\cacert.pem).
- Open your php.ini file and add this line:
- curl.cainfo=”C:\Installation_Dir\xampp\php\cacert.pem”
- 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.
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)
- cURL error 28: NSS: client certificate not found (nickname not specified)
- event.data is always null HOT 8
- Shared device question HOT 2
- Get subscription from report (in case of error) HOT 2
- Pass a custom variable to flush() HOT 1
- some subscribers get 403 Error HOT 1
- Successfull message but nothing happens HOT 1
- Consider using `GuzzleHttp\Pool` in `flush` HOT 5
- web app ios error
- size of payload must not be greater than 4078 octets HOT 2
- Não estou conseguindo implantar n meu sistema, alguem quer um freelance para fazer isso? HOT 1
- Help with frontend HOT 4
- Notification not sent due to hex2bin() error
- 12x performance difference between windows and linux HOT 1
- Migration to new Firebase HTTPv1 api's question. HOT 2
- Make $supportedContentEncodings publicly available or implement encoding negotiation
- $report->isSuccess() always returns true with web.push.apple.com HOT 4
- Remove legacy code and updates HOT 3
- Abandoned packages HOT 4
- Push Notification in IOS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-push-php.