stdClass Object
(
    [results] => Array
        (
            [0] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => Aleksandrovskaya Kolonna
                                    [short_name] => Aleksandrovskaya Kolonna
                                    [types] => Array
                                        (
                                            [0] => premise
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => СПБ
                                    [types] => Array
                                        (
                                            [0] => locality
                                            [1] => political
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => Sankt-Peterburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_2
                                            [1] => political
                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                            [5] => stdClass Object
                                (
                                    [long_name] => 198324
                                    [short_name] => 198324
                                    [types] => Array
                                        (
                                            [0] => postal_code
                                        )

                                )

                        )

                    [formatted_address] => Aleksandrovskaya Kolonna, Sankt-Peterburg, Russia, 198324
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.9391803
                                            [lng] => 30.3160693
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.9388836
                                            [lng] => 30.3154776
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 59.9390332
                                    [lng] => 30.3157916
                                )

                            [location_type] => ROOFTOP
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.940380930292
                                            [lng] => 30.317122430292
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.937682969708
                                            [lng] => 30.314424469709
                                        )

                                )

                        )

                    [place_id] => ChIJUxySaBAxlkYRpiK5UXUw_6E
                    [types] => Array
                        (
                            [0] => premise
                        )

                )

            [1] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => 2
                                    [short_name] => 2
                                    [types] => Array
                                        (
                                            [0] => street_number
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Palace Square
                                    [short_name] => Palace Square
                                    [types] => Array
                                        (
                                            [0] => route
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => СПБ
                                    [types] => Array
                                        (
                                            [0] => locality
                                            [1] => political
                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => Sankt-Peterburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_2
                                            [1] => political
                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [5] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                            [6] => stdClass Object
                                (
                                    [long_name] => 191186
                                    [short_name] => 191186
                                    [types] => Array
                                        (
                                            [0] => postal_code
                                        )

                                )

                        )

                    [formatted_address] => Palace Square, 2, Sankt-Peterburg, Russia, 191186
                    [geometry] => stdClass Object
                        (
                            [location] => stdClass Object
                                (
                                    [lat] => 59.9398664
                                    [lng] => 30.3144862
                                )

                            [location_type] => ROOFTOP
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.941215380292
                                            [lng] => 30.315835180291
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.938517419708
                                            [lng] => 30.313137219709
                                        )

                                )

                        )

                    [place_id] => ChIJ3SUafxoxlkYRifJsqJi0kjU
                    [types] => Array
                        (
                            [0] => street_address
                        )

                )

            [2] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => Tsentralny District
                                    [short_name] => Tsentralny District
                                    [types] => Array
                                        (
                                            [0] => political
                                            [1] => sublocality
                                            [2] => sublocality_level_2
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => СПБ
                                    [types] => Array
                                        (
                                            [0] => locality
                                            [1] => political
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => Sankt-Peterburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_2
                                            [1] => political
                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => Tsentralny District, St Petersburg, Russia
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.9580135
                                            [lng] => 30.4034099
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.9136833
                                            [lng] => 30.3080783
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 59.93093
                                    [lng] => 30.3618979
                                )

                            [location_type] => APPROXIMATE
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.9580135
                                            [lng] => 30.4034099
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.9136833
                                            [lng] => 30.3080783
                                        )

                                )

                        )

                    [place_id] => ChIJURdg3KMxlkYRiN_cwCmYJLQ
                    [types] => Array
                        (
                            [0] => political
                            [1] => sublocality
                            [2] => sublocality_level_2
                        )

                )

            [3] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => СПБ
                                    [types] => Array
                                        (
                                            [0] => locality
                                            [1] => political
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => Sankt-Peterburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_2
                                            [1] => political
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => St Petersburg, Russia
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 60.089675
                                            [lng] => 30.559783
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.7452159
                                            [lng] => 30.090332
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 59.9342802
                                    [lng] => 30.3350986
                                )

                            [location_type] => APPROXIMATE
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 60.089675
                                            [lng] => 30.559783
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.7452159
                                            [lng] => 30.090332
                                        )

                                )

                        )

                    [place_id] => ChIJ7WVKx4w3lkYR_46Eqz9nx20
                    [types] => Array
                        (
                            [0] => locality
                            [1] => political
                        )

                )

            [4] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => 198324
                                    [short_name] => 198324
                                    [types] => Array
                                        (
                                            [0] => postal_code
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => СПБ
                                    [types] => Array
                                        (
                                            [0] => locality
                                            [1] => political
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => Sankt-Peterburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_2
                                            [1] => political
                                        )

                                )

                            [3] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [4] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => St Petersburg, Russia, 198324
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.9443889
                                            [lng] => 30.3169839
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.938239
                                            [lng] => 30.3120491
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 59.9408866
                                    [lng] => 30.3141966
                                )

                            [location_type] => APPROXIMATE
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 59.9443889
                                            [lng] => 30.3169839
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.938239
                                            [lng] => 30.3120491
                                        )

                                )

                        )

                    [place_id] => ChIJjzpHHhExlkYReNllrTuRTrY
                    [types] => Array
                        (
                            [0] => postal_code
                        )

                )

            [5] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => Saint Petersburg, Russia
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 60.233527
                                            [lng] => 30.7349362
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.6468681
                                            [lng] => 29.4464432
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 60.0762383
                                    [lng] => 30.121383
                                )

                            [location_type] => APPROXIMATE
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 60.233527
                                            [lng] => 30.7349362
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.6468681
                                            [lng] => 29.4464432
                                        )

                                )

                        )

                    [place_id] => ChIJnW9Kx4w3lkYR5MklR1rKR_o
                    [types] => Array
                        (
                            [0] => administrative_area_level_1
                            [1] => political
                        )

                )

            [6] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => Sankt-Peterburg
                                    [short_name] => Sankt-Peterburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_2
                                            [1] => political
                                        )

                                )

                            [1] => stdClass Object
                                (
                                    [long_name] => Saint Petersburg
                                    [short_name] => Saint Petersburg
                                    [types] => Array
                                        (
                                            [0] => administrative_area_level_1
                                            [1] => political
                                        )

                                )

                            [2] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => Sankt-Peterburg, Saint Petersburg, Russia
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 60.2458091
                                            [lng] => 30.7596049
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.6337839
                                            [lng] => 29.425394
                                        )

                                )

                            [location] => stdClass Object
                                (
                                    [lat] => 59.9996687
                                    [lng] => 30.0189227
                                )

                            [location_type] => APPROXIMATE
                            [viewport] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 60.2458091
                                            [lng] => 30.7596049
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 59.6337839
                                            [lng] => 29.425394
                                        )

                                )

                        )

                    [place_id] => ChIJrxHfwIw3lkYRYNv-Lsu0aR8
                    [types] => Array
                        (
                            [0] => administrative_area_level_2
                            [1] => political
                        )

                )

            [7] => stdClass Object
                (
                    [address_components] => Array
                        (
                            [0] => stdClass Object
                                (
                                    [long_name] => Russia
                                    [short_name] => RU
                                    [types] => Array
                                        (
                                            [0] => country
                                            [1] => political
                                        )

                                )

                        )

                    [formatted_address] => Russia
                    [geometry] => stdClass Object
                        (
                            [bounds] => stdClass Object
                                (
                                    [northeast] => stdClass Object
                                        (
                                            [lat] => 82.1673907
                                            [lng] => -168.97788
                                        )

                                    [southwest] => stdClass Object
                                        (
                                            [lat] => 41.185353
                                        



PHP warning





PHP warning

Cannot modify header information - headers already sent by (output started at /home/areado/www_new/protected/modules/admin/components/Helper.php:6)

/home/areado/www_new/protected/components/SiteController.php(179)

167         throw new CHttpException(404);
168     }
169 
170     public function actionNotFound()
171     {
172         throw new CHttpException(404);
173     }
174 
175     public function setCity(CitiesModel $city)
176     {
177         Yii::app()->setParams(['cityId' => $city->id]);
178         Yii::app()->setParams(['city' => $city]);
179         setcookie('cityId', $city->id, time() + 3600 * 24 * 31, '/');
180     }
181 
182     /**
183      * @param $cityName string
184      * @return \CitiesModel|mixed|null
185      */
186     public function getCity($cityName = 'Москва') {
187         $params = Yii::app()->getParams();
188         if ($params['city'] === null && $params['cityId'] !== null) {
189             Yii::app()->setParams(['city' => $params['city'] = CitiesModel::model()->findByPk($params['cityId'])]);
190         }
191 

Stack Trace

#0
+
 /home/areado/www_new/protected/components/SiteController.php(179): setcookie("cityId", "1", 1529828000, "/")
174 
175     public function setCity(CitiesModel $city)
176     {
177         Yii::app()->setParams(['cityId' => $city->id]);
178         Yii::app()->setParams(['city' => $city]);
179         setcookie('cityId', $city->id, time() + 3600 * 24 * 31, '/');
180     }
181 
182     /**
183      * @param $cityName string
184      * @return \CitiesModel|mixed|null
#1
+
 /home/areado/www_new/protected/components/SiteController.php(103): SiteController->setCity(CitiesModel)
098                 /*Get user ip address*/
099                 $cities_model = CitiesModel::model()->findAll(array('index' => 'url'));
100                 $cities = CHtml::listData($cities_model, 'url', 'long_name');
101                 $key = array_search($city_by_ip, $cities);
102                 if (false !== $key && $key != $this->getCity()->url) {
103                     $this->setCity($cities_model[$key]);
104                 }
105             }
106         }
107         $this->defineSeo();
108         if (strpos(Yii::app()->request->url, '?') !== false) {
#2
+
 /home/areado/www_new/protected/controllers/CatalogController.php(22): SiteController->init()
17     public $master;
18     public $action_count;
19 
20     public function init()
21     {
22         parent::init();
23 
24         Yii::app()->setImport([
25             'mod.districts.models.DistrictsModel',
26             'mod.subwayStations.models.SubwayStationsModel',
27             'mod.salons.models.SalonServiceLinksModel',
2018-05-24 11:13:20 Apache/2.2.22 (@RELEASE@) Yii Framework/1.1.13