• hi,
    I am new in wordpress, for my blog I am writing a plugin for showing image gallery and slideshow where i am using jquery library. In admin setting I have included all the jquery related script through wp_enqueue_script() function. My admin setting section is working fine. But when I want to add a category or a tag, form for adding category or tag is not submitting, but if i refresh the page that category(which I wanted to add) is showing in the list. The error is-
    f.responses[0] is undefined
    in https://../wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,wp-ajax-response,admin-tags,inline-edit-tax&ver=188918f2fc244295e0fc7fde84669199
    can anyone please help me to find the solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dev_an

    (@dev_an)

    one more error is there, i think this error is also related with the previous one-
    XML or text declaration not at start of entity
    https://../wp-admin/admin-ajax.php
    <?xml version=’1.0′ standalone=’yes’?><wp_ajax><response action=’add-tag_0′><taxonomy id=’0′ position=’1′><wp-erro…

    I had the same issue on hierarchical taxonomies. It had something to do with how I was declaring my custom post type classes. After I put this into my functions.php rather than in a separate file the categorical taxonomy worked. also, the post categories didn’t work either until I moved this into functions.php:

    add_action( 'init', 'registerCustomPostTypes' );
    function registerCustomPostTypes() {
          global $cpt_event;
          global $cpt_attraction;
          $cpt_event        = new CPTevents();
          $cpt_attraction   = new CPTattractions();
    }

    The CPTevents and CPTattractions are my custom post type classes.

    I’m not too sure why this worked, maybe I had one too many <?php ?> tags floating around and my tactic worked. I’m not sure about your issue though. You figure it out?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing error f.responses[0] is undefined when adding category and tag’ is closed to new replies.