Is there a way to disable the Facebook PHP API from printing certain errors (disable them per api call maybe?) as they occur such as
Fatal error: Uncaught GraphMethodException: Unsupported delete request. thrown in [URL] on line [LINE]
Thank you all!
Related
I'm getting following error in my eZpublish application while fetching the content using:
$wrapper->content->getFieldValue('short_name', $currentLanguage)->text;
Error:
CRITICAL - Uncaught PHP Exception Symfony\Component\Config\Definition\Exception\InvalidConfigurationException: "Unknown handler dfs" at /var/www/application/releases/v1/wwwroot/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishIOBundle/ApiLoader/HandlerFactory.php line 39.
Is there any way to solve this issue.
Thanks in advance.
I'm following this example of social login integration using Hybridauth with Google and Twitter:
Hybridauth Example
When I try to sign up (first time), HTTP Error 500 appears (or blank page when I'm using Firefox). However, the new user is created in de database.
Then, I try to log in again with the same user, and it shows this error:
Error: Duplicate entry 'xxxxx#gmail.com' for key 'email'
(I'm using echo when it catches an exception in login.php)
When I check error_log the following error appears:
[01-Nov-2016 15:34:33 UTC] PHP Notice: Database error: in /***/conect.php on line 19
[01-Nov-2016 15:34:34 UTC] PHP Fatal error: Call to a member function fetch_object() on a non-object in /***/conect.php on line 18
This is working the same for Google and Twitter
I can't figure out what's going wrong
I am using an OAuth library to connect to my Etsy store (etsy.com) and try to retrieve some information regarding sold orders.
This is the library: https://github.com/Lusitanian/PHPoAuthLib/blob/master/examples/etsy.php
However, I keep getting an error after I "Allow Access". I receive a token but when I allow access the issue is happening.
Here is the full error:
Fatal error: Uncaught exception 'OAuth\Common\Http\Exception\TokenResponseException' with message 'file_get_contents(http://openapi.etsy.com/v2/private/users/__SELF__): failed to open stream: HTTP request failed!
HTTP/1.1 400 Bad Request ' in /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/src/OAuth/Common/Http/Client/StreamClient.php:70 Stack trace: #0 /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/src/OAuth/OAuth1/Service/AbstractService.php(137):
OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), NULL, Array, 'GET') #1 /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/examples/etsy.php(47):
OAuth\OAuth1\Service\AbstractService->request('/private/users/...') #2 {main} thrown in /hermes/bosoraweb013/b1151/ipg.tahara/APIs/PHPoAuthLib-master/src/OAuth/Common/Http/Client/StreamClient.php on line 70
Would anyone have any input to identify what the issue is?
The error is telling you that the library was getting back a 400 error which means that the server does not like your request. If this is something that might happen more often than not then a try catch block is your friend if only to terminate gracefully and perhaps log the problem.
If this was me I would have the error, the request and the Library object print_r inside a tag or into a text document so I could get a better idea of what was going on.
I'd be wondering if this was an authentication issue, a need to use HTTPS rather than HTTP, a bug in the library, an end-point issue or just some bad data at some place or other. The more information you have and the more you can isolate and confirm as working the faster I could home in on the problem.
I wish you the best of luck debugging and tracing the fault. I know how insanely frustrating these things can be.
I'm getting errors while running Google Glass quick starter PHP project using Mirror API. I've seen a similar question in the forum but in my case i've enabled the Mirror api in the Google API console. We are working in a group using a new Gmail account(that aptly describes our group) which has been tied up to our Glass very recently.
In the error log it says:
Uncaught exception 'Google_ServiceException' with message 'Error calling GET
https://www.googleapis.com/mirror/v1/timeline?maxResults=3&key=xxxxxxxxxxx: (403)
Access Not Configured'
Any help in this regard would be very much appreciated.
Thanking the experts in advance.
The complete error log:
PHP Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/mirror/v1/timeline?maxResults=3&key=xxxxxxxxxxxxxx: (403) Access Not Configured' in /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php:66\nStack trace:\n#0 /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest))\n#1 /var/www/mirror-quickstart-php/google-api-php-client/src/service/Google_ServiceResource.php(186): Google_REST::execute(Object(Google_HttpRequest))\n#2 /var/www/mirror-quickstart-php/google-api-php-client/src/contrib/Google_MirrorService.php(434): Google_ServiceResource->__call('list', Array)\n#3 /var/www/mirror-quickstart-php/index.php(142): google_TimelineServiceResource->listTimeline(Array)\n#4 {main}\n thrown in /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php on line 66
And in the index.php line 142 shows:
//Load cool stuff to show them.
$timeline = $mirror_service->timeline->listTimeline(array('maxResults'=>'3'));
I am trying using PHP with MSSQL Reporting Services, but without success... First, i tried using helloworld.php from SRSS SKD PHP, and returns this error:
Failed to connect to Reporting Service:
Make sure that the url (http://10.120.100.12/ReportServer/) and credentials are correct!
And trying using pure SoapClient:
Warning: SoapClient::SoapClient(http://10.120.100.12/ReportServer/ReportExecution2005.asmx) [function.SoapClient-SoapClient]: failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized in C:\xampp\htdocs\estudos\index.php on line 5
Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity "http://10.120.100.12/ReportServer/ReportExecution2005.asmx" in C:\xampp\htdocs\estudos\index.php on line 5
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://10.120.100.12/ReportServer/ReportExecution2005.asmx' in C:\xampp\htdocs\estudos\index.php:5 Stack trace: #0 C:\xampp\htdocs\estudos\index.php(5): SoapClient->SoapClient('http://10.120.1...', Array) #1 {main} thrown in C:\xampp\htdocs\estudos\index.php on line 5
Have a extra IIS configuration to make?
i am sure that use the same login and password used in web browser version. Need something more?
Thanks,
Celso
I'm assuming you're passing username/password - in that case NTLM authentication might be the issue. I'd recommend trying to enable basic authenticaiton to see if the problem goes away: http://msdn.microsoft.com/en-us/library/cc281309.aspx