ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SimplePie and intermittent EE 404 errors

February 26, 2009 10:33am

Subscribe [2]
  • #1 / Feb 26, 2009 10:33am

    jtnt

    137 posts

    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

  • #2 / Feb 26, 2009 10:43am

    Sue Crocker

    26054 posts

    jtnt, is there a particular reason you aren’t using Magpie?

  • #3 / Feb 26, 2009 10:49am

    jtnt

    137 posts

    I knew someone would ask that. Not sure if you mean the Magpie plugin or just using Magpie directly, but I have lots of reasons. Without getting too far into it, neither give me the control or data I want/need.

  • #4 / Feb 26, 2009 10:53am

    Sue Crocker

    26054 posts

    Without getting too far into it, neither give me the control or data I want/need.

    That’s fine. Since you’re using SimplePie, I’m going to move this post to HowTo for the community to comment on.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases