I’ve been using Digg Digg plugin for quite some time and found it very useful. It allows one click submission to various social media.
Today, out of nowehere, I start seeing the following error on one of my blogs.
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /wp-content/plugins/digg-digg/dd.class.php on line 693
Warning: file_get_contents(http://feeds.delicious.com/v2/json/urlinfo/data?url=.. [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in ../wp-content/plugins/digg-digg/dd.class.php on line 693
This blog is hosted on 1&1 web hosting.
Digg Digg plugin works fine on rest of my hosts which are hosted on dedicated servers, Bluehost, Hostgator etc.
It was quite strange.
The error clearly says that Host doesn’t allow remote connection? Weired.
Which means fopen is not turned on? That is certainly not the case as I’ve been using 1&1 since ages and in many other plugins and applications fopen works.
Next solution was to turn on allow_url_fopen in php.ini
;;;;;;;;;;;;;;;;;;
Which is already On.
So what could be the problem now?
I just made a php.ini file with only the line:
allow_url_fopen = On
in my wordpress directory. Fixed this error completely for me. Thanks, hope you fix your issue.
also I have 1and1 as well. I installed WP myself, didn’t use their application installation service because it’s outdated.
Thanks dear this solved my problem
Hi! Could you please post EXACTLY what this php.ini file would look like for those of us who are NOT php savvy?
I’m running into the exact same problem with WordPress on 1and1.com when trying to use Tweet Old Posts.
Many THANKS!
It is in the root of your website. Login using FTP and see if you can find this file, if not then send e-mail to your hosting support and request them to add that line.
Alternatively ask them to provide you the default php.ini file which you can modify and upload in the root of your site.
Yeah! It’s Great solution!
It Works!!!!!!!
Thank you Ted!
That worked great Ted, THANK YOU!!!!
ahh thanks that saved my job!
thanks! its always the simple stuff that stops you the hardest LOL
You can ask your hosting provider to help if you are not familiar how to setup private php.ini