WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comment replys not working - Addcomment not defined? (3 posts)

  1. jeremyduffy
    Member
    Posted 4 years ago #

    On this page:

    http://www.jordans-town.com/comics/comic024

    When I click reply, it should move the form into the same div area as the comment I'm replying to, but it doesn't I checked and the code is exactly the same on this page as my other page where it does work.

    I get the JS error "addComment not defined" in firebug, but that doesn't make sense. It's as if there was a JS error somewhere that prevented the code from running properly, but it's not showing me any errors. Similarly, the plugin I have for comment ratings fails with a "ckrating not defined" or similar. Both of these functions are failing for some reason and I'm completely lost as to why.

  2. marthame09
    Member
    Posted 4 years ago #

    I've been getting a simular error not sure when it started but noticed it after upgrading to verson 2.9 and I was hoping with the new version it would be fixed, but it isn't.

    This is the error I'm getting

    "Fatal error: Cannot redeclare class services_json
    /home/******/public_html/blog/wp-includes/class-json.php on line 115"

    Never had a comment problem before but not really sure when they stopped working, just didn't think anything of it when I wasn't getting any more comments.

  3. jeremyduffy
    Member
    Posted 4 years ago #

    Solved it. I looked at another nested comments tutorial and found that I had missed an important part. Somewhere in your header (or before) you need to put this:

    <?php
    // Required for nested reply function that moves reply inline with JS
    if ( is_singular() ) wp_enqueue_script( 'comment-reply' );
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic