PHP error

Array and string offset access syntax with curly braces is deprecated

/home/gsdce/public_html/framework/web/helpers/CJSON.php(128)

116                     return json_encode($var);
117 
118                 // STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT
119                 $ascii = '';
120                 $strlen_var = strlen($var);
121 
122                /*
123                 * Iterate over every character in the string,
124                 * escaping with a slash or encoding to UTF-8 where necessary
125                 */
126                 for ($c = 0; $c < $strlen_var; ++$c) {
127 
128                     $ord_var_c = ord($var{$c});
129 
130                     switch (true) {
131                         case $ord_var_c == 0x08:
132                             $ascii .= '\b';
133                             break;
134                         case $ord_var_c == 0x09:
135                             $ascii .= '\t';
136                             break;
137                         case $ord_var_c == 0x0A:
138                             $ascii .= '\n';
139                             break;
140                         case $ord_var_c == 0x0C:

Stack Trace

#4
+
 /home/gsdce/public_html/protected/views/site/loginWebsite.php(11): CActiveForm->error(LoginWsForm, "email")
06         )); ?>
07         <fieldset class="registration-form">
08             <div class="form-group">
09                 <?php echo $form->labelEx($model,'email'); ?>
10                 <?php echo $form->textField($model,'email',array('class'=>'form-control','placeholder'=>'Your Email')); ?>
11                 <?php echo $form->error($model,'email'); ?>
12             </div>
13             <div class="form-group">
14                 <?php echo $form->labelEx($model,'password'); ?>
15                 <?php echo $form->passwordField($model,'password',array('class'=>'form-control','placeholder'=>'Your Password')); ?>
16                 <?php echo $form->error($model,'password'); ?>
#9
+
 /home/gsdce/public_html/protected/controllers/SiteController.php(104): CController->render("loginWebsite", array("model" => LoginWsForm))
099             if($model->validate() && $model->login()) {
100                 $this->redirect(array('home/index'));
101             }
102         }
103 
104         $this->render('loginWebsite',array('model'=>$model));
105     }
106     
107     public function actionLogoutWebsite()
108     {
109         Yii::app()->user->logout();
#17
+
 /home/gsdce/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',fasle);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-19 09:51:35 Apache Yii Framework/1.1.14