Asides in Kubrick template cause in_category and array PHP errors?
-
I implemented the Asides code for the Kubrick template as described here:
https://blog.randomlog.net/archives/2005/01/28/implementing-matts-asides-with-wp-15/
However, I recently tracked down that it was generating an error every time that an uncategorized post is posted to the Weblog. The errors it generates are:
Invalid argument supplied for foreach() in /wp-includes/template-functions-category.php on line 410
in_array(): Wrong datatype for second argument in /wp-includes/template-functions-category.php on line 414
It is, most definitely, the code that is outlined on the above page; once it was removed (discovered through a period of trial and error), the errors ceased.
One could argue that it could be avoided by never posting an uncategorized post. However, del.icio.us’ automatic daily posting has a flaw with its category implementation, and thus every daily post of its links gets posted without a category, causing the error to occur on a nightly basis.
Any ideas what I can alter to get things working again?
- The topic ‘Asides in Kubrick template cause in_category and array PHP errors?’ is closed to new replies.