The module does not work for users who are not logged in when ajax is activated.

The problem seems to be the missing ajax.js which can be loaded manually. Unfortunately this throws a javascript error:

Uncaught TypeError: Cannot read property '/en/rate/undo/node/11?destination=/en/node/11' of undefined
    at new Drupal.Ajax (ajax.js?ome4yd:428)

This must be fixed asap.

Comments

mogio_hh created an issue. See original summary.

maune’s picture

Yes, the problem is that ajax is not loaded as a dependency for the moment, so it's only usable when another module is loading it (like the admin toolbar for exemple, it's why it works for admins). This is a patch that will make it loaded as a dependency of the other module libraries.

maune’s picture

StatusFileSize
new734 bytes
maune’s picture

Assigned: Unassigned » maune
Status: Active » Needs review
timmerk’s picture

Thanks for the patch, Maune. Have one for Drupal 7?

sdstyles’s picture

Status: Needs review » Reviewed & tested by the community

The patch fixed the issue with missing core ajax library.

  • kevin.dutra committed f63a18f on 8.x-1.x
    Issue #2858106 by Maune: Not usable - Ajax breaks for anonymous users
    
kevin.dutra’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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