WordPress.org

Ready to get started?Download WordPress

Forums

WP-Ajaxify-Comments
jQuery Object blockUI (16 posts)

  1. faeronsayn
    Member
    Posted 1 year ago #

    Sorry if this error has already been reported, but I couldn't seem to find it.

    Uncaught TypeError: Object function (a,b){return new p.fn.init(a,b,c)} has no method 'blockUI'

    http://wordpress.org/extend/plugins/wp-ajaxify-comments/

  2. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Could you please send me a link to a page where I can reproduce the problem?

  3. faeronsayn
    Member
    Posted 1 year ago #

    Sorry for such a late reply.

    But here is a page that you can use that has the error: http://phanime.com/48639/makai-ouji-devils-and-realist-online-episode-1/

    Each page with the comments form on it has the error. Because of this error the ajax submission or normal submission for that matter does not work.

  4. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    The problem is that your page includes jQuery twice. The second include overrides/deletes all jQuery plugins (like the blockUI plugin).

    On http://phanime.com/48639/makai-ouji-devils-and-realist-online-episode-1/ you find the second include in line 712:

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>

    You have to find out if your theme or any other plugin causes this script tag...

    Hope this helps.

  5. faeronsayn
    Member
    Posted 1 year ago #

    Where is the first include?

  6. faeronsayn
    Member
    Posted 1 year ago #

    I need to see the code, is it local or hosted elsewhere like google.

  7. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    You just have to take a look into the source code of your page:

    Line 94.
    <script type='text/javascript' src='http://phanime.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script>

  8. faeronsayn
    Member
    Posted 1 year ago #

    Alright, I've removed the second jQuery call. Now a red border appears whenever I type something in the comment box and when clicking post comment nothing happens. As for the console errors, I don't see anything either.

  9. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Now you get the error:
    "TypeError: $ is not a function" (line 713)

    in this line
    "$(document).ready(function(){"

    => "$" needs to be replaced by "jQuery"

    I would recommend to disable all plugins and then reactivate them step by step and always take a look at the JavaScript console of the browser to find out which plugin causes the erro.

    Hope this helps...

  10. faeronsayn
    Member
    Posted 1 year ago #

    Why does $ need to be replaced by jQuery? I've been using it before and it hasn't caused any problems. Anyway, I have replaced it by jQuery WP-Ajaxify-Comments plugin is still not working. The comments are just not being posted.

  11. faeronsayn
    Member
    Posted 1 year ago #

    You can try it here: http://phanime.com/48191/love-lab-online-episode-3/

    I've also enabled debug mode, and it didn't show anything wrong there.

  12. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    you have to use jQuery instead of $ because jQuery by default WordPress includes jQuery in the "no config mode" (see http://blog.janjonas.net/2012-04-15/wordpress-jquery-fix-javascript-error-is-not-a-function).

    As far as I've tested your page the WP-Ajaxify-Comments plugin is working...

  13. faeronsayn
    Member
    Posted 1 year ago #

    I wonder why it isn't working for me. Does it show a red border when you start typing?

  14. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, but the red border is not caused by my plugin. This functionality is part of your theme or any other plugin. When I typed in all information I was able to submit a comment which was handled/ajaxified by the WP-Ajaxify-Comments plugin.

  15. faeronsayn
    Member
    Posted 1 year ago #

    It seems to work perfectly fine when logged out. However, when logged in you are not able to submit a comment.

  16. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Could you provide me login credentials to reproduce the problem?
    You can send me a private message here: http://blog.janjonas.net/contact

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags