When any user submits a FAQ Ask, you get this error:
Fatal error: [] operator not supported for strings in /sites/default/modules/faq_ask/faq_ask.module on line 463
When any user submits a FAQ Ask, you get this error:
Fatal error: [] operator not supported for strings in /sites/default/modules/faq_ask/faq_ask.module on line 463
Comments
Comment #1
Anonymous (not verified) commentedLine 463 is a comment line? Could you post the line?
Though in line 444:
should perhaps be:
Comment #2
kuzma commentedLine 463 isn't a comment line.
Line 463:
$body[] = $params['question'];
The reason you get that error is because $body was set to a string in lines 457 or 460, as tirsales pointed out.
Therefore, on 463 it tries to index the string with [] and set it, which raises the error.
That is why changing the lines exactly the way tirsales does fixes the problem.
Comment #3
Anonymous (not verified) commentedOh well, line-counter ;) Seems or editors disagree on them ;)
Glad it worked though.
Comment #4
mdowsett commentedthat did work! fantastic.
Does a patch need to be created (I have no idea how to write one).
Comment #5
Anonymous (not verified) commentedThe CVS-Head uses a scalar $body, so there is no need for a patch (against CVS).
Comment #6
nancydruCommitted. Thanks for catching that typo.