adding warning when no mediareference type has been defined.