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

#5
+
 /home/gsdce/public_html/protected/views/contactUs/index.php(45): CBaseController->widget("CCaptcha", array("buttonLabel" => "<img src='/images/refresh.png' style='width:30px !important;'>", "showRefreshButton" => true, "clickableImage" => true))
40                         <div class="form-group">
41                             <?php if(CCaptcha::checkRequirements()): ?>
42                                 <div class="captcha">
43                                     <?php 
44                                         $this->widget("CCaptcha", array(
45                                         'buttonLabel' => "<img src='".Yii::app()->request->baseUrl."/images/refresh.png' style='width:30px !important;'>",
46                                         'showRefreshButton' => true,
47                                         'clickableImage' => true
48                                     ));
49                                     ?>
50                                 </div>
#10
+
 /home/gsdce/public_html/protected/controllers/ContactUsController.php(39): CController->render("index", array("model" => ContactForm, "info" => ContactInfo))
34                 } else {
35                     print_r($model2->getErrors());
36                 }
37             }
38         }
39         $this->render('index',array('model'=>$model, 'info'=>$info));
40     }
41 }
#18
+
 /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 12:06:36 Apache Yii Framework/1.1.14