Today I started to get this error upon adding new events to calendar:
Fatal error: Uncaught exception 'apiServiceException' with message
'Error calling POST https://www.googleapis.com/calendar/v3/
calendars/[cal-id]#group.calendar.google.com/events?alt=json&key=[dev-key]:
(403) Access Not Configured' in /[...]/src/io/apiREST.php:86
Stack trace: #0 /[...]/src/io/apiREST.php(56): apiREST::decodeHttpResponse(Object(apiHttpRequest))
#1 /[...]/src/service/apiServiceResource.php(148): apiREST::execute(Object(apiServiceRequest)) #2 /[...]/src/contrib/apiCalendarService.php(472):
apiServiceResource->__call('insert', Array) #3 /[...]/index.php(160): EventsServiceResource->insert('[cal-id-part]...',
Object(Ev in /[...]/src/io/apiREST.php on line 86
It worked perfectly till now and I didn't change anything in code.
I had a similar problem accessing Google Analytics data with PHP. I fixed it by making sure the Analytics service was turned on for my project in my API console: https://code.google.com/apis/console/.
You may have to turn on the calendar service. See the link below for further explanation when someone had an issue with the translation service:
Translation api has stopped working
Don't know if this will help someone.
I had the same error and I had tried everything. Then I removed "developer_key" from config.php and it worked. Please note I was using Service Account https://developers.google.com/accounts/docs/OAuth2ServiceAccount
Well, they released new version and that what apparently caused errors. Got the newest version now and it works great once again.
Don't know if this will help someone, either.
It may also help to go to the respective calendar-settings page in your Google Account, edit something trivial and explicitly save again, (or re-save once more to set back to the old settings). Sometimes the google servers are a bit hesitant to accept any new settings, especially the "Sharing " settings. Check which of your service accounts have permission levels "can edit" , or "is owner" .
Related
I am currently working on integrating a MapProxy WMS into my Mapbender applications.
Adding the MapProxy as a datasource works fine. Mapbender recognizes all layers and metadata.
Additionaly I can add the MapProxy WMS to an application, but when I start that application, I get the following error message on the top right:
Additionally this error "deactivates" the "wms-layer-tree" on the left (the menu where the user can activate or deactivate wms sources"
In the MapBender log, I can see the following:
[2021-02-02 14:17:22] request.INFO: Matched route "mapbender_manager_repository_view". {"route_parameters":{"_controller":"Mapbender\\ManagerBundle\\Controller\\RepositoryController::viewAction","sourceId":"225","_route":"mapbender_manager_repository_view"},"request_uri":"https://geoportal2.intra.swrag.de/mapbender/manager/repository/source/225"} []
[2021-02-02 14:17:22] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "Not Found" at /var/www/mapbender/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 251 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): Not Found at /var/www/mapbender/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php:251)"} []
I guess that's the Error for my MapProxy WMS because of the timestamp and because of the "sourceID":"225", which is the ID of my MapProxy WMS.
Also, if I used my WMS in a QGIS project it works fine.
Feel free to ask, if I missed explaining something. Any help is appreciated. Stay safe!
Okay.. I found the solution.
While testing the MapProxy WMS I wanted to disable it by default when starting the application.
Sadly I chose the wrong option, which let to crashing the WMS-Layer-Tree.
So if you have the same problem: don't deactivate the first option!
Hello Stackoverflowers!
I have been in a really big bind trying to solve this configuration/implementation of a webhook that utilizes both the Stripe PHP library and the Mailgun API. My intention is to send an email (with Mailgun) whenever one of my Stripe customers performs a certain action which has been recorded as an event in my Stripe endpoint. I have been trying to follow the guidelines of this documentation https://stripe.com/docs/recipes/sending-emails-for-failed-payments but unfortunately I think I am missing something in my understanding of how to make this work. I have a SiteGround hosted WordPress site which I am trying to host my webhook.php file and Stripe PHP library on. I uploaded the entire Stripe PHP library (in a folder named "stripe-php-master") to my "/wp-includes/" directory. In the webhook.php file I changed the boilerplate code in the documentation (https://stripe.com/docs/recipes/sending-emails-for-failed-payments) from
// If you're using Composer, use Composer's autoload
require_once('vendor/autoload.php');
to
$file = dirname(__FILE__) . '/init.php';
require_once($file);
because I am not sure how to utilize "Composer" in this scenario within the confines/context of of a SiteGround hosted WordPress site, so I figured this may be a suitable approach (according to https://packagist.org/packages/stripe/stripe-php) please correct me if I am wrong! When I try to visit the URL of my webhook.php file at https://mysitename.com/wp-includes/stripe-php-master/webhook.php I receive this error "Fatal error: Uncaught Error: Class 'Mailgun\Mailgun' not found in /home/mysitef3/public_html/wp-includes/stripe-php-master/webhook.php:16 Stack trace: #0 {main} thrown in /home/mysitef3/public_html/wp-includes/stripe-php-master/webhook.php on line 16". Could any of you please help me figure out what I am doing wrong here please and thank you!!!
i've tried to find an answer to this question google-ing, and i was only able to find one answer that suited but, unfortunately, the patch suggested didn't work. That's why i'm placing this question here.
i'm using X2 engine v4.3 and i've recently discovered that a user (any user created by admin) is not able to view the contact information.
He/she's able to edit it, but when an opening attempt is made, the result is:
Send Error Report
Here's a quick list of what will be included in the report:
Error Code: 404
Error Message: Unable to resolve the request "contacts/id/index".
Stack Trace: [click to toggle display]
0 /var/www/vhosts/URL/framework/web/CWebApplication.php(141): CWebApplication->runController('contacts/id/ind...')
1 /var/www/vhosts/URL/framework/base/CApplication.php(180): CWebApplication->processRequest()
2 /var/www/vhosts/URL/index.php(55): CApplication->run()
3 {main}
X2Engine Version: 4.3
PHP Version: 5.4.33
The administrator user is able to see and modify contacts with no problem.
The strange part is that in localhost this error doesn't happen, the user is able to see the information, this error is happening in the web server.
Does someone has any ideia on how to fix this?
any help would be highly appreciatted.
thank you,
I m new to use of facebook api after some googling i found facebook api from this link:
https://github.com/facebook/facebook-php-sdk
after download this package i try to execute example code from this package but it returns an error like:
Fatal error: Uncaught CurlException: 6: Could not resolve host: graph.facebook.com; Host not found thrown in D:\xampp\htdocs\testing\phpdemo\fb\src\base_facebook.php on line 994
to solve this problem i try too much googling but i doesnt get positive result from there.
If anybody know what kind of possibilities for this problem then please help.
here is may be two posibilities like:
1) Do you have any firewalls? The problem is not about configuration is just CURL can't do requests to graph.facebook.com and possible any website. Try disable any firewalls that may be blocking your CURL requests
2) From my experience you can't use facebook APi local, however they have a free host provider,Heroku, try it. Also don't forget to replace YOUR_APP_ID and YOUR_APP_SECRET with your app Data.
You can get help here,https://stackoverflow.com/questions/16294630
From my experience you can't use facebook APi local, however they have a free host provider,Heroku, try it.
Also don't forget to replace YOUR_APP_ID and YOUR_APP_SECRET with your app Data.
I am looking for help with this problem and I hope someone give me that help. The error is the following:
Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://example.com/index.php/api/?wsdl' : failed to load external entity "http://example.com/index.php/api/?wsdl" in
/var/www/presentacion/app/code/local/Pengo/Extension/Model/Something.php on line 28
And the code that I'm using to connect to it is something like this:
$this->_soap = new SoapClient(http://example.com/index.php/api/?wsdl);
and there is where it says is the error.
I have been serching in Google, PHP forums, here in StackOverflow and Magento itself but I don't find the solution anywhere.
What I had seen is that the WSDL is never get parsed or loaded as the error says and none of its functions.
I tried connecting like this:
$options['location'] = http://example.com/index.php/api/?wsdl;
$options['uri'] = 'urn:Magento';
$this->_soap = new SoapClient(null, $options);
like this it doesn't dispatch any error like the others but there aren't functions to use, like in the other case it doesnt' load and parse the WSDL.
I am a bit frustrated because I have been developing this like 1 month and now that I am making some tests it shows this message, I had test it when it was really empty and new and it worked fine.
So any help would be appreciated.
Thank you.
Nine times out of ten this error is Magento is telling you it can't load the WSDL file. Magento is telling you this. It's not your local client code that's complaining.
Magento uses the PHP SoapServer object to create its SOAP API. The SoapServer object needs to access the WSDL as well. Try running the following from your server's command line
curl http://example.com/index.php/api/?wsdl
If I'm right, the above will timeout/fail.
Because of some quirks in DNS, it's surprisingly common that a server won't be able to access itself via its domain name. If this is the case, the quickest fix is adding an entry to the server's hosts file. (Talk to your server admin if none of that made sense)
Well after all the things that I test the only one that worked for me, I don't know why but it worked, was doing this in two separate machines. I tried that because I read that somewhere and I just do it and my Magento and Webservice now works perfectly. Whenever I try to do this local it dispatch the same error.
I hope this can help someone in the future and they don't have to knock their head on the wall because of this problem.
Thank you all for your answers and comments.
Alan Storm is right on the Money here!
Make sure that you check your server Hosts File, and that it includes an entry for both domain and www.domain. Espicialy important if you are doing server rewrites.