In addition to this old bug there is another bug in cvs version of forum.module, when the database in use is PostgreSQL. When forum configuration page is accessed first time, Drupal attempts to create a new vocabulary for forums:
INSERT INTO vocabulary (name, description, help, multiple, required, hierarchy, relations, tags, weight, module, vid) VALUES ('Forums', '', '', 0, 1, 1, 0, '', 0, 'forum', '1')
Unfortunately, this throws an 'Invalid input syntax for integer' error, as no value is assigned for field 'tags'.
I've included a patch that should insert 0 into that field to avoid the error, but I hope someone would review it, as I'm no expert in PHP and thus unsure that I made it correctly. Only one row is affected.
| Comment | File | Size | Author |
|---|---|---|---|
| forum.module_5.patch | 1.02 KB | plj |
Comments
Comment #1
Cvbge commentedThe attached patch fixed the problem for me, and looks quite sane.
Comment #2
moshe weitzman commentedComment #3
Cvbge commentedPatch does not applies.
Furthermore, due to other changes to taxonomy_save_vocabulary() the bug do not occures anymore. If the field is missing (as with 'tag' in this case), it'll be set to 0. Maybe this patch is not needed?
Comment #4
sammys commentedCan we make a decision whether the patch is needed? If so, give us a patch and i'll review it. If not, we'll close this issue.
--
Sammy Spets
Synerger
http://www.synerger.com
Comment #5
bdragon commentedThis has *got* to have been fixed by now. closing...