← Back to team overview

mahara-contributors team mailing list archive

[Bug 1827000] Re: Upgrade from 18.10 produces warning from statistics.php

 

TITLE:  Upgrade from 18.10 produces warning from statistics.php

BUG SUMMARY: When upgrading from 18.10.0_RELEASE, a warning was
produced:

[WAR] 50 (lib/statistics.php:2408) count(): Parameter must be an array
or an object that implements Countable

It is possibly an error with group_type_graph function.

version: 18.10.0 > upgrading
database: MySQL
browser: Firefox

==============================================

Commit hash: 486fad78c9e774e0bbb0d66882cc4cf60716d214
Environment tested: Master
Browser tested: Chrome | Firefox
Theme used:  Raw 

PRECONDITIONS: 
------------------------ 
1) User is on version: 18.10.0 and upgrades site to 19.04.0_RELEASE
2) User database is: MySQL
3) User browser: Firefox | Chrome
4) User is using php version: 7.2.18
5) fresh database (only admin user)

TEST STEPS: 
------------------------ 
1) Log in as admin user 
2) Browse to Reports (Administration menu > Reports)
3) Configure the report as follows and submit
     a) Institutions = All institutions 
     b) Report type = Content 

EXPECTED RESULT:  Expected to see a time period and Wording of "No
statistics available"

ACTUAL RESULT: I am seeing an error messagebas follows and  Mahara: Site
unavailable "A nonrecoverable error occurred. This probably means you
have encountered a bug in the system" see attached screenshot of error
message git

NOTE: I could not trigger the original error message - most
configurations returned  a time period and Wording of "No statistics
available"  or minimal data.  Report type = Content was the only thing
that triggered error.

** Attachment added: "Error message on Report for content no users or groups or inst .png"
   https://bugs.launchpad.net/mahara/+bug/1827000/+attachment/5262778/+files/Error%20message%20on%20Report%20for%20content%20no%20users%20or%20groups%20or%20inst%20.png

-- 
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/1827000

Title:
  Upgrade from 18.10 produces warning from statistics.php

Status in Mahara:
  In Progress
Status in Mahara 18.04 series:
  Confirmed
Status in Mahara 18.10 series:
  Confirmed
Status in Mahara 19.04 series:
  Confirmed
Status in Mahara 19.10 series:
  In Progress

Bug description:
  When upgrading from 18.10.0_RELEASE, a warning was produced:

  [WAR] 50 (lib/statistics.php:2408) count(): Parameter must be an array
  or an object that implements Countable

  It is possibly an error with group_type_graph function.

  
  version: 18.10.0 > upgrading
  database: MySQL
  browser: Firefox

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1827000/+subscriptions


References