Error posting a new forum topic

Bug #1402911 reported by Aaron Wells
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Aaron Wells
15.04
Fix Released
High
Aaron Wells

Bug Description

Here's an error caused by the new TinyMCE image inserter (Bug 1399054)

[WAR] 8e (lib/errors.php:745) Failed to get a recordset: postgres8 error: [-2: ERROR: syntax error at or near "group"
LINE 1: SELECT group FROM "interaction_instance" WHERE "id" = $1
              ^] in EXECUTE("SELECT group FROM "interaction_instance" WHERE "id" = ? ")
Command was: SELECT group FROM "interaction_instance" WHERE "id" = ? and values was (1)
Call stack (most recent first):

    log_message("Failed to get a recordset: postgres8 error: [-2: E...", 8, true, true) at /home/aaronw/www/mahara/htdocs/lib/errors.php:95
    log_warn("Failed to get a recordset: postgres8 error: [-2: E...") at /home/aaronw/www/mahara/htdocs/lib/errors.php:745
    SQLException->__construct("Failed to get a recordset: postgres8 error: [-2: E...") at /home/aaronw/www/mahara/htdocs/lib/dml.php:477
    get_recordset_sql("SELECT group FROM "interaction_instance" WHERE "i...", array(size 1)) at /home/aaronw/www/mahara/htdocs/lib/dml.php:788
    get_field_sql("SELECT group FROM "interaction_instance" WHERE "i...", array(size 1)) at /home/aaronw/www/mahara/htdocs/lib/dml.php:776
    get_field("interaction_instance", "group", "id", 1) at /home/aaronw/www/mahara/htdocs/interaction/forum/edittopic.php:198
    addtopic_submit(object(Pieform), array(size 9)) at Unknown:0
    call_user_func_array("addtopic_submit", array(size 2)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:527
    Pieform->__construct(array(size 4)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
    Pieform::process(array(size 4)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
    pieform(array(size 4)) at /home/aaronw/www/mahara/htdocs/interaction/forum/edittopic.php:173

Aaron Wells (u-aaronw)
Changed in mahara:
milestone: none → 15.04.0
status: New → In Progress
importance: Undecided → High
assignee: nobody → Aaron Wells (u-aaronw)
tags: added: forums regression
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/4097

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

I suspect it also affects 1.10?

no longer affects: mahara/1.10
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Actually, just seeing that a patch was merged, I think it related to Bug #1399054. So it would only affect 15.04.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Yes, this one is 15.04 only.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

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

commit ab4e88550e4647d9d9fd13b3ef7697baf783481e
Author: Aaron Wells <email address hidden>
Date: Tue Dec 16 17:26:53 2014 +1300

"group" is a reserved word in Postgres.

Bug 1402911

Change-Id: I2c30f9074d90fcd85de8f72cb260d81c589acc6d

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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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