Call stack errors on site statistics

Bug #1486309 reported by qapeeps
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
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

Revision history for this message
qapeeps (jinelleb+demo) wrote :
Revision history for this message
Kristina Hoeppner (kris-hoeppner) 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
Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7239

Robert Lyon (robertl-9)
Changed in mahara:
status: Confirmed → In Progress
milestone: none → 17.04.0
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

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)
Changed in mahara:
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.