Fatal error: Call to undefined method WP_Error::get_items()

by Jhet Bhlak on October 31, 2012

I’ve been running into this issue on one of my pages for a while now and I wasn’t sure how to fix it. Thanks to danazz09 I have the solution.


The Problem

The short story is, I’m reading an rss feed from Yahoo Pipes, trimming the contents and displaying it on a WordPress page on a site of mine. I’ve been getting the, “Fatal error: Call to undefined method WP_Error::get_items()” error randomly.


The Solution

Open up your feed.php file in your wp-includes folder and add the following line in the fetch_feed($url) function:


Add that line right before this line:


So far this has worked for me. Hopefully I don’t have any more WordPress issues the rest of the week!

{ 1 comment… read it below or add one }

divya October 19, 2015 at 10:21 pm

you are provided solution then after my problem can’t solve so give another solution so plaese

Previous post:

Next post: