#2367 - Composr 10b5: Critical error when using awards block to display award based on usergroup
| Identifier | #2367 |
|---|---|
| Issue type | Major issue (breaks an entire feature) |
| Title | Composr 10b5: Critical error when using awards block to display award based on usergroup |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | awards |
| Description | A critical error occurs when you display awards for usergroups on your website, essentially breaking the page it's on. |
| Steps to reproduce | 1. Create an award type for usergroups 2. Assign that award to a usergroup (error does not happen if there are no active awards for this type) 3. Put an award block on a page 4. The page bails out with critical error whenever you view it. |
| Additional information | I don't remember the error at this time because I have my site under failsafe mode at the moment due to this issue breaking the homepage. You may need to disable it to see the problem.
https://lovinity.org |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
index d2a035d..fe717b2 100755
--- a/sources/cns_groups.php
+++ b/sources/cns_groups.php
@@ -58,6 +58,7 @@ function render_group_box($row, $zone = '_SEARCH', $give_context = true, $guid =
$summary = get_translated_text($row['g_name'], $GLOBALS['FORUM_DB']);
+ require_code('cns_groups2');
$num_members = cns_get_group_members_raw_count($row['id']);
$entry_details = do_lang_tempcode('GROUP_NUM_MEMBERS', escape_html(integer_format($num_members)));