Problem with wp_list_categories going into infinite loop
-
I’ve had a serious problem since I upgraded to WP 2.1 that’s brought my site to its knees. I’ve installed a completely fresh new WP 2.1 directory, and added a new version of K2 (0.95 RC: https://getk2.com/2007/01/k2-v095-release-candidate/). The only modifications I’ve made are some changes to the K2 style.css file.
I use the K2 config screen to add a categories listing to my sidebar. However, this only adds a flat list and I want a nested hierarchy. The problem occurs when I edit this line:
wp_list_categories(‘title_li=&show_count=1&hierarchical=0’);
(in wp-content/themes/k2/app/modules/categories.php)
I’ve replaced that with any of the following:
wp_list_categories(‘title_li=&show_count=1&hierarchical=1’);
wp_list_categories(‘title_li=&show_count=1&hierarchical=true’);
wp_list_categories(‘title_li=&show_count=1’);
(since the default is true)But the problem is always the same: when I load the blog the web server stalls. My web host informs me that Apache appears to be going into an infinite loop and it hogging 100% CPU time until it’s killed. Apache has to be restarted, and that line restored, in order for it to work again.
If this is the wrong place to raise a bug report maybe someone could kindly point me in the right direction. ??
Thanks,
Mark
- The topic ‘Problem with wp_list_categories going into infinite loop’ is closed to new replies.