← Back to team overview

mahara-contributors team mailing list archive

[Bug 1824674] Re: "User details" report throws error

 

Commit hash: 0e24816eddb5c663681ee84dbc79f118fb9558ea
Environment tested: Master
Browser tested: Chrome

PRECONDITIONS: 
------------------------ 
1) Site admin exists
2) Institution admin exists (User1)
3) Institution exists (Institution One)
4) Mahara users exist and are members of Institution One (User2,User3, User4 and User5)

TEST STEPS: 
------------------------ 
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.
5) Verify No error message is displayed. ✔


NOTE: Could not get an error message to display with or without the patch - I am using php version 7.2.16-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Mar  7 2019 20:23:06) ( NTS )

Not sure what the patch does but it does not break anything so that is
good

Can you give more details about your set up?

-- 
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:
  In Progress

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