• Actually two errors maybe related:
    1. When adding a tag (or any taxonomy) using the built in admin panel (wp-admin/edit-tags.php). The button seems to do nothing, but the new term is added and is visible when the page is refreshed.

    2. Deleting a term from the same admin panel using the quick (hover-over) delete link gives an error “An unidentified error has occurred.”, but again, the term really is deleted when that page is refreshed. Deleting it using bulk actions works normally.

    more info on issue 1 … using firebug and the console tab when clicking the add button reveals a jquery error “TypeError: res.responses[0] is undefined” on line 46 of tags.js It apparentley has something to do with parents but this errors show us on both hierarchical and non-hierarchical taxonomies.

    more info on issue 2, the hover-over delete link uses jquery/ajax as well and the response is “1” without the quotes. I think the bulk delete does not use ajax since there is no post/response activity in teh console tab.

    others have had this problem and apparently have resolved it by removing blank lines or extra leading spaces in php files, but that is like a finding a needle in a haystack.

    Can anyone help with this? … In the meantime, I’m going to go through the process of one-by-one deactivating plugins that have anything to do with taxonomies unit I find the conflict. grrrrr.

Viewing 1 replies (of 1 total)
  • Thread Starter Ron Strilaeff

    (@ronstrilaeff)

    As usual, I make my own problems and sometimes solve them 🙂

    In what seems like a completely unrelated php file, I had entered two newlines at the end of a program file that added a meta box to the post edit form.

    So the rule of thumb here is there is no need for the closing ?> and if you do stop and restart the php code in order to insert some literal html or script, do not insert any blank lines. Apparently they get returned in ajax responses and can screw things up in seemingly unrelated code.

    mikeschinkel describes the issue well here

Viewing 1 replies (of 1 total)
  • The topic ‘Add New Tag Error’ is closed to new replies.