Garvin,garvinhicking wrote:Hi!
I need to check with jannis why the blog is down.
Sadly, PHP is VERY unforgiving when network stuff fails, there is often no way to catch those fatally network routing errors, because often PHP bails out due to timeout issues completely. I have no solution to that; detecting "down" sites is something thatI don't know how to do properly with PHP, or if it's even possible.
The only thing that could be done is to create a "fatal error" counter. Store a DB configuration value when the feed was last tried to be accessed, and reset that counter when the connection is made successfully. Then on the next run, the tool could detect a "non zero" counter and check it against the current timestamp. If it's older than, say 5 minutes, the plugin could be temporarily disabled for that site...?
Regards,
Garvin
You know what is really weird: in the past I have had another external RSS feed that was down, but then it just showed an error there and I just could ignore it till the feed was up again. I still had all Admin menu items there....
Maybe because this was the last feed?
The feed that did not work before was somewhere in the middle....
That's why it NEVER occured to me that this was due to a feed being down...