Title: [Plugin: Category Templates] Nice-BUT PHP error
Last modified: August 19, 2016

---

# [Plugin: Category Templates] Nice-BUT PHP error

 *  Resolved [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * (@thorhammer)
 * [17 years ago](https://wordpress.org/support/topic/plugin-category-templates-nice-but-php-error/)
 * When turning PHP error messages on, I get this:
 * Warning: Invalid argument supplied for foreach() in /path/to/my/site/httpd.www/
   wp-content/plugins/category-templates/cat-templates.php on line 91
 * Warning: Invalid argument supplied for foreach() in /path/to/my/sitehttpd.www/
   wp-content/plugins/category-templates/cat-templates.php on line 99
 * The plugin works, but, these error messages must tell that something is wrong,
   or?
 * [http://wordpress.org/extend/plugins/category-templates/](http://wordpress.org/extend/plugins/category-templates/)

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

 *  [aarongloege](https://wordpress.org/support/users/aarongloege/)
 * (@aarongloege)
 * [17 years ago](https://wordpress.org/support/topic/plugin-category-templates-nice-but-php-error/#post-1191288)
 * Sorry about that. Didn’t force the variable as an array in the foreach() statement,
   so when it wasn’t, it returned that error.
 * Should be fixed in 1.0.4 now. 🙂
 *  Thread Starter [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * (@thorhammer)
 * [17 years ago](https://wordpress.org/support/topic/plugin-category-templates-nice-but-php-error/#post-1191446)
 * Excellent, the plugin runs without any error. Thanks for a really useful plugin!

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

 The topic ‘[Plugin: Category Templates] Nice-BUT PHP error’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [ThorHammer](https://wordpress.org/support/users/thorhammer/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/plugin-category-templates-nice-but-php-error/#post-1191446)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
