Class-feed.php warning messages – how to suppress
-
I have a plugin that uses simplepie to pull in rss feeds inside wordpress. Sometimes, even with good rss feeds, the user will get this type of error message:
Warning: file_get_contents(some feed) [function.file-get-contents]: failed to open stream: No such file or directory in /wp-includes/class-feed.php on line 88
Since it’s very annoying to users to see this message, I would like to catch and suppress it. Is this even possible? I tried using $feed->get_error_message(); which will give me more information about the error, it doesn’t help me trap for the error since it’s coming from class-feed.php.
I haven’t seen any discussion on the web about this or how to solve this (again, not trying to solve there is an error – there is, especially from tumblr sites and others – there are lots of posts on the web about these problems), but suppressing the error message to the user.
Thanks
- The topic ‘Class-feed.php warning messages – how to suppress’ is closed to new replies.