Title: [Plugin: Better WP Security] I&#039;m getting a error
Last modified: August 20, 2016

---

# [Plugin: Better WP Security] I'm getting a error

 *  Resolved [wanaifieds](https://wordpress.org/support/users/wanaifieds/)
 * (@wanaifieds)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/)
 * Fatal error: Call to undefined method WP_Error::get_items() in /home/content/
   58/9726158/html/wp-content/plugins/better-wp-security/lib/bit51/bit51.php on 
   line 353
 * [http://wordpress.org/extend/plugins/better-wp-security/](http://wordpress.org/extend/plugins/better-wp-security/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [mja_adam](https://wordpress.org/support/users/mja_adam/)
 * (@mja_adam)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/#post-2994692)
 * Got the same error also..
 *  [Cr00zng](https://wordpress.org/support/users/cr00zng/)
 * (@cr00zng)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/#post-2994697)
 * Same here…
 * Line 353 suppose to display the last five entries from the WP forum:
 *     ```
       function news() {
   
       	include_once( ABSPATH . WPINC . '/feed.php' ); //load WordPress feed info
       	$feed = fetch_feed( $this->feed ); //get the feed
       	$feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items, line 353
       	$content = '<ul>'; //start list
       ```
   
 * The chances are that the functionality of BWS is not impacted by this error…
 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/#post-2994799)
 * Thanks for the heads up. Feedburner deleted my feed after combining accounts.
   This should now be working fine.
 *  [hasbehas](https://wordpress.org/support/users/hasbehas/)
 * (@hasbehas)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/#post-2994867)
 * Hi,
 * I am still getting this error on a few blogs.
    using latest version. And the 
   plugin seems to be NOT working. Not emaling db backups too.
 *  [onebrightspark](https://wordpress.org/support/users/onebrightspark/)
 * (@onebrightspark)
 * [13 years ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/#post-2994895)
 * Hi all,
 * I am getting the same issue on several of my sites but only the ones using themes
   builder and child themes.
 * I put in a support request to them and they have some useful info hopefully to
   help provide a fix?
 * Chris Jean – their developer guru (who is really helpful also) suggested:
    ___________________________________
 * The problem is that the code in Better WP Security is not properly handling the
   value returned by the fetch_feed function. While the codex listing for that function
   doesn’t list that it can return a WP_Error object in the event of an error, the
   example code does show checking to ensure that the returned value is not an error.
   However, Better WP Security’s code is not doing this. Specifically, it is doing
   the following:
 * ‘
    $feed = fetch_feed( $this->feed ); //get the feed $feeditems = $feed->get_items(
   0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items ‘ Since the
   value of what the $feed variable actually holds is not checked, and it is simply
   assumed that the request to get the feed was successful, any failure to retrieve
   or parse the requested feed will end up causing a fatal error.
 * So, the cause of the error is a mistake in the coding of the Better WP Security
   plugin.
 * I recommend contacting the author of the plugin or creating a support request
   on its support forum and ask that this coding error is corrected. Feel free to
   copy and paste what I have provided here.
    ___________________________________
 * Hope this helps in some way to solving the problem which still seems to be effecting
   some of us.
 * Thanks
 * Jason

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Better WP Security] I'm getting a error’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=2980272)
 * [Solid Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 5 replies
 * 6 participants
 * Last reply from: [onebrightspark](https://wordpress.org/support/users/onebrightspark/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/plugin-better-wp-security-im-getting-a-error/#post-2994895)
 * Status: resolved