Closed (fixed)
Project:
Activity Log
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2012 at 13:42 UTC
Updated:
18 Oct 2012 at 20:31 UTC
After upgrading to 6.x-2.0, I'm seeing an error for a duplicate token. Wasn't sure if this needed to be filed as a bug report, so I've left it support request for now:
The following tokens are defined by multiple modules and may cause problems when performing token replacement.
node:flag-bookmarks-link (defined by modules: activity_log, flag)
Comments
Comment #1
joachim commentedDoes that module define flags?
Comment #2
t-readyroc commentedI'm not positive.
From the module page:
I don't see anything on it in its documentation.
Comment #3
joachim commentedCan you look in the code?
Comment #4
joachim commentedComment #5
t-readyroc commentedI'll start with: I'm not a programmer (but I did sleep at a Holiday Inn Express last night).
But looking at the code, it looks like activity_log doesn't define flags; it only calls the flag module. It will return set flags as both arrays and SQL queries.
Here's perhaps some relevant code (from activity_log.module):
Many, many more lines of code referring to flags in 3 other files as well; but nothing that looks like a declaration/definition.
Comment #6
joachim commentedOk so it looks like Activity log is trying to do our work for us.
Comment #7
icecreamyou commentedActivity Log was designed with Flag 1.x in mind and I have no idea if it works with Flag 2.x. However, I just committed a fix to dev that should at least avoid the problem brought up in this issue.