mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #14052
[Bug 1236661] Re: Site statistics: Pages - Page not found error when a page's group has been deleted
Hi Ghada,
Thanks for the bug report!
What version of Mahara did you encounter this in? I was unable to
replicate this problem in a clean install of Mahara 1.7.3. Here are the
steps I took to try to replicate it:
1. Installed Mahara
2. Create a group
3. Create a Page within that group
4. Ran the Mahara cron job to make sure that statistics were gathered
5. Navigated to the "Admin Home -> Site Statistics -> Pages" tab to see the "Most Popular Pages" report, and saw that my newly created Page was in there
6. Deleted the group
7. Returned to the "Admin Home -> Site Statistics -> Pages" tab.
But I didn't encounter any error, neither on screen nor in my error
logs. Instead, I saw the "Most Popular Pages" page, but with the Page
from the group now missing. Deleting the group causes its associated
views to get deleted, and so they don't show up in the query that the
statistics page uses to gather data to send to
View::get_extra_view_info().
Have you been able to replicate this in a stock Mahara installation?
Perhaps it's a bug in the customizations in that client Mahara you're
working on, or bad data in their database?
Cheers,
Aaron
** Changed in: mahara
Status: New => Incomplete
** Changed in: mahara
Importance: Undecided => High
** Tags added: reports
--
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/1236661
Title:
Site statistics: Pages - Page not found error when a page's group has
been deleted
Status in Mahara ePortfolio:
Incomplete
Bug description:
If a group has been deleted, the Admin Home/Site Statistics/Pages tab
(Most Popular Pages) comes up with the error:
Page not found
You tried to access a page that does not exist.
Page with id 0 not found.
The View construct is trying to load the deleted group but as it is
deleted, it automatically throws an exception ViewNotFoundException.
Called in function htdocs/lib/view.php::get_extra_view_info() line
4124 ($view = new View(0, $v);
It should check if the group has been deleted and cater for that
situation.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1236661/+subscriptions
References