Call stack errors on site statistics

Bug #1486309 reported by qapeeps on 2015-08-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
High
Unassigned

Bug Description

When I logged in as a Site Staff user and I went to Site information>user search>site statistics and the page shows a page of errors
I have attached a screen shot so you can see.

Linux
Post gres
Firefox

If you need any more info then ask Dean

qapeeps (jinelleb+demo) wrote :

I get the warning below when:

1. Log in as site staff.
2. Go to site information -> Site statistics
3. Choose the "Pages" tab on the right.

[WAR] 4e (lib/user.php:1908) Undefined variable: urlid
Call stack (most recent first):

    log_message("Undefined variable: urlid", 8, true, true, "/home/kristina/code/mahara/htdocs/lib/user.php", 1908) at /home/kristina/code/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined variable: urlid", "/home/kristina/code/mahara/htdocs/lib/user.php", 1908, array(size 4)) at /home/kristina/code/mahara/htdocs/lib/user.php:1908
    profile_url(false, false) at /home/kristina/code/mahara/htdocs/lib/view.php:5716
    View->get_url(false) at /home/kristina/code/mahara/htdocs/lib/view.php:5165
    View::get_extra_view_info(array(size 5), false, false) at /home/kristina/code/mahara/htdocs/lib/registration.php:1240
    view_stats_table(10, 0) at /home/kristina/code/mahara/htdocs/lib/registration.php:1175
    view_statistics(10, 0) at /home/kristina/code/mahara/htdocs/admin/statistics.php:60

[WAR] 4e (lib/user.php:1917) Undefined variable: id
Call stack (most recent first):

    log_message("Undefined variable: id", 8, true, true, "/home/kristina/code/mahara/htdocs/lib/user.php", 1917) at /home/kristina/code/mahara/htdocs/lib/errors.php:513
    error(8, "Undefined variable: id", "/home/kristina/code/mahara/htdocs/lib/user.php", 1917, array(size 4)) at /home/kristina/code/mahara/htdocs/lib/user.php:1917
    profile_url(false, false) at /home/kristina/code/mahara/htdocs/lib/view.php:5716
    View->get_url(false) at /home/kristina/code/mahara/htdocs/lib/view.php:5165
    View::get_extra_view_info(array(size 5), false, false) at /home/kristina/code/mahara/htdocs/lib/registration.php:1240
    view_stats_table(10, 0) at /home/kristina/code/mahara/htdocs/lib/registration.php:1175
    view_statistics(10, 0) at /home/kristina/code/mahara/htdocs/admin/statistics.php:60

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

    profile_url(false, false) at /home/kristina/code/mahara/htdocs/lib/view.php:5716
    View->get_url(false) at /home/kristina/code/mahara/htdocs/lib/view.php:5165
    View::get_extra_view_info(array(size 5), false, false) at /home/kristina/code/mahara/htdocs/lib/registration.php:1240
    view_stats_table(10, 0) at /home/kristina/code/mahara/htdocs/lib/registration.php:1175
    view_statistics(10, 0) at /home/kristina/code/mahara/htdocs/admin/statistics.php:60

Changed in mahara:
status: New → Confirmed
importance: Undecided → High
Robert Lyon (robertl-9) on 2016-11-07
Changed in mahara:
status: Confirmed → In Progress
milestone: none → 17.04.0

Reviewed: https://reviews.mahara.org/7239
Committed: https://git.mahara.org/mahara/mahara/commit/24bd7bbedad4ad5b21d0efadd5b213b642b003c2
Submitter: Aaron Wells (<email address hidden>)
Branch: master

commit 24bd7bbedad4ad5b21d0efadd5b213b642b003c2
Author: Robert Lyon <email address hidden>
Date: Tue Nov 8 12:31:54 2016 +1300

Bug 1486309: Need to ignore site templates in page statistics

I replicated by logging in as site staff on a site that doesn't have
many pages so that the site template profile page would be one of the
first 10 pages in statistics

behatnotneeded

Change-Id: Ibf4eebc1fba09bc7dd8eec2e6461e2a9be634e6e
Signed-off-by: Robert Lyon <email address hidden>

Aaron Wells (u-aaronw) on 2016-11-29
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9) on 2017-04-27
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers