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

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)

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

;;;;;;;;;;;;;;;;;;

; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On

Which is already On.

So what could be the problem now?

Similar Posts

9 Responses to “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”

  1. Ted 24. Dec, 2010 at 12:49 am #

    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.

    [Reply]

    Ted Reply:

    also I have 1and1 as well. I installed WP myself, didn’t use their application installation service because it’s outdated.

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

    Ahmed Mobin Reply:

    Thanks dear this solved my problem

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

    Happiness Blog Reply:

    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!

    [Reply]

    Ajay Reply:

    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.

    [Reply]

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  2. Marcos 03. Mar, 2011 at 4:46 pm #

    Yeah! It’s Great solution!
    It Works!!!!!!!

    Thank you Ted!

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  3. Garrit 01. Apr, 2011 at 4:05 pm #

    That worked great Ted, THANK YOU!!!!

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  4. holly 13. Oct, 2011 at 1:55 pm #

    ahh thanks that saved my job!

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  5. hagar 18. Jan, 2012 at 3:06 am #

    thanks! its always the simple stuff that stops you the hardest LOL

    [Reply]

    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.