Unrecoverable error when deleting a view

Bug #1034223 reported by Hugh Davenport
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Critical
Hugh Davenport

Bug Description

When clicking on the delete button on the view listings page

 [WAR] 64 (view/delete.php:40) Undefined variable: group
 Call stack (most recent first):

    log_message("Undefined variable: group", 8, true, true, "/var/www/mahara-dev/htdocs/view/delete.php", 40) at /var/www/mahara-dev/htdocs/lib/errors.php:446
    error(8, "Undefined variable: group", "/var/www/mahara-dev/htdocs/view/delete.php", 40, array(size 51)) at /var/www/mahara-dev/htdocs/view/delete.php:40

 [WAR] 64 (lib/group.php:198) Trying to get property of non-object
 Call stack (most recent first):

    log_message("Trying to get property of non-object", 8, true, true, "/var/www/mahara-dev/htdocs/lib/group.php", 198) at /var/www/mahara-dev/htdocs/lib/errors.php:446
    error(8, "Trying to get property of non-object", "/var/www/mahara-dev/htdocs/lib/group.php", 198, array(size 2)) at /var/www/mahara-dev/htdocs/lib/group.php:198
    group_within_edit_window(null) at /var/www/mahara-dev/htdocs/view/delete.php:40

 [WAR] 64 (lib/errors.php:464) An exception was thrown of class InvalidArgumentException.
 THIS IS BAD and should be changed to something extending MaharaException,
 unless the exception is from a third party library.
 Original trace follows
 [WAR] 64 (lib/group.php:1807) group_user_access: group argument should be an integer
 Call stack (most recent first):

    group_param_groupid(null) at /var/www/mahara-dev/htdocs/lib/group.php:50
    group_user_access(null) at /var/www/mahara-dev/htdocs/lib/group.php:198
    group_within_edit_window(null) at /var/www/mahara-dev/htdocs/view/delete.php:40

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :
Changed in mahara:
status: Confirmed → In Progress
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1483
Committed: http://gitorious.org/mahara/mahara/commit/2d32a8d2c936c299f60fa713f1154c2632d3c1ed
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit 2d32a8d2c936c299f60fa713f1154c2632d3c1ed
Author: Hugh Davenport <email address hidden>
Date: Wed Aug 8 14:43:01 2012 +1200

    Allow deleting of views (bug #1034223)

    Change-Id: I4cc41e6ab01bde51612ec00c992be58c54081d47
    Signed-off-by: Hugh Davenport <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 status fixreleased
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iJwEAQECAAYFAlCbHO8ACgkQuMoJ2LQ3zxH8TAP/YN4BiCJZsn5a899/0UzV31Qg
lM8LXAwZWa6zFv6t0BQUHCqe6eFK9wPp51qgCWWXjUZ3vvvVcsyeWp6626aBFKSU
pCQXI9E7huPw802nJQ9WcZXRBUmgw87ww72Tx4mybnu7SPSrkZgXdnPGSMwDs89N
oWvTpl7Xuac48e6p0lU=
=ouU+
-----END PGP SIGNATURE-----

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.