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
Comments
Comment #1
janis_lv commentedhey, great. thanx, that fixed my comments too :)
Comment #2
rjbrown99 commentedHere'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?
Comment #3
rjbrown99 commentedThank you, committed.
http://drupal.org/cvs?commit=438162