Deleting a forum topic works but reports an error

Bug #1337614 reported by Nigel Cunningham on 2014-07-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Medium
Nigel Cunningham

Bug Description

While testing another bug (#1271240), I decided to delete the topic (while running 1.10dev) and received the following call trace:

    log_message("Undefined property: stdClass::$reported", 8, true, true, "/home/nigelc/Programming/mahara/htdocs/interaction...", 89) at /home/nigelc/Programming/mahara/htdocs/lib/errors.php:433
    error(8, "Undefined property: stdClass::$reported", "/home/nigelc/Programming/mahara/htdocs/interaction...", 89, array(size 6)) at /home/nigelc/Programming/mahara/htdocs/interaction/forum/deletetopic.php:89
    deletetopic_submit(object(Pieform), array(size 3)) at Unknown:0
    call_user_func_array("deletetopic_submit", array(size 2)) at /home/nigelc/Programming/mahara/htdocs/lib/pieforms/pieform.php:527
    Pieform->__construct(array(size 4)) at /home/nigelc/Programming/mahara/htdocs/lib/pieforms/pieform.php:162
    Pieform::process(array(size 4)) at /home/nigelc/Programming/mahara/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 4)) at /home/nigelc/Programming/mahara/htdocs/interaction/forum/deletetopic.php:83

The topic was deleted.

Nigel Cunningham (nigelc-g) wrote :

On further investigation, I think the database upgrade is blocked, due to the chat module:

[WAR] f7 (lib/upgrade.php:161) Plugin module chat is not installable: Plugin module chat is missing version.php.
Call stack (most recent first):

    log_message("Plugin module chat is not installable: Plugin modu...", 8, true, true) at /home/nigelc/Programming/mahara/htdocs/lib/errors.php:95
    log_warn("Plugin module chat is not installable: Plugin modu...") at /home/nigelc/Programming/mahara/htdocs/lib/upgrade.php:161
    check_upgrades() at /home/nigelc/Programming/mahara/htdocs/admin/index.php:31

Nigel Cunningham (nigelc-g) wrote :

..nope. The database was fully upgraded. This is just further fallout from the objectionable material refactoring. Patch coming...

Changed in mahara:
assignee: nobody → Nigel Cunningham (nigelc-g)
Changed in mahara:
status: New → In Progress

Reviewed: https://reviews.mahara.org/3479
Committed: http://gitorious.org/mahara/mahara/commit/0fd7979e9449ab9b8c2ea202d0c79d0aa1fa5549
Submitter: Ghada El-Zoghbi (<email address hidden>)
Branch: master

commit 0fd7979e9449ab9b8c2ea202d0c79d0aa1fa5549
Author: Nigel Cunningham <email address hidden>
Date: Thu Jul 10 12:10:43 2014 +1000

(Bug 1337614) Fix forum topic deletion error message.

The objectional material refactoring removed the reported field
from the interaction_forum_post table. Update the code for deleting
topics and posts to match.

Change-Id: I77c7d9e80828174532cdc03c4aeb115b2602ef66
Signed-off-by: Nigel Cunningham <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
importance: Undecided → Medium
milestone: none → 1.10.0
Aaron Wells (u-aaronw) on 2014-10-21
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