[Endless Horizon] Social Share

[Endless Horizon] Social Share 2.2.3

No permission to download
If it said that the operation timed out, then the only reason was that your server couldn't establish connection with Facebook within 500 milliseconds. The only way to possibly solve that is to increase cURL Timeout (ms) option. Try 1000 ms.
 
If it said that the operation timed out, then the only reason was that your server couldn't establish connection with Facebook within 500 milliseconds. The only way to possibly solve that is to increase cURL Timeout (ms) option. Try 1000 ms.
Thank you for your help, i set it as 2000 and i see now that different error (403 forbidden error)

Code:
XenForo_Exception: DEBUG: cURL (facebook): The requested URL returned error: 403 Forbidden - library/EndlessHorizon/SocialShare/Listener.php:35
Generated By: Unknown Account, A moment ago

Btw, why sometimes looks "zero" count bottom of the right corner and sometimes not ?
 
Btw, why sometimes looks "zero" count bottom of the right corner and sometimes not ?
This usually happen with Facebook only. Since 1.4.0, if you haven't filled Facebook App ID and Secret in Admin CP > Options > Facebook Integration, the add-on will use FQL (kinda obsolete) . It has a rate limit, but it's not very well documented. But, once you've hit the limit somehow, it'll temporarily return 403 HTTP error code. When you reach this limit, the add-on won't show any share count for Facebook.
And if you have filled Facebook App ID and Secret, then the add-on will use the newer Graph API. And its limit is quite well documented here:
Each each app is given an allotment of 200 API calls per user in any given 60 minute window.
But then, that limit isn't high enough. If more than 200 different pages (which have the "share this page" widget, e.g. threads) gets visited within 60 minute, you'll reach the limit. Ignore the "per user" part. The method that I added in 1.4.0 will only use your App ID and Secret, so the limit is 200 API calls for the whole forums.

I haven't seen my site reaching API rate limit for Twitter and Google+ though (I'm not currently using share counts for any other sites). So I guess I can safely assume that their rate limit is much higher or possibly nonexistent.
 
I didn't fill the facebook app id on our board so we dont have social integration.

So, we catching the facebook api call limits, right?
 
I enter the facebook api id and secret key to our facebook integration but still i can't see the share count!!
 
I am interested in this mod, but I wish to know, does this (or how would I) disable this from appearing in private or staff forums typically not viewable to the public?
 
@Mark T By default, there's no way to prevent that yet. You'll have to somehow check whether guest has the permission to view the current node, and then prevent the sidebar from loading. I don't know how to do it with a simple template conditionals yet, so I guess you'll have to wait for a while till I figure it out.
@bibitbunga Try to enable "cURL Debug" and "Cache Hit Debug" options. After that, load a random page, and show me the logs in your Admin CP's Server Error Logs.
 
@Mark T By default, there's no way to prevent that yet. You'll have to somehow check whether guest has the permission to view the current node, and then prevent the sidebar from loading. I don't know how to do it with a simple template conditionals yet, so I guess you'll have to wait for a while till I figure it out.
@bibitbunga Try to enable "cURL Debug" and "Cache Hit Debug" options. After that, load a random page, and show me the logs in your Admin CP's Server Error Logs.
Hi

Image attached. Thanks before my mate Bobby :)

error-debug.webp
 
@bibitbunga You sure that you have cURL enabled? For some reason it couldn't fetch anything, but there was no error available either.

Try to make a new PHP file with these contents:
PHP:
<?php
var_dump curl_version();
then show me the content.

And for the time being, you can try to enable "Disable cURL" option, so that the add-on will use file_get_contents() function instead.
 
@bibitbunga You sure that you have cURL enabled? For some reason it couldn't fetch anything, but there was no error available either.

Try to make a new PHP file with these contents:
PHP:
<?php
var_dump curl_version();
then show me the content.

And for the time being, you can try to enable "Disable cURL" option, so that the add-on will use file_get_contents() function instead.
Hi @BobbyWibowo I have uploaded the php content but if I load the URL, it shows blank.. http://www.kebunpedia.com/dumpcurl.php

Or was I doing something wrong?
 
image.webp I have noticed share count errors with latest version. I have do not have them on at the moment. I have not had a lot of time to troubleshoot why this is. This is as soon as turned on. https://usaclash.com
 
Last edited:
@Brick The error messages were pretty much self-explanatory. Your server couldn't resolve those hosts for some reason. It might have something to do with your cURL extension or your server firewall. It could also be simply a temporary issue. Anyway, it shouldn't have anything to do with the add-on itself (error messages with "cURL" prefix after the "DEBUG" prefix were being extracted directly from the cURL extension using curl_error function).
You can Google for similar issues and you'll find quite a lot of them:
https://stackoverflow.com/questions...couldnt-resolve-host-http-www-yahoo-com-xampp
https://serverfault.com/questions/6...-6-couldnt-resolve-host-mirrorlist-centos-org
http://ubuntuforums.org/showthread.php?t=2206748
https://www.centos.org/forums/viewtopic.php?f=16&t=8892&start=10
 
I see. I had thought I had everything working. Notice, some areas are missing counters due to this. I can change the cache prefix and they show for a while. But, my server is not playing nice with wanting to fetch new counts.
 
  1. Can I use share counts without cURL?
    Yes, you can. By default, if you don't have cURL enabled, the add-on will usefile_get_contents instead. But then, you won't have the ability to set timeout. And if you want to prevent the add-on from using cURL even though you do have cURL, you can enable "Disable cURL" option on Admin CP.

If you want to include it, file_get_contents actually supports setting a per-call-timeout:
Code:
$ctx = stream_context_create(array('http'=>
    array(
        'timeout' => 0.5,  //In Seconds
    )
));

echo file_get_contents('http://example.com/', false, $ctx);
(source)
 
@katsulynx Ah! All this time I prioritized cURL over file_get_contents, so I haven't really searched for more info about it. Anyway, thanks! I'll try to add that with the next update, someday.
 
Back
Top Bottom