Closed (fixed)
Project:
Frequently Asked Questions
Version:
5.x-2.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Oct 2007 at 19:11 UTC
Updated:
4 Dec 2007 at 11:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
phasmaphobic commentedWeird. After resetting all settings to default and putting them back in the same way, I no longer get this error.
Ah well! =)
Comment #2
stella commentedOkay, well marking as fixed for now then. If it happens again, please re-open this issue.
Cheers,
Stella
Comment #3
(not verified) commentedComment #4
sunish.net commentedNo error if Categorize questions is unticked
If Categorize questions is checked and the option Clicking on category opens/hides questions and answers under category selected
and all other options on the categories tab are unchecked there seems to be no problem.
Once Show FAQ count is checked, the error appears.
basically its to do with FAQ category options
Comment #5
stella commentedIs there any "%" sign in the question text?
Cheers,
Stella
Comment #6
dizwell commentedI'd just like to confirm the problem is real and it doesn't depend on having % marks in the questions. I put 16 questions together in one category, with the 'click question to reveal answer' option selected, as well as the 'display a count of questions next to category' option on. All worked fine. I added a new category and then 8 new questions for that new category, and immediately got the 'sprintf() too few arguments' error. None of the new questions had % characters in them, though one had an & character. I removed the ampersand and the problem was still there. I then switched off the 'display count' option and everything displayed correctly.
Needless to say, it would be nice to have the count back!
Comment #7
trusche commentedThis problem is caused by one or more percent signs in the FAQ text if "Show FAQ count" is checked in the categories configuration. It's caused by this statement sequence:
Here's a quick fix: replace all occurrences of the above lines with something like this:
I'm sure there are more elegant ways to solve this problem, but at least it works :)
Hope this helps,
Thilo
Comment #8
stella commentedmarked #187623 as a duplicate of this issue. Patch coming shortly.
Comment #9
stella commentedPatch attached and the fix has also been checked into CVS so it should be available in the next dev version.
Cheers,
Stella
Comment #10
spidersilk commentedI was getting this error as well (and no, there are no % signs in the one question I've entered thus far). I tried to apply the patch (following the procedure at http://drupal.org/patch/apply) and got this:
So I entered the path to the faq.module file, hoping that would help, and got this:
Any idea what I might be doing wrong?
Comment #11
stella commentedTry the dev release. It's stable and includes the patch for this.
Cheers,
Stella
Comment #12
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #13
stella commentedReleased in faq 5.x-2.6.
Cheers,
Stella