operating system - windows
Web server - apache
Yii version 1.1.7
The CCaptcha produces error when you set buttonType to ‘button’. The current code at registerClientScript() from line 122 reads
if(isset($options[‘id’]))
$buttonID=$options[‘id’];
else
$buttonID=$options[‘id’]=$id.’_button’;
$html=CHtml::$button($label, $url, $options);
which should be changed to
if(isset($this->buttonOptions[‘id’]))
$buttonID=$this->buttonOptions[‘id’];
else
$buttonID=$this->buttonOptions[‘id’]=$id.’_button’;
$html=CHtml::$button($label, $this->buttonOptions);
Thank you.