This is a long issue that has already been commented before (http://drupal.org/node/1261914) but reading the closing comment I decided to start a new one. I have installed Drupal Commons 2.10 and I can't make Activity Log work properly. I can get the english logs working but whenever I translate the rules templates nothing is displayed and I if try to revert to initial values the system does not display the correct messages anymore so I have to uninstall and install activity log and commons-activity-streams modules again to make it work. I have tried to upload new rules from scratch but this does not work either. I'm using activity log 6.x-2.0-beta1+61-dev.

Comments

isellakuria’s picture

I have notices that the data stored in the activity_log_templates table is wrong. In my case, I'm using two languages, english is disabled and the template colum of an entry after translations have been introduced and templates rebuilt stores 4 blocks:

a:4:{s:3:"und";a:1:{s:8:"template";s:1153:" <div class="activity-log-picture"> ...
a:4:{s:3:"es";a:1:{s:8:"template";s:1153:" <div class="activity-log-picture"> ...
a:4:{s:3:"en";a:1:{s:8:"template";s:1153:" <div class="activity-log-picture"> ...
a:4:{s:3:"eu";a:1:{s:8:"template";s:1153:" <div class="activity-log-picture"> ...

I think the first block "und" is causing the issue.

The same applies to the group_template column and the eval_input table stores only the "und" values, not the ones for the other languages, not even english:

:2:{s:27:"token_rules_input_evaluator";a:7:{s:11:"placeholder";a:1:{i:0;s:7:":global";}s:22:"grouping|group_summary";a:1:{i:0;s:7:":global";}s:26:"visibility|stream_owner_id";a:1:{i:0;s:7:":global";}s:20:"visibility|viewer_id";a:1:{i:0;s:7:":global";}s:10:"acting_uid";a:1:{i:0;s:7:":global";}s:22:"templates|und|template";a:3:{i:0;s:4:"node";i:1;s:6:"author";i:2;s:7:":global";}s:31:"grouping|templates|und|template";a:1:{i:0;s:7:":global";}}s:36:"activity_log_input_evaluator_process";a:7:{s:11:"placeholder";b:1;s:22:"grouping|group_summary";b:1;s:26:"visibility|stream_owner_id";b:1;s:20:"visibility|viewer_id";b:1;s:10:"acting_uid";b:1;s:22:"templates|und|template";b:1;s:31:"grouping|templates|und|template";b:1;}}