Modules being used:

  • Flag
  • Views
  • Flag Views Refresh (drupal.org/project/views_flag_refresh)
  • Quick Tabs (drupal.org/project/quicktabs)
  • Session API

The issue only applies to anonymous users flagging content. The same procedure for authenticated users works correctly.

Please see this example page on my website - http://tinyurl.com/69xaha3. There is a Quick Tab block (created from a view that uses Ajax) called "My Shopping List" half way down the page. Users can use this block to add and remove nodes from their shopping list by adding and removing flags.

When the user flags a node the "Flag Views Refresh" module jumps in and refreshes the block's View so it appears in their shopping list straight away.

So far, so good!

This works fine unless an anonymous user flags a node and then unflags it again immediately. At the point the user is prompted to login (by Login Tobaggon) and receives a "You must have JavaScript and cookies enabled in your browser to flag content" error message.

If the anonymous user instead hits the browser's refresh button in between flagging and unflagging the content (or browses to a different node) then everything works correctly.

Any ideas please?

Comments

mrtbc’s picture

Status: Active » Fixed

Fixed. There is only an error if the Flag/Unflag links are in the block. If I move them to the main page then everything works OK.

Status: Fixed » Closed (fixed)

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

Stan.Ezersky’s picture

When the user flags a node the "Flag Views Refresh" module jumps in and refreshes the block's View so it appears in their shopping list straight away.

So far, so good!

This works fine unless an anonymous user flags a node and then unflags it again immediately. At the point the user is prompted to login (by Login Tobaggon) and receives a "You must have JavaScript and cookies enabled in your browser to flag content" error message.

I have the same problem for Flag 7.x-2.0