captcha not working after hosting..but in localhost works perfectly

In my contact page captcha not working after hosting…but in localhost works perfectly…

after hosting the captcha and the corresponding error message is missing…what i do…?

anyone can help me…please…?

my siteContrioller

public function actions()


                  return array(

		// captcha action renders the CAPTCHA image displayed on the contact page





public function actionContact()


	$model=new ContactForm;









			$headers="From: $name <{$model->email}>\r\n".

				"Reply-To: {$model->email}\r\n".

				"MIME-Version: 1.0\r\n".

				"Content-Type: text/plain; charset=UTF-8";


			Yii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible...');







public function accessRules()


    return array('allow', 'actions' => array('captcha'), 'users' => array('*'));



my ContactForm.php

public function rules()


	return array(

		// name, email, message are required

		array('name, email, message', 'required'),

		// email has to be a valid email address

		array('email', 'email'),

		// verifyCode needs to be entered correctly

		array('verifyCode', 'captcha', 'allowEmpty'=>!CCaptcha::checkRequirements()),



public function attributeLabels()


	return array(

		'verifyCode'=>'Verification Code',




<?php if(CCaptcha::checkRequirements()): ?>

&lt;div class=&quot;form-group&quot;&gt;

    &lt;?php echo &#036;form-&gt;labelEx(&#036;model,'verifyCode'); ?&gt;


    &lt;?php &#036;this-&gt;widget('CCaptcha'); ?&gt;

    &lt;?php echo &#036;form-&gt;textField(&#036;model,'verifyCode',array('class'=&gt;'captcha-control')); ?&gt;


    &lt;?php echo &#036;form-&gt;error(&#036;model,'verifyCode'); ?&gt;


&lt;?php endif; ?&gt;

:( :( :( :( :( :(

Try like this -

thanx dear for reply…

i installed the "gd" extension.