View Issue Details

IDProjectCategoryView StatusLast Update
2367Composrawardspublic2016-04-03 18:40
ReporterPDStig Assigned ToChris Graham  
PriorityurgentSeverity@80@ 
Status resolvedResolutionfixed 
Summary2367: Composr 10b5: Critical error when using awards block to display award based on usergroup
DescriptionA critical error occurs when you display awards for usergroups on your website, essentially breaking the page it's on.
Steps To Reproduce1. 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 InformationI 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
TagsNo tags attached.
Attach Tags
Time estimation (hours)
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2016-04-03 18:40

administrator   ~3516

diff --git a/sources/cns_groups.php b/sources/cns_groups.php
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)));

Issue History

Date Modified Username Field Change
2016-04-02 16:57 PDStig New Issue
2016-04-03 18:40 Chris Graham Note Added: 0003516
2016-04-03 18:40 Chris Graham Status Not Assigned => Resolved
2016-04-03 18:40 Chris Graham Resolution open => fixed
2016-04-03 18:40 Chris Graham Assigned To => Chris Graham