When attempting to create a view that lists out all flagged comments I get the following error message:

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /admin/structure/views/ajax/preview/moderated_comments
StatusText: OK
ResponseText: 
Fatal error:  Call to a member function addField() on a non-object in /.../sites/all/modules/contrib/flag/flag.module on line 923

This is triggered in flag_flag_access_multiple(). The following patch corrects the code and also removes the db_fetch_object call.

CommentFileSizeAuthor
#1 flag_1088704.patch901 byteshadsie

Comments

hadsie’s picture

StatusFileSize
new901 bytes
quicksketch’s picture

Status: Needs review » Reviewed & tested by the community

Looks great to me. I'll put it in next time I'm working on Flag.

wcarpent’s picture

I'm also having this problem, but unfortunately, I'm not sure how to use this patch. Could someone give me some advice on this?

Thanks!

yanchen’s picture

I have the same problem. I am hosted on godaddy with no SSH, how do I apply the patch?

quicksketch’s picture

quicksketch’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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