Support » Plugin: WP Ajaxify Comments » jQuery Object blockUI

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author janjonas

    (@janjonas)

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

    faeronsayn

    (@faeronsayn)

    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.

    Plugin Author janjonas

    (@janjonas)

    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.

    faeronsayn

    (@faeronsayn)

    Where is the first include?

    faeronsayn

    (@faeronsayn)

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

    Plugin Author janjonas

    (@janjonas)

    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>

    faeronsayn

    (@faeronsayn)

    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.

    Plugin Author janjonas

    (@janjonas)

    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…

    faeronsayn

    (@faeronsayn)

    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.

    faeronsayn

    (@faeronsayn)

    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.

    Plugin Author janjonas

    (@janjonas)

    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…

    faeronsayn

    (@faeronsayn)

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

    Plugin Author janjonas

    (@janjonas)

    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.

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

    Plugin Author janjonas

    (@janjonas)

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘jQuery Object blockUI’ is closed to new replies.