Permissions are set that Admin can manage all favorites.
authenticated user can manage own favorites.

For Admin - everithing works properly.
For all others - no.

when authenticated user is setting a node as a favorite, the node is not added to the list and the site displays the user's page.
After pressing F5 the required node is in the favorites list.
Clicking the "new" favorite link generates a "page does not exist" message.
this is what I see in the address line
http://www.mysite.com/favorites/remove/31?token=bf7130d06b2707a72e6a1146...

thanks

Comments

VTM’s picture

and...

Trying to remove a favorite gave me this error msg:

Fatal error: Call to undefined function drupal_set_messge() in /home1/mysite/public_html/modules/a_mysite_modules/favorites/favorites.module on line 43

VTM’s picture

more info...

When block caching is inactive - everithing is working OK.

ezra-g’s picture

Title: Saving a favorite page for authenticated user is not working properly » typo for drupal_set_message
Status: Active » Fixed
ezra-g’s picture

I committed the typo for drupal_set_message. Please re-open if your caching issue persists after clearing the site cache.

VTM’s picture

Did a test.

block cache is enabled.
All cache data cleared

not workin for non admin users.
sonly sometimes a favorite is added to the list, and it is the previouse page.
example:
- started in homepage.
- browsed to a node page.
- did "make this page favorite"
- got back the hoepage
- got the homepage saved as a favorite (not my required node)

ezra-g’s picture

Title: typo for drupal_set_message » Favorites not displyed with blockcache
Status: Fixed » Active

We should clear the block cache after the user saves her favorite.

VTM’s picture

OK. let me know when you have it ready for testing.
thanks.

VTM’s picture

more info #2

blockcache is disabled.
adding favorite - OK
deleting favorite gives the following msg:
Fatal error: Call to undefined function drupal_set_messge() in /home1/mysite/public_html/modules/my_modules/favorites/favorites.module on line 43

ezra-g’s picture

Status: Active » Fixed

Thanks for this report. I was able to verify this problem and it should be fixed in the new release which will be available in a few minutes.

VTM’s picture

Work OK.
Thanks.

Status: Fixed » Closed (fixed)

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