JComments - can't disable CAPTCHA

Issue

Not possible to disable CAPTCHA for Public user group in Settings > Permissions > Public (JComments 3.0.0). After saving the changes "Enable CAPTCHA" check-box gets checked again.

Resolution

The issue is a bug confirmed by JComments developer "smart" here.

Until fixed version is released this can be fixed by editing file:
administrator/components/com_jcomments/models/settings.php

On line 169, after code:

View source
if (is_array($data)) {

Add following code:

View source
$config = JCommentsFactory::getConfig();
 JForm::addFormPath(JPATH_COMPONENT . '/models/forms');
 JForm::addFieldPath(JPATH_COMPONENT . '/models/fields');
 $form = JForm::getInstance('jcomments.permissions', 'permissions', array('control' => ''), false, '/permissions');
 foreach ($form->getFieldsets() as $fieldset) {
 foreach ($form->getFieldset($fieldset->name) as $field) {
 $key = $field->fieldname;
 if (!isset($data[$key])) {
 $data[$key] = '';
 }
 }
 }

Comments (Legacy)  

Luis Arias
+1 # Luis Arias 2014-05-14 16:39
Thank you for the help! :lol:


Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait
Privacy Policy