WordPress.org

Ready to get started?Download WordPress

Forums

Problem with wp_list_categories going into infinite loop (3 posts)

  1. bitrot
    Member
    Posted 7 years ago #

    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: http://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

  2. drmike
    Member
    Posted 7 years ago #

    Check to see if you have a copy of cron.php in your root. There's a number of threads already on the subject. It may be missing from your install.

  3. bitrot
    Member
    Posted 7 years ago #

    Hi drmike.

    Do you mean the root of my user account or my WP installation? I've got a cron.php in the wp-includes folder but nowhere else.

    Any chance you could point me to any of the threads you're referring to? I've found this one but it seems to be inconclusive.

    I'm getting out of my depth with PHP here and besides I only have FTP access to my host so I can't do much about inspecting what's going on there, looking at the PHP installation, or whatever. Any further help will be greatly appreciated!

    (I had to chuckle when I saw this on my way in here: More simply, WordPress is what you use when you want to work with your blogging software, not fight it. ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic