If you do a phpinfo(), does it show that allow_url_fopen was set to On? Did you remember to restart your webserver after making the change?
Also, can you show us the code that causes this error? For example, are you trying to include()/require() a remote file?