If you're getting 'URL file-access is disabled in the server configuration' errors on Media Temple servers then we have a solution for you.

The error occurs because Media Temple have disabled URL File Access on the server via the php.ini setting. You can override this by simply adding the following line to your .htaccess file

php_flag allow_url_fopen on

This should allow URL File Access and your error should go away.

Thanks very much!

Andrew Gill (not verified) on Mon, 10/26/2009 - 09:56

Thanks - this has fixed my xml problem! Cheers guys!

amazing Thank you soooomuch

Anonymous (not verified) on Sat, 11/14/2009 - 02:54

amazing
Thank you soooomuch solved by php issue.
the internet is the best!

Another alternative

Rhonnie (not verified) on Fri, 12/11/2009 - 01:19

This happens if we try to include an external file.
If it is internal file, we can just use "/../" to avoid this error.

Hence, instead of:

include(www.domain.com/file.php);

we can use

include(../file.php);

Either way, thank you for the tips =)

Thank you

Steve Comrie (not verified) on Sun, 03/07/2010 - 17:44

Worked like a charm.

Thanks

David (not verified) on Tue, 11/15/2011 - 05:26

Thanks a lot it worked great. I had errors occurring on my site and I could not figure it out. Your solution lead me here. Thanks for the tip.

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <img>
  • Lines and paragraphs break automatically.

More information about formatting options