Project:Drupal core
Version:7.x-dev
Component:forum.module
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)
Issue tags:Needs tests

Issue Summary

Fatal errors, fatal errors everywhere!

Comments

#1

Status:active» needs review
AttachmentSizeStatusTest resultOperations
613278-forum-borked-D7.patch1.11 KBIdlePassed: 14719 passes, 0 fails, 0 exceptionsView details

#4

Prior to this patch upon replying to a forum post I was getting the following error

Recoverable fatal error: Argument 4 passed to db_query_range() must be an array, integer given, called in /var/www/html/chris/drupal-7/modules/forum/forum.module on line 1113 and defined in db_query_range() (line 1897 of /var/www/html/chris/drupal-7/includes/database/database.inc).

After applying the patch the error is gone and I can successfully reply to a forum post. Did this error occur elsewhere and is further testing needed?

#5

Tested.

Me too. Before I applied the patch, I got same error as chrisred when trying to reply with a comment on a forum topic.

Applied the patch and it works! Well done Dave Reid :)

#6

Status:needs review» reviewed & tested by the community

This gets a pass from me too. Fixes a misconstructed db_query_range() call. RTBC.

#7

Status:reviewed & tested by the community» needs work

Sorry for the error, that was me...

Let's extend the code coverage a little bit.

#8

Do you have a suggestion for the added test coverage? Adding a comment with forum module enabled might be enough. If not, let's just fix this critical error asap and come back to it.

#9

Agree with @pwolanin - I'm sure I've seen Dries commit a few crucial patches to HEAD and then mark the issue as "Needs Tests".

#10

Status:needs work» needs review

Added one additional bugfix and tests for 1) adding comment to forum topic and 2) editing forum topic that has a comment.

AttachmentSizeStatusTest resultOperations
forum.patch2.53 KBIdlePassed: 14710 passes, 0 fails, 0 exceptionsView details

#11

Status:needs review» fixed

Confirmed that this is a bug, and that the patch solves it. Committed.

#12

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here