mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #14057
[Bug 1236661] Re: Site statistics: Pages - Page not found error when a page's group has been deleted in 1.4, followed by an upgrade to 1.8
Actually on further testing, I find that this is a 1.8 regression. Which
is to say, if you upgrade from 1.4 to 1.5, 1.6, or 1.7, you don't
encounter this problem. It's not until the 1.8 upgrade that the
statistics page quits.
So, I'm going to bump this back up to a "high" priority, because it's
likely to occur in any Mahara site that has been live since 1.4.
Cheers,
Aaron
** Tags added: regression
** Changed in: mahara/1.8
Importance: Low => High
** Changed in: mahara/1.8
Milestone: 1.8.1 => 1.8.0
** Description changed:
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.
+ Update: This only occurs when the group was deleted in Mahara 1.4 or
+ earlier. After 1.5, the group_delete() function was updated to also
+ delete all the group's Pages. And the error on the report page only
+ happens in Mahara 1.8, probably due to some change we made in
+ View::get_extra_view_info().
--
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 in 1.4, followed by an upgrade to 1.8
Status in Mahara ePortfolio:
Incomplete
Status in Mahara 1.8 series:
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);
Update: This only occurs when the group was deleted in Mahara 1.4 or
earlier. After 1.5, the group_delete() function was updated to also
delete all the group's Pages. And the error on the report page only
happens in Mahara 1.8, probably due to some change we made in
View::get_extra_view_info().
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1236661/+subscriptions
References