Download & Extend

Unable to get variable ":global"

Project:Activity Log
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Status:active» postponed (maintainer needs more info)

This may have been fixed in dev already. Can you confirm?

#2

Status:postponed (maintainer needs more info)» closed (fixed)

Yes the issue doesn't arise in dev version.

#3

Version:6.x-2.0-beta1» 6.x-2.x-dev
Status:closed (fixed)» active

I'm seeing this error in the dev version:

0 ms "After saving new content" has been invoked.
0.076 ms Executing the rule "Log activity when a node is created (not in a group)" on rule set "After saving new content"
0.219 ms Condition "Updated content is published" evaluated to TRUE.
0.478 ms Condition "Content was posted in a group" evaluated to TRUE.
0.54 ms Executing the rule "Log activity when a node is created in a group" on rule set "After saving new content"
0.645 ms Condition "Updated content is published" evaluated to TRUE.
0.888 ms Condition "Content was posted in a group" evaluated to TRUE.
0.98 ms Warning: Unable to get variable ":global".
1.01 ms Element "Log activity for the acting user" has not been executed. There are not all execution arguments needed by an input evaluator available.
1.07 ms Warning: Unable to get variable ":global".
1.099 ms Element "Log activity for active group" has not been executed. There are not all execution arguments needed by an input evaluator available.
1.146 ms Warning: Unable to get variable ":global".
1.185 ms Element "Log activity for members of the active group" has not been executed. There are not all execution arguments needed by an input evaluator available.
1.233 ms Warning: Unable to get variable ":global".
1.261 ms Element "Log activity for related taxonomy terms" has not been executed. There are not all execution arguments needed by an input evaluator available.

I should add I was also seeing this coming out of the version that ships with Commons.

#4

Title:Activity Regenerate» Activity Regenerate errors

Providing slightly more descriptive title.

#5

I 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.

#6

Title:Activity Regenerate errors» Unable to get variable ":global"
Status:active» postponed (maintainer needs more info)

Marked #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:

    0 ms "After saving new content" has been invoked.
    0.104 ms Executing the rule "Log activity when a node is created (not in a group)" on rule set "After saving new content"
    0.274 ms Condition "Updated content is published" evaluated to TRUE.
    0.945 ms Condition "Content was posted in a group" evaluated to TRUE.
    1.009 ms Executing the rule "Log activity when a node is created in a group" on rule set "After saving new content"
    1.138 ms Condition "Updated content is published" evaluated to TRUE.
    1.5 ms Condition "Content was posted in a group" evaluated to TRUE.
    6.704 ms Loaded variable "content's author"
    17.518 ms Action execution: "Log activity for the acting user"
    92.893 ms Included MODULE.rules_defaults.inc files.
    123.111 ms Action execution: "Log activity for active group"
    135.708 ms Action execution: "Log activity for members of the active group"
    159.22 ms Action execution: "Log activity for related taxonomy terms"
    165.583 ms Executing the rule "Email: Log activity when a node is created (not in a group)" on rule set "After saving new content"
    165.783 ms Condition "Updated content is published" evaluated to TRUE.
    165.935 ms Condition "Content is a group post" evaluated to TRUE.
    165.99 ms Executing the rule "Email: Log activity when a node is created in a group" on rule set "After saving new content"
    166.107 ms Condition "Updated content is published" evaluated to TRUE.
    166.21 ms Condition "Content is a group post" evaluated to TRUE.
    168.076 ms Action execution: "Log activity for the acting user"
    176.401 ms Action execution: "Log activity for active group"
    184.827 ms Action execution: "Log activity for members of the active group"
    216.147 ms Action execution: "Log activity for related taxonomy terms"
    221.583 ms Evaluation of "After saving new content" has been finished.

Blog entry Test post has been created.

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.

#7

Upgrading 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

#8

Status:postponed (maintainer needs more info)» fixed

As 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...

#9

Status:fixed» closed (fixed)

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

#10

I 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?

nobody click here