WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Throws javascript error in admin area (8 posts)

  1. Vayu Robins
    Member
    Posted 2 years ago #

    Hi.
    In the admin area the plugin creates a javascript error, something that has to do with the help function.

    The error:
    a(".contextual-help-tabs").delegate is not a function

    Vayu

    http://wordpress.org/extend/plugins/custom-post-type-ui/

  2. geemeetheway
    Member
    Posted 2 years ago #

    Got the same error. Any cue ?

  3. Ov3rfly
    Member
    Posted 2 years ago #

    You need at least jQuery 1.4.2 for "delegate". Maybe you need a jQuery update.

  4. geemeetheway
    Member
    Posted 2 years ago #

    Ov3rfly, you were right!

    I've take a look at custom-post-type-ui.php searching for jquery.

    I've commented lines 53 and 54 :

    <?php /* <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js">
    </script>*/ ?>

    Now the error is gone. Thank you for the hint.

  5. Sam_a
    Member
    Posted 2 years ago #

    Yes, I see this too in WordPress 3.3.2 + Custom Post Type UI 0.7.1 on admin.php?page=cpt_main_menu:

    Uncaught TypeError: Object #<Object> has no method 'delegate' common.dev.js:140
    (anonymous function) common.dev.js:140
    (anonymous function) common.dev.js:389
    Uncaught TypeError: Object #<Object> has no method 'delegate' wplink.dev.js:427
    River wplink.dev.js:427
    wpLink.init wplink.dev.js:26
    n.extend.ready.n.readyList jquery.min.js:19
    n.extend.each jquery.min.js:12
    n.extend.ready jquery.min.js:19
    n.each.n.fn.(anonymous function) jquery.min.js:19

  6. Sam_a
    Member
    Posted 2 years ago #

  7. Brad Williams
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in the next version. Coming soon!

  8. Brad Williams
    Member
    Plugin Author

    Posted 2 years ago #

    CPTUI v0.7.2 fixes this issue

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic