I have problems with flag module for anonymous user.

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
kostolany's picture

Im working in my own project. Im trying to show flag to anonimous users whith flag module, flag_anon module and session api. I can see de flags like text no links and without icons and the system show me this error message: Notice: Undefined index: content_id en flag_anon_preprocess_flag() (línea 213 de /homepages/xx/xsites/all/modules/flag_anon/flag_anon.module).
And the line 213 in flag_anon.module is:

$content_id = $variables['content_id'];

Somebody has any idea about what or where is the problem.

Comments

.

tryitonce's picture

Hi Mario,
I hope you found a solution. This forum is more about creating a group in and around Marbella / Costa del Sol / Malaga / Andalucia working on & with Drupal in English & Spanish & any other language spoken here ...
So, the help you should find here on the subject you raised is to be directed to the right place on Drupal and the net to find your answer.
So - first you should always remove your website/server login name from any searches -
so your search line
Notice: Undefined index: content_id en flag_anon_preprocess_flag() (línea 213 de /homepages/xx/xxxxxxx/htdocs/gestiondealquiler/sites/all/modules/flag_anon/flag_anon.module)
should read for a Drupal or often better a Google or similar search
Notice: Undefined index: content_id en flag_anon_preprocess_flag() (línea 213 de /sites/all/modules/flag_anon/flag_anon.module)
I took out "/homepages/xx/xxxxxxx/htdocs/gestiondealquiler" which is too specific.
It might also help to remove "línea 213 de" as it is Spanish and this might narrow your search.
Second - your search should go to Drupal and to the module in question - www.drupal.org/documentation/modules/flag.
Finally - sorry - no solution here - but it is always good to remember to come back to your question and add the solution you found - alone or through others - someone will appreciate it and you will be grateful one day (directly or indirectly) for their contribution in reporting back.
...

Marbella.Malaga.International

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: