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

    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.

    • Ted

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

    • Ahmed Mobin

      Thanks dear this solved my problem

    • 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!

      • Ajay

        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

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

    Thank you Ted!

  3. Garrit

    That worked great Ted, THANK YOU!!!!

  4. holly

    ahh thanks that saved my job!

  5. hagar

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

  6. Laptop Shop

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

Leave a Reply



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