WordPress.org

Ready to get started?Download WordPress

Forums

WP-Ajaxify-Comments
[resolved] Comments aren't Shown until Page is Refreshed Could Not Solve (11 posts)

  1. faeronsayn
    Member
    Posted 1 year ago #

    Okay, I know there is another thread made about this already. But the answer provided there did not help me at all. I also think the cause of my problem is slightly different and thus may require a different solution.

    Here is the console output when I try to submit the reply. Everything works, the green box appears at the top saying my comment is posted. But I can't see it until I refresh the page. The console say's the following.

    [WP-Ajaxify-Comments] Comment has been posted wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found comment URL 'http://www.mysite.net/with-post-url-here/#comment-666' in X-WPAC-URL header. wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Found unapproved state '0' in X-WPAC-UNAPPROVED wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Replace comment form... wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Anchor '#comment-666' extracted from comment URL 'http://www.mysite.net/with-post-url-here/#comment-666' wp-ajaxify-comments.js:68
    [WP-Ajaxify-Comments] Anchor element not found (selector: '#comment-666') wp-ajaxify-comments.js:68
    wpac_debug wp-ajaxify-comments.js:68
    jQuery.ajax.success wp-ajaxify-comments.js:224
    f.extend._Deferred.e.resolveWith jquery.min.js:16
    w jquery.min.js:18
    f.support.ajax.f.ajaxTransport.send.d

    I tried to change the Comment Form Selector, to comment-list that didn't help and completely removed ajax from the comments. The console says found everything when I reload a page with comments so that should be fine.

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

  2. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Hi faeronsayn,

    Thanks for your comment. Is your WordPress site public available? You can either post the link in this forum or send me a private message on http://blog.janjonas.net/contact.

    Regards,
    Jan

  3. faeronsayn
    Member
    Posted 1 year ago #

    You can visit my site here:

    http://www.phanime.net/subbed-yuru-yuri-season-2-online-episode-3/

    I was testing the comments here.

    Also the reply part is not ajaxified either.

  4. privaloops
    Member
    Posted 1 year ago #

    Hi,

    exactly the same log in my firebug, any solution ?

    Btw the plugin is great.

  5. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    @faeronsayn: Please try the following configuration:

    Comment form selector: #PostCommentForm
    Comments container selector: #CommentListWrapper
    Respond container selector: #RespondToPost

    Hope this helps.

    @privaloops: Could you send me a link to your WordPress site?

    Best regards,
    Jan

  6. privaloops
    Member
    Posted 1 year ago #

    Hi, my site is not available from outside, the only solution is to update your host file. I can give you the conf in a private message if you want

  7. faeronsayn
    Member
    Posted 1 year ago #

    @jonjonas

    that's awesome.

    That made it work :)

    I just have one question, is the "reply" feature not ajaxified?

    Whenever I click on reply on another posted comment it refreshed the page. So I am assuming that part of the comments is not ajaxified.

  8. privaloops
    Member
    Posted 1 year ago #

    Here is the log

    [WP-Ajaxify-Comments] Initializing version 0.5.2wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Found jQuery version '1.7.2'wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Found jQuery blockUI version '2.42'wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Search comment form(selector: '#commentform')... Found:

    [form#commentform wp-comments-post.php]wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Search comments container(selector: '#comments')... Found: [h4#comments] wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Search respond container
    (selector: '#respond')... Found: [div#respond]wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Initialization completed

    Then

    [WP-Ajaxify-Comments] Comment has been posted wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Found comment URL 'http://universpodcast.com/daclubhouse/episode/da-clubhouse-pres-more-than-just-a-dance/#comment-2562' in X-WPAC-URL header.

    wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Found unapproved state '0' in X-WPAC-UNAPPROVED wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Replace comment form...wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Anchor '#comment-2562' extracted from comment URL 'http://universpodcast.com/daclubhouse/episode/da-clubhouse-pres-more-than-just-a-dance/#comment-2562' wp-aja...r=0.5.2 (ligne 68)

    [WP-Ajaxify-Comments] Anchor element not found (selector: '#comment-2562')

  9. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    @faeronsayn: Your theme has take care of "ajaxifiying" the reply feature. This is not part of the plugin. I think you have to contact the developer of your theme.

    @privaloops: Please leave me a private message on http://blog.janjonas.net/contact. The debug output looks good, but most likely one of the selectors needs to be changed to support your theme.

  10. janjonas
    Member
    Plugin Author

    Posted 1 year ago #

    Both problems should be fixed.

  11. Suhas Naik
    Member
    Posted 12 months ago #

    I am also having the same problem when I am using the plugin on my KenFolios technology blog. I must also admit that I am using Amazon CloudFront CDN and not sure if this is causing the issue. Can someone help me get both the things working together.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic