Danny Pugh
asked 8 years ago

When submitting a comment on a question, the loading bars show but the comment never displays. On refresh, the comment does show so it’s just an issue with the javascript page update. Looks like it’s not able to update the page due to a the JS error below, but I have no idea how to fix this. Any ideas?

[Error] Error: Syntax error, unrecognized expression: <li id="comment-8" class="comment byuser comment-author-dpugh even thread-even depth-1 dwqa-comment"> …

append_comment dwqa-single-question.js:145
success dwqa-single-question.js:253

1 Answers
Allen
answered 8 years ago

@Danny : hi mate, i’ve just checked the the issue that you provide here, and didn’t see any bug like that. Please send me your site so i can check the reason why it happened on your site.
It’ll be much better if you send me the access to your site via private answer too. Thanks

danielwpugh
replied 8 years ago

Added info in a private answer below. Thanks for your help!

nobita
replied 8 years ago

@Danny: hi, i just check your website and i’t conflict between your theme and our plug-in javascript, to resolve it, i just comment this code at your functions.php file, :

if (!is_admin()) {
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"), false, '1.9.1');
    wp_enqueue_script('jquery');
}

Well, can you tell me why you need to resgister the jquery again?

Powered by DW Question & Answer Pro