Quote:
Originally Posted by mrgrimes
Hi. I followed the instructions in integration.txt but on testing the form I got this error: 'Fatal error: Cannot redeclare trim_array() (previously declared in /var/www/citfou_vbulletin/global.php(356) : eval()'d code:43) in /var/www/citfou_vbulletin/includes/functions_newpost.php(360) : eval()'d code on line 13'
Any ideas?
|
Quote:
Originally Posted by antialiasis
Remove this bit from the code you added into the plugin on global_start, and you should be fine:
Code:
function trim_array(&$answer)
{
$answer = trim($answer);
}
|
I had the exact same error on integrating this with the
Form mod. I followed the integration directions exactly. So I changed the mod as antialiasis notes above (by removing those lines) -- and it does let the form go through if they answer CORRECTLY. However, if they don't answer correctly they get a 404 error.
If the code above is NOT removed, if they answer correctly they get the server error mrgrimes mentioned, but if they answer INCORRETLY they get a warning page telling them to go back (which is what they should get when it's wrong).
So to make it simple, the 'fix' recommended above breaks the question for wrong answers, and not using the 'fix' breaks it for right ones!?!? Any idea why or any help on this? I'm using the latest Form 4.0 (and vb 3.6.5).
Thanks
-vissa