I've been seeing this warning pop up for many people using WP since WP 1.0 and it just appeared for me again after I upgraded from WP 1.02 -> 1.2. Can we please get an official fix for this problem?
Yes, I have 10 categories but none are displayed. Yes I can easily create new categories but those don't show up either.
Summary of problem:
This line of code:
<?php wp_list_cats(); ?>
causes this warning to appear:
Warning: Invalid argument supplied for foreach() in /home/myblog/wp-includes/template-functions-category.php on line 304'
My configuration: MySQL 4.x, PHP 4.36, FreeBSD