[solved] missing Recaptcha field in Question & Answer form
[solved] missing Recaptcha field in Question & Answer form
hello Maverick,
i have enabled the option to post new questions & answers for all site visitors - including "public" user group for guest users.
in the question field (when viewing as a guest user) the captcha code apeard but strangly - it has now disapeard, just in the last few minutes. i posted a question as a guest user just a few minutes ago, but now the field is gone.
in the Answer form the field did not apear in the first place.
both cases causing the site to give an "Invalid captcha" error.
the code for the field is present in the file com_communityanswers/form/edit.php:
<?php
JPluginHelper::importPlugin('captcha');
$dispatcher = JEventDispatcher::getInstance();
$dispatcher->trigger('onInit', 'ca_captcha');
$recaptcha = $dispatcher->trigger('onDisplay', array(null, 'ca_captcha', 'class=""'));
echo (isset($recaptcha[0])) ? $recaptcha[0] : '';
}
?>
please advise hot to solve this issue.
edit: after some more tests, it seems that the Recaptcha disapeared from the Questions form after updating CA from 4.5.5 to 4.5.6. but it was missing from the Answer field in both versions.
thank you
yorai