Title: random??? error with categories
Last modified: August 18, 2016

---

# random??? error with categories

 *  [ahreno](https://wordpress.org/support/users/ahreno/)
 * (@ahreno)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/random-error-with-categories/)
 * Everyonce in a while when i view my site (www.osterbrink.org/blog) i get this
   error under Categories:
    Warning: Invalid argument supplied for foreach() in /
   home/osterbri/public_html/blog/wp-includes/template-functions-category.php on
   line 304 then there is another line under it that’s similar besides the line 
   number. a simple refresh makes it all better…. Any ideas?

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/random-error-with-categories/#post-105596)
 * It’s odd that a refresh makes it better, but that error is usually related to
   an empty category.
 *  Thread Starter [ahreno](https://wordpress.org/support/users/ahreno/)
 * (@ahreno)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/random-error-with-categories/#post-105719)
 * i was getting the error when i only had one category (General) and it was far
   from empty…. i do now have 4 categories and one is empty, i’ll fix that and hope
   it solves the issue

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

The topic ‘random??? error with categories’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [ahreno](https://wordpress.org/support/users/ahreno/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/random-error-with-categories/#post-105719)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
