function add_audit_ext failed because CWebUser::$data['userid'] == 0.
Workaround from function add_audit : if(CWebUser::$data['userid'] == 0) return true;