Topic-icon ipv6 error

Active Subscriptions:

None
10 years 5 months ago #38880 by moonsun
ipv6 error was created by moonsun
hi....

i get ipv6 error and cannot connect to facebook. i don't have any control over the server side.... is there a way to disable ipv6 connection?

thanks!
The topic has been locked.
Support Specialist
10 years 5 months ago #38883 by alzander
Replied by alzander on topic ipv6 error
I can investigate, but JFBConnect is setup to ask your server the 'best path' option for a connection. If your server reports that IPv6 is available, JFBConnect (really, PHP) will use it. If your server is incorrectly reporting that IPv6 is available, you'll likely run into more issues than just with JFBConnect. I'd highly recommend contacting your host and having them disable their IPv6 reporting to prevent this error.

Again, I will look, but it may take a few days to get an answer as we've never heard of this issue being an issue that can't be worked around. Additionally, and 'fix' we provide would have to be re-implemented with every update of JFBConnect.

I hope that helps get you started,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #38891 by moonsun
Replied by moonsun on topic ipv6 error
did ask the host to disable ipv6. hopes it will solve the problem.
TY for your support!
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #38896 by moonsun
Replied by moonsun on topic ipv6 error
ok host fixed ipv6 status.... still get error:

Facebook API Error: Failed to connect to 2a03:2880:f00a:401:face:b00c:0:1: Network is unreachable

Facebook Application configuration could not be loaded. Please check your App ID and Secret Key


what next?
The topic has been locked.
Support Specialist
10 years 5 months ago #38949 by alzander
Replied by alzander on topic ipv6 error
If that address is being returned, it means that the DNS on your server is still configured for IPv6. That's what's returning the address. Unfortunately, the outgoing request can't be made because a firewall or mis-configuration is actually blocking those IPv6 requests. I'd recommend contacting your host again to let them know that it's not resolved.

You can try the following, but you'll need to make it in every update of JFBConnect, and there's likely more places it'd have to be done as well, which would take some time to narrow down. In the /administrator/components/com_jfbconnect/assets/facebook-api/base_facebook.php file, around line 177, you'll see:
public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2',
    );
Update that to:
public static $CURL_OPTS = array(
        CURLOPT_CONNECTTIMEOUT => 10,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_TIMEOUT => 60,
        CURLOPT_USERAGENT => 'facebook-php-3.2',
        CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4,
    );
That's untested since I don't have a mis-configured server to test with, but it should hopefully work.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #38952 by moonsun
Replied by moonsun on topic ipv6 error
no go....
i get the same error after the fix....
any ideas?
The topic has been locked.
Support Specialist
10 years 5 months ago #38959 by alzander
Replied by alzander on topic ipv6 error
I'm sorry, I actually posted that wrong. Please update the , to an => in that last line, like:
public static $CURL_OPTS = array( 
        CURLOPT_CONNECTTIMEOUT => 10, 
        CURLOPT_RETURNTRANSFER => true, 
        CURLOPT_TIMEOUT => 60, 
        CURLOPT_USERAGENT => 'facebook-php-3.2', 
        CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, 
    );
I do hope that works for you!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #38973 by moonsun
Replied by moonsun on topic ipv6 error
ok. we are getting somewere.... not sure it's any better but i get a different error now:

Error
Facebook API Error: connect() timed out!

Facebook Application configuration could not be loaded. Please check your App ID and Secret Key

The topic has been locked.
Support Specialist
10 years 5 months ago #38985 by alzander
Replied by alzander on topic ipv6 error
A connect timeout means that the outgoing connection couldn't be established. That could be from many, many reasons, but is completely server related (firewall, ip blocking from Facebook for your server, etc).

Can you let me know when you're getting this message? Have you been able to run Autotune successfully? If not, can you tell me if the "Subscription Information" area at the bottom is filled in with your info? That will narrow things down a lot by letting us know if communication with sourcecoast.com is working.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 5 months ago #38998 by moonsun
Replied by moonsun on topic ipv6 error
hi
i get the message when i truy to save first page of autotune....

subscriber information shows correctly

thank you very much for the support... you worth the payment even when your component isn't working.... lol

p.s my website is rtl and partly hebrew is that got anything to do with the problem?
The topic has been locked.