Closed (fixed)
Project:
Activity Log
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2011 at 05:02 UTC
Updated:
16 Apr 2012 at 10:37 UTC
When I regenerate the activity I get the following errors.
An error occured during rule evaluation. It follows the evaluation log:
0 ms "After saving new content" has been invoked.
0.095 ms Executing the rule "Log activity when a node is created (not in a group)" on rule set "After saving new content"
0.263 ms Condition "Updated content is published" evaluated to TRUE.
0.393 ms Unable to find "condition" of name "og_rules_condition_posted_in_group" with the label "Content was posted in a group". Perhaps the according module has been deactivated.
0.433 ms Condition "Content was posted in a group" evaluated to FALSE.
0.528 ms Warning: Unable to get variable ":global".
0.569 ms Element "Log activity for the acting user" has not been executed. There are not all execution arguments needed by an input evaluator available.
0.632 ms Warning: Unable to get variable ":global".
0.672 ms Element "Log activity for related taxonomy terms" has not been executed. There are not all execution arguments needed by an input evaluator available.
0.735 ms Warning: Unable to get variable ":global".
0.776 ms Element "Log activity for the acting user's relationships" has not been executed. There are not all execution arguments needed by an input evaluator available.
0.839 ms Executing the rule "Log activity when a node is created in a group" on rule set "After saving new content"
0.986 ms Condition "Updated content is published" evaluated to TRUE.
1.114 ms Condition "Content is a group post" evaluated to FALSE.
1.168 ms Evaluation of "After saving new content" has been finished.
Comments
Comment #1
icecreamyou commentedThis may have been fixed in dev already. Can you confirm?
Comment #2
drupaledmonk commentedYes the issue doesn't arise in dev version.
Comment #3
tstackhouse commentedI'm seeing this error in the dev version:
I should add I was also seeing this coming out of the version that ships with Commons.
Comment #4
ezra-g commentedProviding slightly more descriptive title.
Comment #5
tstackhouse commentedI want to also add to this, I'm not seeing any status messages getting recorded in the activity_log_messages table, wether or not I run the regenerate, no activity is getting logged at all.
Edit: I've updated my token module to 1.16 (from 1.15) and this error goes away, however statuses are being presented as strings containing the tokens, not interpreted.
Comment #6
icecreamyou commentedMarked #1361598: Activity stream remains blank as duplicate and changing to a more descriptive title since it looks like this doesn't just apply to regeneration.
I don't know why this is happening and I can't reproduce it. Here's what I get when I create a node:
The activity messages are created correctly.
Rules 6.x-1.4, Token 6.x-1.18, Activity Log latest dev, Views 6.x-2.16; and also tested with a version of Commons I pulled in November running Token 6.x-1.16 and Views 6.x-2.12 (and the latest version of Activity Log) with the same result. Both have multiple languages enabled and that seems to work fine too although I was testing in English to get the result above. Both also have other modules that Activity Log works with -- OG, UR, Flag, Digests.
My guess is that this is not a problem with Activity Log but rather some other module has a faulty Token implementation that is causing errors during Rules evaluation.
Comment #7
ajayg commentedUpgrading the Token module to latest version (6.x-1.18) Solved the problem. The activity log now has activities as expected.
Non-english activities worked fine too.
You may want to mention this minimum version requirement on token module in README.txt
Comment #8
icecreamyou commentedAs noted in #6 I tested with Token 1.16 too (basically stock Commons with a newer version of Activity Log) and it worked fine for me, which is why I think there may be another module that's not playing nice with an older version of Token. But since I can't reproduce this and upgrading Token seems to resolve the issue for at least one person, let's mark this Fixed. tstackhouse (or anyone else) feel free to reopen if the problem remains unsolved with Token 1.18...
Comment #10
dhakshinait commentedI installed Token 1.16 along with Activity log module latest dev release but still there is a error message while saving a rule
warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in E:\xampp\htdocs\mysite\includes\database.mysqli.inc on line 329
Please tell me how can i clear this issue?