PHP notice

Undefined index: HTTP_REFERER

/var/www/html/democracyrules.org/public_html/yii/yii-1.1.14.f0fee9/src/protected/views/site/login.php(35)

23             'method'=>'POST',
24             'id'=>'login-form',
25             'enableClientValidation'=>true,
26             'clientOptions'=>array(
27                     'validateOnSubmit'=>true,
28 
29             ),
30             //'action'=>array('site/logins&refer_page='.$_SERVER ['HTTP_REFERER'])
31 
32     )); ?>
33 <?php //$refer_page = Yii::app()->user->getReturnUrl(); //print $refer_page;?>
34             <p class="note">Fields with <span class="required">*</span> are required.</p>
35         <?php echo $form->hiddenField($model,'refer_page',array('value'=>$_SERVER ['HTTP_REFERER'])); ?>
36             <div class="row">
37                     <?php echo $form->labelEx($model,'username or Email'); ?>
38                     <?php echo $form->textField($model,'username'); ?>
39                     <?php echo $form->error($model,'username'); ?>
40             </div>
41 
42             <div class="row">
43                     <?php echo $form->labelEx($model,'password'); ?>
44                     <?php echo $form->passwordField($model,'password'); ?>
45                     <?php echo $form->error($model,'password'); ?>
46                     <p class="hint">
47 

Stack Trace

#4
+
 /var/www/html/democracyrules.org/public_html/yii/yii-1.1.14.f0fee9/src/protected/controllers/SiteController.php(131): CController->render("login", array("model" => LoginForm))
126             }
127         }
128         $model->password = '';
129         return $this->render('login', [
130             'model' => $model,
131         ]);
132     }
133 
134     /**
135      * Logout action.
136      *
#12
+
 /var/www/html/democracyrules.org/public_html/yii/yii-1.1.14.f0fee9/src/index.php(16): CApplication->run()
11 // specify how many levels of call stack should be shown in each log message
12 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
13 
14 ini_set('display_errors','On');
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
17 
18 //ViewsCounter::setViews();
2024-03-19 03:31:18 Apache/2.2.15 (CentOS) Yii Framework/1.1.14