Get id of an organic group inside a view
Do you have a corresponding template file in your sub-theme? 

Themes cannot have a preprocess function without a corresponding .tpl.php file

https://drupal.org/node/258089