I've found a problem when using postgresql: when going to admin/forum for the first time the module adds a taxonomy term or category "Forum", using taxonomy_save_vocabulary() function [it's done in _forum_get_vid()].
But it does not set "tags" in the array and then in taxonomy_save_vocabulary() you get error in sql:

pg_query(): Query failed: ERROR: invalid input syntax for integer: ""
query: INSERT INTO vocabulary (name, description, help, multiple, required, hierarchy, relations, tags, weight, module, vid) VALUES ('Forums', '', '', 0, 1, 1, 0, '', 0, 'forum', '1')

I've fixed this by changing taxonomy_save_vocabulary so it check if "tags" is set and if not it sets it to default. This function already does similar checks for "nodes" and "weight".

CommentFileSizeAuthor
taxonomy_save_vocabulary-tags.diff1 KBCvbge

Comments

Cvbge’s picture

Priority: Normal » Critical

So I believe this bug renders forum module completly unusable, thus priority critical.

morbus iff’s picture

Status: Needs review » Reviewed & tested by the community

Fix looks fine to me. Not tested though (no PostgreSQL).

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks.

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)