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.

CommentFileSizeAuthor
forum.module_5.patch1.02 KBplj

Comments

Cvbge’s picture

The attached patch fixed the problem for me, and looks quite sane.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community
Cvbge’s picture

Status: Reviewed & tested by the community » Needs work

Patch 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?

sammys’s picture

Can 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

bdragon’s picture

Version: x.y.z » 6.x-dev
Status: Needs work » Closed (fixed)

This has *got* to have been fixed by now. closing...