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:
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
sumeetwork
View Replies:
A3020 replied on at Permalink Reply
A3020
Take a look at this file:https://github.com/akodde/d3_social_sharing/blob/master/blocks/d3_so...

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.
A3020 replied on at Permalink Reply
A3020
This has been changed in version 1.5. Thanks.

concrete5 Environment Information

# concrete5 Version
5.6.1.2

# concrete5 Packages
Advanced Forms (1.10.3.2), Awesome Table (1.0.4), Dynamic Iframe (1.61), Facebook OpenGraph Tags (0.9.1), Load jQuery UI (1.4.3), Metaphor Blocks (1.0.0), Metaphor Grid (1.0.0), Neuron Responsive C5 Theme (1.0.1), Social Sharing (1.3).

# concrete5 Overrides
blocks/image, blocks/autonav, js/registration.js, css/jquery.remodal.css, css/customBK20141201.css, css/custom.css, single_pages/join-now-thankyou.php, single_pages/call-me-submit-codeBK.php, single_pages/callme-thankyoucode-.php, single_pages/head.jpg, single_pages/submit.php, single_pages/submit-final---.php, single_pages/MFC43D2.tmp, single_pages/call-me-submit-code.php, single_pages/register-now.php, single_pages/curl_test.php, single_pages/submitBK.php, single_pages/join-now_BK20141008.php, single_pages/test.php, single_pages/css, single_pages/join-nowBK.php, single_pages/join-now-product---.php, single_pages/join-now.php, single_pages/submit---.php, single_pages/call-me-submit-wap.php, single_pages/callme-thankyou.php, single_pages/validateid.php, single_pages/registration-form.php, single_pages/contact-thankyou.php, single_pages/submit-finalBK.php, single_pages/call-me-submit-code---.php, single_pages/backup-20140714, single_pages/submit-final.php, single_pages/join-now-product_V.php, single_pages/phpinfo.php, single_pages/join-now-product.php, single_pages/backup-final form, single_pages/redirect-joinnow.php, single_pages/join-now-product-code.php, single_pages/join-now-code.php, single_pages/submit-code.php, single_pages/call-me-back-codeBK20141107.php, single_pages/callme-thankyoucode.php, single_pages/call-me-back-code-.php, single_pages/callme-thankyoucodeBK20141107.php, single_pages/submit-final-code.php, single_pages/call-me-back-code.php, single_pages/test - Copy.php, single_pages/call-me-back-code_BK20141008.php, single_pages/join-now-product_BK20141008.php, single_pages/call-me-backBK.php, single_pages/join-now_bkp31012014.php, single_pages/join-now-product_bkp31012014.php, single_pages/join-now-productBK.php, single_pages/backup, single_pages/join-now-thankyou-BK13032014.php, tools/fixdb.php

# Server Software
Apache/2.2.15

# Server API
apache2handler

# PHP Version
5.3.3

# PHP Extensions
apache2handler, bz2, calendar, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, json, ldap, libxml, mbstring, mysql, mysqli, odbc, openssl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, Reflection, session, shmop, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 2M
ldap.max_links - Unlimited
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.