Steps to reproduce:

  1. New CVS install
  2. Activate forums and create a forum topic.
  3. Create a free tagging vocabulary and assign it to forum posts. Use minimal configuration for vocabulary; Name and check free tagging only.
  4. Create a forum post and attempt free tagging

Error produced:

warning: sprintf(): Too few arguments in /home/httpd/vhosts/webhostmeter.com/httpdocs/includes/database.inc on line 158.

user error: Query was empty
query:  in /home/httpd/vhosts/webhostmeter.com/httpdocs/includes/database.mysql.inc on line 99.

Comments

moggy’s picture

still getting this problem

thinkinkless’s picture

this happens for me also.
running cvs and also in a 4.6 test site on bryght.com.
i have not been able to get a response yet but from what little i could find in 'issues' it seems to be an imcompatibiility between the forum module and folksonomy (freetagging).

did you ever get it resolved?

this post may not be in the right spot since i think it is an issue with forum, not taxonomy per se.

noid’s picture

Just happened to me, using 4.6.4 with free-tagging. Disabled free-tagging for forum topic and the error disappeared.

robertdouglass’s picture

The bug report, however, is against the 4.7 branch, not any free-tagging module for 4.6.

Uwe Hermann’s picture

Status: Active » Fixed

Cannot reproduce in current HEAD, please reopen if you still experience this problem.

Uwe Hermann’s picture

Status: Fixed » Closed (fixed)
Renirtor’s picture

Version: x.y.z » 4.7.3
Status: Closed (fixed) » Active

The warnings are back:

* warning: sprintf(): Too few arguments in /home/mhd-01/www.mysite.org/htdocs/mysite/includes/database.mysql.inc on line 231.
* user warning: Query was empty query: in /home/mhd-01/www.mysite.org/htdocs/mysite/includes/database.mysql.inc on line 121.

Adding a new vocabulary (with or without free tagging; the result is the same) to a forum that already had it's own I could reproduce the issue...

deleting the vocabulary (or simply changing it's type) makes the warning disappears.

I checked for this issue on another host on wich I have exactly the same drupal installation and there is no problem there, so I suppose that the issue is related to php or mysql version

robertdouglass’s picture

People, we need to be somewhat clear about our versions. We are trying to fix this problem in the cvs branch for 4.7. The tarball for that code is here: http://drupal.org/drupal-4.7-cvs

It is to be expected that the problem will be reproducable in Drupal 4.7.3.... that will never change. The big question is, will it be present in Drupal 4.7.4?

boris mann’s picture

Version: 4.7.3 » 4.7.x-dev

My guess is yes, and that it's still in there. Wonder if it's been fixed for 5, but setting to 4.7 dev for now.

heine’s picture

I cannot reproduce this in 4.7.x-dev, on MySQL 5.021/PHP 5.1.4/Apache 2.2.2 (Opera 9.1).

Is the error produced on submit or during free tagging? Please post version information.

agentrickard’s picture

Perhaps this error is self-inflicted?

I'm poking on this in 4.7.4, and it is relevant to note that the default Forums vocabulary does not allow free-tagging. In fact, none of the normal vocabulary hierarchy settings can be applied to the Forums vocabulary.

This would suggest (at first glance), that forums, by design, face certain contraints that must be followed.

Investigating further.

agentrickard’s picture

I think this is a user error, based on the desgin intentions of the Forum module.

In testing, I was able to free-tag a forum post only if I also assigned it to a valid Forum container.

If I delete the forum vocabulary, I can't submit a forum post.

I believe that Renitor is correct in #7 http://drupal.org/node/28607#comment-130888. This seems a bug specific to certain versions of PHP. It does not affect my 5.1.6, so I cannot reproduce the issue.

Anyone who can, please post Drupal version, PHP version, and vocabulary settings.

bdragon’s picture

Status: Active » Closed (fixed)

No feedback for half a year, I would assume this has been ironed out.

WeRockYourWeb.com’s picture

Just FYI, I can free tag forum posts by simply checking "forum topic" on the vocabulary I use for site-wide free tagging (that is, the default forum vocabulary does not allow it, as agentrickard mentioned). I'm using Drupal 5.2, PHP 4.4.7.

Cheers,
Alex
----------
Contract Web Development, Inc.