Exception

wrong id

/home/topseti_user/web/topseti.ru/public_html/protected/extensions/Tree.php(62)

50         $this->_items[$id]['data'] = $data;
51     }
52     /**
53      * Получить элемент по индификатору
54      * @param mixed $id
55      * @throws \Exception
56      * @return array
57      */
58     public function getItem($id){
59         if($this->itemExists($id))
60             return $this->_items[$id];
61         else
62             throw new \Exception('wrong id');
63     }
64     /**
65      * Проверка на наличие дочерних элементов
66      * @param mixed $id
67      * @return boolean
68      */
69     public function hasChilds($id) {
70         return isset($this->_childs[$id]);
71     }
72     /**
73      * Получить дочерние элементы
74      * @param mixed $id

Stack Trace

#0
+
 /home/topseti_user/web/topseti.ru/public_html/protected/components/ItemUrlRule.php(58): app\extensions\Tree->getItem(null)
53             $catalogTree = CatalogEntry::model()->getCatalogTree();
54             $itemSlug = array_pop($parts);
55             if(!($item = ProductItem::model()->find('slug = :slug',array(':slug' => $itemSlug))))
56                 return false;
57 
58             $catalogEntryBranch = $catalogTree->getItem($item->catalog_id);
59             do {
60                 $catalogs[]=$catalogEntryBranch['data']->slug;
61             } while(!empty($catalogEntryBranch['parent']) && ($catalogEntryBranch = $catalogTree->getItem($catalogEntryBranch['parent'])));
62 
63             $catalogs=array_reverse($catalogs);
#1
+
 /home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(2941): app\components\ItemUrlRule->parseUrl(CUrlManager, app\components\Request, "item/domofony/interfony-interkomy/kocom/kic-301", "item/domofony/interfony-interkomy/kocom/kic-301")
2936             $pathInfo=$this->removeUrlSuffix($rawPathInfo,$this->urlSuffix);
2937             foreach($this->_rules as $i=>$rule)
2938             {
2939                 if(is_array($rule))
2940                     $this->_rules[$i]=$rule=Yii::createComponent($rule);
2941                 if(($r=$rule->parseUrl($this,$request,$pathInfo,$rawPathInfo))!==false)
2942                     return isset($_GET[$this->routeVar]) ? $_GET[$this->routeVar] : $r;
2943             }
2944             if($this->useStrictParsing)
2945                 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
2946                     array('{route}'=>$pathInfo)));
#2
+
 /home/topseti_user/web/topseti.ru/public_html/protected/yiilite.php(1644): CUrlManager->parseUrl(app\components\Request)
1639             $route=$this->catchAllRequest[0];
1640             foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
1641                 $_GET[$name]=$value;
1642         }
1643         else
1644             $route=$this->getUrlManager()->parseUrl($this->getRequest());
1645         $this->runController($route);
1646     }
1647     protected function registerCoreComponents()
1648     {
1649         parent::registerCoreComponents();
2024-03-28 10:43:12 nginx/1.19.2 Yii Framework/1.1.13