I’m using SimplePie to bring in outside RSS feed content into a page. The code that is on my EE template is simply calls to a class that then uses SimplePie to grab and parse a feed and return HTML to my page.
What happens every so often, however, is that EE throws the 404 page. This is after about a 20-second or so delay when loading the page. Reloading the page once or twice “fixes” it and the expected page, with all the right feeds on it, loads.
This only happens with uncached (by SimplePie) feeds. So, I’m thinking it is something going on with SimplePie not being able to grab a feed or something.
The thing is, I’ve put in error checking that I know works. So, for example, if a feed can’t be loaded, an error is returned and the script exits out and the next object instantiation continues. So, if there was a problem with any one feed, that shouldn’t affect the rest of the page/template load. (I’ve tested this with purposefully bogus feed URLs or otherwise bad feeds, and it errors out as expected, continuing to load other feeds.)
I’ve increased the php execution time limit to the max the host allows, and done the same inside of Simplepie to increase how long it waits for external feeds to load.
Basically, I can’t figure out why EE would be sending a 404 page here. So, can anyone try to help me sort this out, please?
I’m using 1.6.7 build 20090211.
TIA!
Moved to HowTo by Moderator