Connection refused for fb and twitter
Permalink Browser Info Environment
Hi, we've just moved our site from staging to the live environment but we get the following errors for both Facebook and Twitter:
it seems our server doesnt allow php to open remote pages, is that right?
we are on a shared hosting package so we cant really change must about that environment. is there any way around this error that you know of?
(we dont need the count at all, and we arent using "Show number of likes or tweets if available"
Thanks,
Vauneen
Warning: file_get_contents(https://graph.facebook.com/fql?q=SELECT%20like_count%2C%20share_count%2C%20total_count%20FROM%20link_stat%20WHERE%20url%3D%27https%3A%2F%2Fwww.legalwise.co.za%2Findex.php%2Fhelp-yourself%2Flegal-articles%2Farrests%2F%27): failed to open stream: Connection refused in /var/www/vhosts/amorphous/packages/d3_social_sharing/blocks/d3_social_sharing/controller.php on line 68 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=https%3A%2F%2Fwww.legalwise.co.za%2Findex.php%2Fhelp-yourself%2Flegal-articles%2Farrests%2F): failed to open stream: Connection refused in /var/www/vhosts/amorphous/packages/d3_social_sharing/blocks/d3_social_sharing/controller.php on line 76
it seems our server doesnt allow php to open remote pages, is that right?
we are on a shared hosting package so we cant really change must about that environment. is there any way around this error that you know of?
(we dont need the count at all, and we arent using "Show number of likes or tweets if available"
Thanks,
Vauneen
Type: | Pre-Sale |
---|---|
Status: | Resolved |
If "show_likes" is set, it will call that function. I don't know which version you are using, but it should be ok, right?
If you can't get it to work, you can always create an override of the view.php file.