mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #52835
[Bug 1824674] A change has been merged
Reviewed: https://reviews.mahara.org/9772
Committed: https://git.mahara.org/mahara/mahara/commit/0e24816eddb5c663681ee84dbc79f118fb9558ea
Submitter: Cecilia Vela Gurovic (ceciliavg@xxxxxxxxxxxxxxx)
Branch: master
commit 0e24816eddb5c663681ee84dbc79f118fb9558ea
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date: Mon Apr 15 17:22:20 2019 +1200
Bug 1824674: Get correct user count on user stats details page
This fixes a problem for newer PHP versions
behatnotneeded
Change-Id: I62d892889f2ecd69165d791bdbc250487b4443b1
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1824674
Title:
"User details" report throws error
Status in Mahara:
Fix Committed
Bug description:
When I run the "User details" report, I get the following error
message no matter what settings I use for the columns:
[WAR] e5 (lib/statistics.php:630) count(): Parameter must be an array or an object that implements Countable
Call stack (most recent first):
log_message("count(): Parameter must be an array or an object t...", 8, true, true, "/home/kristina/code/1904stable/htdocs/lib/statisti...", 630) at /home/kristina/code/1904stable/htdocs/lib/errors.php:520
error(2, "count(): Parameter must be an array or an object t...", "/home/kristina/code/1904stable/htdocs/lib/statisti...", 630, array(size 16)) at /home/kristina/code/1904stable/htdocs/lib/statistics.php:630
userdetails_stats_table(10, 0, array(size 5), null, "https://1904stable.anitsirk.wgtn.cat-it.co.nz/admi...") at /home/kristina/code/1904stable/htdocs/lib/statistics.php:577
userdetails_statistics(10, 0, array(size 5), null) at /home/kristina/code/1904stable/htdocs/lib/statistics.php:4284
display_statistics("all", "users", object(stdClass)) at /home/kristina/code/1904stable/htdocs/admin/users/statistics.php:251
To replicate:
1. Log in as site admin.
2. Go to Admin menu -> Reports.
3. Click "Configure report".
4. Choose the "User details" report and run it.
Expected result: No error message.
Actual result: Above error message.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1824674/+subscriptions
References