WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Comment replys not working – Addcomment not defined?

[Resolved] Comment replys not working – Addcomment not defined?

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    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’ );
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Comment replys not working – Addcomment not defined?’ is closed to new replies.
Skip to toolbar