← Back to team overview

mahara-contributors team mailing list archive

[Bug 1702434] Re: Error in site statistics

 

Mahara 16.10.4 with a clean DB

Go to Administration -> Site statistics -> Pages

we see the error:

[WAR] 44 (lib/user.php:1914) Undefined variable: id
Call stack (most recent first):

    log_message("Undefined variable: id", 8, true, true, "/home/ceciliavg/maharacode/mahara/htdocs/lib/user....", 1914) at /home/ceciliavg/maharacode/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined variable: id", "/home/ceciliavg/maharacode/mahara/htdocs/lib/user....", 1914, array(size 4)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/user.php:1914
    profile_url(false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:5907
    View->get_url(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:5356
    View::get_extra_view_info(array(size 7), false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/registration.php:1240
    view_stats_table(10, 0) at /home/ceciliavg/maharacode/mahara/htdocs/lib/registration.php:1175
    view_statistics(10, 0) at /home/ceciliavg/maharacode/mahara/htdocs/admin/statistics.php:60

[WAR] 44 (lib/user.php:1918) profile_url called with no user id
Call stack (most recent first):

    profile_url(false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:5907
    View->get_url(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:5356
    View::get_extra_view_info(array(size 7), false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/registration.php:1240
    view_stats_table(10, 0) at /home/ceciliavg/maharacode/mahara/htdocs/lib/registration.php:1175
    view_statistics(10, 0) at /home/ceciliavg/maharacode/mahara/htdocs/admin/statistics.php:60

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

Title:
  Error in site statistics

Status in Mahara:
  Incomplete

Bug description:
  Mahara version = 16.10.4

  When I click in site statistics, specifically in "pages"(views), :

  https://example-url-mahara/admin/statistics.php?type=views

  I get the following error:

  "Mahara: Site unavailable.
  A nonrecoverable error occurred. This probably means you have encountered a bug in the system."

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


References