Title: Google Analytics for WordPress &#8211; Fatal error message
Last modified: August 19, 2016

---

# Google Analytics for WordPress – Fatal error message

 *  Resolved [naturalgrace](https://wordpress.org/support/users/naturalgrace/)
 * (@naturalgrace)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-analytics-for-wordpress-fatal-error-message/)
 * Hi,
 * I’ve tried to install Google Analytics for Wordprss and got the error message
   below. I’ve no idea what it means or how to rectify it. I am not code literate
   so please sxplain it simply for me. I’ve looked around the website but can’t 
   find any solutions.
 * Fatal error: Call to undefined method: wp_error->get_items() in /nfs/c05/h01/
   mnt/69347/domains/natural-grace.co.uk/html/wp-content/plugins/google-analytics-
   for-wordpress/yst_plugin_tools.php on line 196
 * I think I am using WordPress version 2.8.5 but can’t see where it says that. 
   I’m seeing the option to upgrade to 3.0.1
 * Thanks in advance for your help
 * naturalgrace

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

 *  [marchenko.alexandr](https://wordpress.org/support/users/marchenkoalexandr/)
 * (@marchenkoalexandr)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-analytics-for-wordpress-fatal-error-message/#post-1689420)
 * to fix this problem replace code at line 196 from:
 * `$rss_items = $rss->get_items( 0, $rss->get_item_quantity(5) );`
 * to
 *     ```
       $rss_items = array();
       if (!is_wp_error( $rss ) ) {
       	$rss_items = $rss->get_items( 0, $rss->get_item_quantity(5) );
       }
       ```
   
 * and all will be ok
 *  Thread Starter [naturalgrace](https://wordpress.org/support/users/naturalgrace/)
 * (@naturalgrace)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/google-analytics-for-wordpress-fatal-error-message/#post-1689440)
 * Hi marchenko.alexandr,
 * The error message is not there now so I think things are ok now. Thank you for
   the coding. I will use it if I get the same error message in the future.
 * Thank you
    naturalgrace
 *  [marchenko.alexandr](https://wordpress.org/support/users/marchenkoalexandr/)
 * (@marchenkoalexandr)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/google-analytics-for-wordpress-fatal-error-message/#post-1689617)
 * this error will reproduce every time when plugin site rss feed will not work,
   anyway this is really not “Fatal error” so we may do not make any changes – nothing
   will happend
 *  [David](https://wordpress.org/support/users/dsanney/)
 * (@dsanney)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-for-wordpress-fatal-error-message/#post-1689704)
 * Just wanted to thank you marchenko for your solution. You saved me hours of pulling
   my hair out 🙂

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

The topic ‘Google Analytics for WordPress – Fatal error message’ is closed to new
replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [David](https://wordpress.org/support/users/dsanney/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/google-analytics-for-wordpress-fatal-error-message/#post-1689704)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
