sometimes I get the following error related to forms with captcha field:
" Fatal error: Unsupported operand types in ...../modules/contrib/captcha/captcha.module on line 197"

line 197 is: "$form['#validate'] += array('captcha_validate' => array());"

I guess the '+=' does not work if '$form['#validate']' is not set.

Changing that line to the following helps:
"""
if(isset($form['#validate'])) {
$form['#validate'] += array('captcha_validate' => array());
} else {
$form['#validate'] = array('captcha_validate' => array());
}
"""

Comments

mgifford’s picture

That helped to deal with the error (that I was getting too), but the form doesn't appear to allow people to subscribe to our newsletter. It seems to just void the other form elements in the simplenews module. I'm using the latest version the captcha module & the dev version of simplenews.

Would really like to have this cleaned up (or know that there is a way to revert to the last release).

Mike

GoofyX’s picture

This is a duplicate of http://drupal.org/node/139805. Please close it.

Thank you.

wundo’s picture

Status: Needs review » Closed (fixed)