WordPress.org

Ready to get started?Download WordPress

Forums

Add Category not refreshing list; error deleting category (7 posts)

  1. GotAloha
    Member
    Posted 3 years ago #

    I'm working on a friend's WordPress 3.0 install and she noticed a peculiar bug while posting a category. Although the category IS being added, it doesn't immediately appear in the list... the process seems to stall without updating the page. Only when the page is refreshed does the new category appear in the list.

    I'm not sure when this started to happen or what was done prior that could have triggered it. I have deactivated all plugins, but that didn't make any difference. I searched through the forum and Google which returned several similar problems, but I didn't find anything that helped.

    To duplicate the bug, I did the following:

    In the "Categories" section, I added a new test category. Upon clicking the "Add New Category" button, nothing seemed to happen. No feedback is given to inform whether the category has been created or if there had been an error.

    However, I then manually refreshed the page and the category does appear correctly within the category list.

    When deleting this test category, I noticed two scenarios:

    1. Clicking "Delete" when hovering over the new category's link correctly produced the red background momentarily, but the link remained in the list. I scrolled to the top of the page and saw the following error: "An unidentified error has occurred". Refresh the page again, and the category is indeed deleted and does not show up in the list.
    2. I repeated the above test and then instead checked the box next to the category link and then selected "Delete" from the Bulk Actions drop-down, and the delete action performs exactly how it is supposed to with no need to refresh.

    I realize that this error/bug is more of a nuisance than anything, but I would like to figure out why this is happening and what can be done to fix it. My primary worry is that some other less obvious actions are not occurring.

    Any help or suggestions would be greatly appreciated!

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

  3. kfawcett
    Member
    Posted 3 years ago #

    Did you figure this out? I'm having the same problem.

  4. johnibom
    Member
    Posted 3 years ago #

    I am running out many blogs and most of them are updated to the newer version.. I never got this problem.. it seems that any plugin which deals with the Categories directly or indirectly causes this error! or it might be 3.0 bug.. why don;t you update the wordpress to the newer version..

  5. luca.pantano
    Member
    Posted 3 years ago #

    hi!
    the problem is in functions.php

    in my case is:

    <?php
    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h4>',
    'after_title' => '</h4>',
    ));
    ?>

    bye bye

  6. estercma
    Member
    Posted 2 years ago #

    Someone findind solution?

  7. bitspan
    Member
    Posted 2 years ago #

    I found a solution to this: one of my plugins was echoing an empty line.

    The problem was that it looked like this:

    <?php
    /*
    Plugin Name: Custom Links
    etc.
    */
    ?>
    
    <?php
    class MyClassName
    etc.

    As you can see, there was a closing statement for php processor (?>) followed by an empty line and an opening statement <?php.

    This empty line confused WordPress. Once I removed it, everything started working OK.

Topic Closed

This topic has been closed to new replies.

About this Topic