Closed (fixed)
Project:
Drupal core
Version:
4.7.x-dev
Component:
taxonomy.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2005 at 13:24 UTC
Updated:
25 Sep 2007 at 13:07 UTC
Steps to reproduce:
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
Comment #1
moggy commentedstill getting this problem
Comment #2
thinkinkless commentedthis 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.
Comment #3
noid commentedJust happened to me, using 4.6.4 with free-tagging. Disabled free-tagging for forum topic and the error disappeared.
Comment #4
robertdouglass commentedThe bug report, however, is against the 4.7 branch, not any free-tagging module for 4.6.
Comment #5
Uwe Hermann commentedCannot reproduce in current HEAD, please reopen if you still experience this problem.
Comment #6
Uwe Hermann commentedComment #7
Renirtor commentedThe 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
Comment #8
robertdouglass commentedPeople, 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?
Comment #9
boris mann commentedMy 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.
Comment #10
heine commentedI 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.
Comment #11
agentrickardPerhaps 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.
Comment #12
agentrickardI 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.
Comment #13
bdragon commentedNo feedback for half a year, I would assume this has been ironed out.
Comment #14
WeRockYourWeb.com commentedJust 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.