I have a site that is using Views Infinite Scroll module, and the view has the Rate module used to present a thumbs-up "Like" rating for nodes in the view. After the user scrolls past several nodes and more content is loaded via AJAX, the Rate liking stops working, so in our experience the Rate module is not compatible when AJAX is used in a view.
I have changed the view to use a pager in the short term, and we're looking at creating some custom javascript/JQuery event listener to overcome the problem with Rate not being compatible with AJAX.
- 🇦🇹Austria jordik
Can you please test if it works with the LazyBuilder ✨ Use Lazy Builders to build widget form Needs work ?
- 🇦🇹Austria jordik
And can you please share more info about your setup and steps to reproduce? Error logs etc.?
- 🇳🇱Netherlands falco010 🇳🇱 The Netherlands
Hi all, we are having the same issue.
This is the console log error we get:
" An AJAX HTTP error occurred. HTTP Result Code: 404 Debugging information follows. Path: /views/ajax?page=1&ajax_form=1 StatusText: Not Found ResponseText: {"message":""}"
@JordiK I tried if it works with https://www.drupal.org/project/rate/issues/3283891 ✨ Use Lazy Builders to build widget form Needs work but unfortunately, that does not fix the issue.
Tested. Cannot apply Patch#6 and MR !7 in ✨ Use Lazy Builders to build widget form Needs work .
It didn!t work. Tested versions 3.1.0 and 3.0.x-dev- 🇺🇸United States Mirakolous
Line 266 of RateWidgetField seems to be where the issue lies.
I just removed these lines to get it working for me (I don't need the views portion of this widget)
// Mark the widget being part of a view and add the view url. $widget->set('isViewsField', TRUE); if (is_null($widget->get('viewsUrl'))) { if ($this->view->hasUrl()) { $widget->set('viewsUrl', $this->view->getUrl()); } }