PHP error

explode(): Passing null to parameter #2 ($string) of type string is deprecated

/home/GIR/buggy-motor.ru/themes/buggy-2014/views/catalog/site/itemView.php(134)

122                 <?php else: ?>
123                     <p class="not-available">
124                         <i></i>
125                         Нет в наличии
126                     </p>
127 
128                 <?php endif ?>
129                 
130                 
131                 <ul class="color-list">
132                     <li class="ico-color"><i></i></li>
133                     <?php 
134                     $colors = explode(",", $item->Cveta);
135                     foreach ($colors as $color) {
136                         if ($color == "зеленый") {
137                             echo '<li><span class="green"></span></li>';
138                         } else if ($color == "красный") {
139                             echo '<li><span class="red"></span></li>';
140                         } else if ($color == "оранжевый") {
141                             echo '<li><span class="orange"></span></li>';
142                         } else if ($color == "черный") {
143                             echo '<li><span class="black"></span></li>';
144                         }
145                     }?>
146 

Stack Trace

#0
+
 /home/GIR/buggy-motor.ru/themes/buggy-2014/views/catalog/site/itemView.php(134): explode(",", null)
129                 
130                 
131                 <ul class="color-list">
132                     <li class="ico-color"><i></i></li>
133                     <?php 
134                     $colors = explode(",", $item->Cveta);
135                     foreach ($colors as $color) {
136                         if ($color == "зеленый") {
137                             echo '<li><span class="green"></span></li>';
138                         } else if ($color == "красный") {
139                             echo '<li><span class="red"></span></li>';
#5
+
 /home/GIR/buggy-motor.ru/protected/modules/catalog/controllers/SiteController.php(118): CController->render("itemView", array("item" => CatItem, "category" => CatCategory))
113             $this->redirect($itemHref, true, 301);
114         }
115     
116 
117 
118         $this->render($itemViewFile, array('item' => $item, 'category' => $category));
119 
120     }
121 
122 
123     public function actionCategoryView($catId = 0)
#15
+
 /home/GIR/buggy-motor.ru/index.php(14): CApplication->run()
09 defined('YII_DEBUG') or define('YII_DEBUG',true);
10 // specify how many levels of call stack should be shown in each log message
11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2025-04-19 13:09:35 nginx/1.27.4 Yii Framework/1.1.31-dev