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

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?


Comments

10 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. 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.

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

    2. Ahmed Mobin Avatar
      Ahmed Mobin

      Thanks dear this solved my problem

    3. Happiness Blog Avatar
      Happiness Blog

      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!

      1. 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.

  2. Marcos Avatar

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

    Thank you Ted!

  3. Garrit Avatar

    That worked great Ted, THANK YOU!!!!

  4. ahh thanks that saved my job!

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

  6. Laptop Shop Avatar
    Laptop Shop

    You can ask your hosting provider to help if you are not familiar how to setup private php.ini

Leave a Reply to Ted Cancel reply

Your email address will not be published. Required fields are marked *