1. Import rule.
2. View frontpage (i.e. example.com/node) - rule is triggered.
3. Enter to a single content (i.e. node/1) - doesn't work

array (
  'rules' => 
  array (
    'rules_default_rule_1' => 
    array (
      '#type' => 'rule',
      '#set' => 'event_node_view',
      '#label' => 'Example rule',
      '#active' => 1,
      '#weight' => '0',
      '#name' => 'rules_default_rule_1',
      '#conditions' => 
      array (
      ),
      '#actions' => 
      array (
        0 => 
        array (
          '#type' => 'action',
          '#name' => 'rules_action_drupal_message',
          '#info' => 
          array (
            'label' => 'Show a configurable message on the site',
            'module' => 'System',
            'eval input' => 
            array (
              0 => 'message',
            ),
          ),
          '#settings' => 
          array (
            'message' => 'Rules is working.',
            'error' => 0,
          ),
        ),
      ),
    ),
  ),
)

Comments

amitaibu’s picture

Title: 'Content is goin to be viewed' not triggered properly » 'Content is going to be viewed' not triggered properly
fago’s picture

hm, that's strange. I'm using it too and for me it works fine. Are you logged in? Try visiting the modules page and hit submit - this makes sure the cache is cleared.

amitaibu’s picture

Logged in, cache cleared, latest version... I'll try to see if I'm able to debug.

fago’s picture

Status: Active » Fixed

ah, now I also ran over this. it occured when og was activated -> fixed it.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

mitchell’s picture

Component: Code » Rules Core

Updated component.