I get this error when using AJAX comment paging:

"An error occurred at //ajax_comments/js_load_thread/264?page=1"

This seems to be wrong in the JS on line 410 in turn_over_page():

ajaxPath = url.replace(/(.*?)\?(.*?)/g, Drupal.settings.basePath + '/ajax_comments/js_load_thread/' + Drupal.settings.ajax_comments_nid + '?$2');

There should not be a slash in front of ajax_comments - with my default base path of "/" the url returned looks like "//ajax_comments" and throws an error when paging. The line should be like so:

ajaxPath = url.replace(/(.*?)\?(.*?)/g, Drupal.settings.basePath + 'ajax_comments/js_load_thread/' + Drupal.settings.ajax_comments_nid + '?$2');

Thanks

CommentFileSizeAuthor
#2 766118-2.patch1.13 KBrjbrown99

Comments

janis_lv’s picture

hey, great. thanx, that fixed my comments too :)

rjbrown99’s picture

Status: Active » Needs review
StatusFileSize
new1.13 KB

Here's the patch from the original poster, created against the 6.x-1.x-dev branch. This partially fixed it for me - I can now page to the second page but can't click back to the first one. Can anyone else test and let me know your results?

rjbrown99’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.