oops - Failed to load Data

Home » Forums » RSS News Flash » oops - Failed to load Data


Registered User
2 posts

OK - not sure what the deal is. The page works fine in preview mode, but as soon as I publish it gives me the error "oops - failed to load"

Can this be a server thing with my provider? if so what do I do? What are my options?

http://trentonfumc.com/

Thanks,
Rob


VP of Software Development
12,623 posts
Online Now

There are two PHP functions which will need to be turned on by your host: allow_url_fopen and magic_quotes_gpc. Both are usually turned on by default but some hosts turn them off. Once you have them enable these, that error will go away. ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
Scott A. Swedorski - VP of Product Development
CoffeeCup Software Inc.
Phone: 678.495.3480


Registered User
70 posts

Below is Yahoo's help information on the allow_url_fopen issue in RSS News Feed. It's found here

http://help.yahoo.com/l/us/yahoo/smallbusiness/webhosting/php/php-37.html


Which PHP configurations are not available?

The PHP community has identified certain PHP configurations and directives whose misuse can result in insecure code. To help protect all of our customers, the following options will be disabled for all accounts beginning October 1, 2009:

•register_globals
•allow_url_fopen and its corollary, allow_url_include
These functions allow the developer to retrieve data, or open a file or retrieve file data, from a remote location, such as to load a site template from another file system. Note that for security concerns, register_globals is deprecated in PHP 5.3 and will soon be removed completely from PHP.

You or your developer can use more secure methods to accomplish the same goals. You may be able to rewrite scripts using allow_url_fopen, for example, to reference files locally using relative paths. You can also cURL to retrieve your remote data.

With allow_url_fopen and allow_url_include disabled, local inclusion using include(), include_once(), require(), and require_once() will still work normally.

Although we support the use of PHP with your site, we cannot help you write or debug your scripts. For help updating your scripts, we recommend that you contact your developer, review the PHP community's documentation on register_globals, or visit the PHP Group web site.

You will not be able to edit your own php.ini or use htaccess to reenable these functions. For concerns about the impact of turning off these functions on your site, please contact customer care.


Senior Advisor
7,565 posts

Sounds to me like Yahoo is not a competent hosting company after all. I would suggest you start looking for one that can actually handle the security issues involved in enabling the functions needed for using databases. Jo Ann

http://lbwebsites.com - Web Design & Web Hosting
http://cattownrescue.org ... Current project in the works, love cats! :)
http://northbaldwinliteracycouncil.org .... Our local Literacy Council

Due to spammers the below sites are not viewable outside the US, sorry guys :(
http://proudayou.com - My sons website for his music business
http://rockinwithmainstreet.com - My brother's band website


Senior Advisor
3,916 posts

I agree With The police officer (JoAnn), but still doesn't explain why the other pages work with the RSS news on them, so I would try re-uploading all the files again and see if that takes care of it. I couldn't find the swf, so........ then find another host! :)

Also I sent you an email from the link at the bottom of your page saying the same thing, did you receive? "It's A Smart Person That Asks"
http://bruzer.coffeecup.com



Temporary User
5,410 posts

They just don't want people using too many resources on the shared server and slowing everyone to a crawl. It can lead to exploits as well. CoffeeCup... Yeah, they are the best!


Registered User
70 posts

Tom is correct. Yahoo informed me that enabling the allow_url_fopen can leave your entire site vulnerable to hackers.

Nonetheless, I took a look at the php code for my news feed, and it appears that the script was written to use a three tier option for generating the intending code:

1. readfile (allow_url_fopen)
2. cURL
3. fsockopen

// First we try the easiest method readfile()
if(ini_get('allow_url_fopen') && function_exists('readfile'))

// If readfile() won't work we try cURL
elseif(extension_loaded('cURL'))

// If cURL is not available, we attempt to roll our own solution
// with fsockopen()

// If fsockopen open fails, then we have no more options. Alert the user that
// we are unable to fetch their feed.

There, even if Yahoo or anyother host has disabled the allow_url_fopen, the News Feed script should contine with the next alternative for the next two options before displaying the oops...failed to load message.

I'm wondering if I somehow add the My News feed to the Custom Feed list and assign a url to it, perhaps that might work. I'll give it a try anyway :/


Registered User
70 posts

Nope, adding the My News to Custom News Feeds and setting a URL to it's files on the server doesn't acheive anything. I suppose I'm desperate to make it work :(


Registered User
3 posts

Having the same problem: all feeds stopped working this week. Tried it on three different unrelated servers: nothing works anymore. I guess it's a php version problem. Can the program be updated?
(If not, I guess the program will be kind of useless).


Registered User
5 posts

Having the same issue with forms as well. There one minute then gone. Then back again.
Have it one three sites and all have the same issue.
Also have a major problem with update on VSD. Did a restore to 30 days ago and all works well. Windows 7 update did n ot like it I guess wonder if that is the same problem with news flash?
need coffee...... Scott R

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.