Uncaught CURLEXCEPTION in facebook login - php sdk - facebook

Sometimes, especially, when I am not logged in Facebook, an error shows in my login page with the code pasted from the php-sdk. You can see the output at http://jnfp.tk/login.php. When I refresh the page, sometimes the error goes and the correct output shows but sometimes, the following error shows up :-
Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:10:cf01:face:b00c:0:4: Network is unreachable thrown in /home/vhosts/www.jnfp.tk/src/base_facebook.php on line 977.
Please tell me how to fix it...

Related

moodle invalid response after successful userlogin

i was facing issue in moodle user was not able to logged in so i change the DB collation and user is now able to login into dashboard but i am also getting this error.
Now user is able to login but this popup error is coming.
invalidresponse
Invalid response value detected
File: /lib/externallib.php
Line: 425
Stack trace:
Error in response - Missing following required key in a single structure: tourconfig
Error code: invalidresponse
* line 425 of /lib/externallib.php: invalid_response_exception thrown
* line 250 of /lib/externallib.php: call to external_api::clean_returnvalue()
* line 59 of /lib/ajax/service.php: call to external_api::call_external_function()
For me, user was not able to login into Moodle and it was the dmlwrite exception. So i changed the DB collation of user table and it's started throwing an error after user logged in.
We are running this whole setup on digital ocean and due to some issue in CPU & Memory, i recycle my whole kubernetes cluster and error resolve automatically.
So as #adrian-sărmaș suggested clear cache and give it try for me maybe it was only issue of caching.

website html checker wc3validator but fatal error showing

when i have search my website url in wc3validator and last error showing
Fatal Error: Cannot recover after last error. Any further errors will
be ignored.
pt></head><body↩class="test-class cms-index-index cms-home"> <scri

Fatal error: Uncaught CurlException: 7: couldn't connect to host thrown in

Yesterday was fine, but today, suddenly, my web app report an error while accessing Facebook PHP API.
At first, the error was connection time out. So, I added the time in base_facebook.php, changed the variable
CURLOPT_CONNECTTIMEOUT => 10 into
CURLOPT_CONNECTTIMEOUT => 60
Now, my web app reports another error:
Fatal error: Uncaught CurlException: 7: couldn't connect to host thrown in xxx\src\base_facebook.php on line 972
Ah, I run my app on localhost in Windows (XAMPP 1.7.7).
For testing it, I also run the example codes from the newest facebook API in github.
I also have restarted my Apache server, and It still gives the same error.
This is probably a server configuration problem on your side.
Check whether the host has blocked the ports 80 and 443.

Uncaught CurlException: 7: Failed to connect

I have a live facebook application. Starting from last week, I keep getting
PHP Fatal error: Uncaught CurlException: 7: Failed to connect to 2a03:2880:2110:3f03:face:b00c:0:1: Network is unreachable
It is thrown in base-facebook.php file in facebook sdk 3.1.1 (Using the latest version)
What could be the cause?
Thanks in advance.
Maybe,you should check Network settings for IPV6.
at My application , Error continued to occur .
Setting up the network and Programming has not changed.
So , I've change Network settings for IPV6. I've solved it.

http://facebook.com to get property LocaFacebook JS Error - Permission denied to get property Location.href from http://www.mysite.com

Simply loading the standard Facebook connect JS framework and getting the following error:
Permission denied for facebook.com to get property Location.href /www.mysite.com
The error happens on line 127 in the file :
static.ak.connect.facebook.com/connect.php/en_US/js/Api/CanvasUtil/Connect/XFBML
Using FF 3.5.7 and Firebug 1.5.0
Is anyone else getting this error?
It's an issue falsely reported by Firebug. Nothing to worry about.