Title: how to install / reference template.php replacement
Last modified: August 20, 2016

---

# how to install / reference template.php replacement

 *  [swmagic999](https://wordpress.org/support/users/swmagic999/)
 * (@swmagic999)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/)
 * We’ve taken an old site (pre-3 WP) and upgraded to 3.4.2. But we are getting 
   an error on a page:
 *  Warning: array_slice() expects parameter 1 to be array, null given in /home/
   content/k/p/w/kpw2006/html/4/wp-content/themes/calhousing/template-rss.php on
   line 51
 *  Warning: array_reverse() [function.array-reverse]: The argument should be an
   array in /home/content/k/p/w/kpw2006/html/4/wp-content/themes/calhousing/template-
   rss.php on line 52
 *  Warning: Invalid argument supplied for foreach() in /home/content/k/p/w/kpw2006/
   html/4/wp-content/themes/calhousing/template-rss.php on line 54
 * I installed WP-Debug, et.al. to discover that template-rss.php has been deprecated
   as of WP 3 and it recommends using Simplepie.php:
 * Message in WP-Debug “Use wp-includes/class-simplepie.php instead.
    Deprecated
   in version 3.0.”
 * How do I fix WP to reference that?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186157)
 * > We’ve taken an old site (pre-3 WP) and upgraded to 3.4.2.
 * How exactly did you upgrade? By following the instructions in [Upgrading_WordPress_Extended](http://codex.wordpress.org/Upgrading_WordPress_Extended)?
   If not, did you make a pre-upgrade database backup?
 *  Thread Starter [swmagic999](https://wordpress.org/support/users/swmagic999/)
 * (@swmagic999)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186170)
 * No, mostly because the original site had a Pharma hack that the programmer before
   us could not resolve (and we had to let it go for fear of our lives!)
 * Instead, we copied the theme and exported the pages/posts. then we created a 
   new WordPress site, copied the theme folder and imported the pages/posts. Ultimately
   we discovered the hack resided in the TimThumb software (now there’s irony, eh?)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186177)
 * Where did you obtain this theme from? It’s the theme that is causing your problems.
 *  Thread Starter [swmagic999](https://wordpress.org/support/users/swmagic999/)
 * (@swmagic999)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186182)
 * Yup. Guessed that one too. Any references would be helpful.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186286)
 * Where did you obtain this theme from?
 *  Thread Starter [swmagic999](https://wordpress.org/support/users/swmagic999/)
 * (@swmagic999)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186307)
 * The original programmer wrote it and has since left. We are, as they say, left
   in the lurch.
 * [http://calhsng.org/policy-news/housing-across-the-state/](http://calhsng.org/policy-news/housing-across-the-state/)

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

The topic ‘how to install / reference template.php replacement’ is closed to new
replies.

## Tags

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

 * 6 replies
 * 2 participants
 * Last reply from: [swmagic999](https://wordpress.org/support/users/swmagic999/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/how-to-install-reference-templatephp-replacement/#post-3186307)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
