Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Logtalk 18.64 KB | None | 0 0
  1. PHP Notice – yii\base\ErrorException
  2.  
  3. Undefined index: location_id
  4. 1. in /var/www/ipivi.com/frontend/widgets/views/block-selector.php at line 14
  5. 567891011121314151617    /** @var array $plugin_options */
  6. ?>
  7. <div class="selection">
  8.     <input type="text" class="form-control js_search_category" data-suffix="<?= $attribute ?>" placeholder="<?= $options['placeholder'] ?: ''?>"
  9.            id="js_search_category" autocomplete="off">
  10.     <span class="pe-7s-angle-down list-icon show-open"></span>
  11.     <span class="pe-7s-angle-up list-icon hide-open"></span>
  12. </div>
  13. <input type="hidden" class="js_data_categories" value='<?= json_encode($dataCategories) ?>'>
  14. <input type="hidden" class="js_set_category_id <?= $attribute ?>" name="AdSearch[<?= $attribute ?>]" value="<?= Yii::$app->request->get('AdSearch')[$attribute] ?>">
  15. <? foreach ($plugin_options as $key => $value): ?>
  16.     <input type="hidden" class="option_<?= $key ?>" value="<?= $value ?>">
  17. <? endforeach; ?>
  18. 2. in /var/www/ipivi.com/frontend/widgets/views/block-selector.php at line 14 – yii\base\ErrorHandler::handleError(8, 'Undefined index: location_id', '/var/www/ipivi.com/frontend/widg...', 14, ...)
  19. 891011121314151617    <input type="text" class="form-control js_search_category" data-suffix="<?= $attribute ?>" placeholder="<?= $options['placeholder'] ?: ''?>"
  20.            id="js_search_category" autocomplete="off">
  21.     <span class="pe-7s-angle-down list-icon show-open"></span>
  22.     <span class="pe-7s-angle-up list-icon hide-open"></span>
  23. </div>
  24. <input type="hidden" class="js_data_categories" value='<?= json_encode($dataCategories) ?>'>
  25. <input type="hidden" class="js_set_category_id <?= $attribute ?>" name="AdSearch[<?= $attribute ?>]" value="<?= Yii::$app->request->get('AdSearch')[$attribute] ?>">
  26. <? foreach ($plugin_options as $key => $value): ?>
  27.     <input type="hidden" class="option_<?= $key ?>" value="<?= $value ?>">
  28. <? endforeach; ?>
  29. 3. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 328 – require('/var/www/ipivi.com/frontend/widg...')
  30. 4. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 250 – yii\base\View::renderPhpFile('/var/www/ipivi.com/frontend/widg...', ['dataCategories' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'options' => ['placeholder' => 'Select a location...'], 'plugin_options' => ['allowClear' => true, 'allElementsLabel' => 'All locations', 'selectParent' => true], 'attribute' => 'location_id'])
  31. 5. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 152 – yii\base\View::renderFile('/var/www/ipivi.com/frontend/widg...', ['dataCategories' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'options' => ['placeholder' => 'Select a location...'], 'plugin_options' => ['allowClear' => true, 'allElementsLabel' => 'All locations', 'selectParent' => true], 'attribute' => 'location_id'], frontend\widgets\BlockSelector)
  32. 6. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Widget.php at line 234 – yii\base\View::render('block-selector', ['dataCategories' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'options' => ['placeholder' => 'Select a location...'], 'plugin_options' => ['allowClear' => true, 'allElementsLabel' => 'All locations', 'selectParent' => true], 'attribute' => 'location_id'], frontend\widgets\BlockSelector)
  33. 7. in /var/www/ipivi.com/frontend/widgets/BlockSelector.php at line 29 – yii\base\Widget::render('block-selector', ['dataCategories' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'options' => ['placeholder' => 'Select a location...'], 'plugin_options' => ['allowClear' => true, 'allElementsLabel' => 'All locations', 'selectParent' => true], 'attribute' => 'location_id'])
  34. 23242526272829303132    public function run()
  35.     {
  36.         return $this->render('block-selector', [
  37.             'dataCategories' => $this->data,
  38.             'options' => $this->options,
  39.             'plugin_options' => $this->pluginOptions,
  40.             'attribute' => $this->attribute,
  41.         ]);
  42.     }
  43. }
  44. 8. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Widget.php at line 139 – frontend\widgets\BlockSelector::run()
  45. 9. in /var/www/ipivi.com/vendor/yiisoft/yii2/widgets/ActiveField.php at line 725 – yii\base\Widget::widget(['data' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'options' => ['placeholder' => 'Select a location...'], 'pluginOptions' => ['allowClear' => true, 'allElementsLabel' => 'All locations', 'selectParent' => true], 'model' => frontend\models\search\AdSearch, ...])
  46. 10. in /var/www/ipivi.com/frontend/widgets/views/main-filter.php at line 22 – yii\widgets\ActiveField::widget('frontend\widgets\BlockSelector', ['data' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'options' => ['placeholder' => 'Select a location...'], 'pluginOptions' => ['allowClear' => true, 'allElementsLabel' => 'All locations', 'selectParent' => true], 'model' => frontend\models\search\AdSearch, ...])
  47. 16171819202122232425262728    <?php $form = ActiveForm::begin([
  48.         'action' => Url::to(['/ad/index']),
  49.         'method' => 'GET'
  50.     ]) ?>
  51.     <div class="col-lg-3">
  52.         <?= $form->field($modelSearch, 'location_id')->widget(BlockSelector::className(), [
  53.             'data' => $dataLocations,
  54.             'options' => ['placeholder' => 'Select a location...'],
  55.             'pluginOptions' => [
  56.                 'allowClear' => true,
  57.                 'allElementsLabel' => Yii::t('common', 'All locations'),
  58.                 'selectParent' => true,
  59.             ]
  60. 11. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 328 – require('/var/www/ipivi.com/frontend/widg...')
  61. 12. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 250 – yii\base\View::renderPhpFile('/var/www/ipivi.com/frontend/widg...', ['modelSearch' => frontend\models\search\AdSearch, 'dataLocations' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'dataCategories' => [['id' => 2, 'parent_id' => 1, 'name' => 'Cars', 'childs' => [['id' => 3, 'parent_id' => 2, 'name' => 'Cars', 'childs' => false], ['id' => 7, 'parent_id' => 2, 'name' => 'Commercial Vehicles', 'childs' => false], ['id' => 8, 'parent_id' => 2, 'name' => 'Other Vehicles', 'childs' => false], ['id' => 9, 'parent_id' => 2, 'name' => 'Spare Parts', 'childs' => false]]], ['id' => 10, 'parent_id' => 1, 'name' => 'Real Estate', 'childs' => [['id' => 11, 'parent_id' => 10, 'name' => 'For Sale', 'childs' => false], ['id' => 12, 'parent_id' => 10, 'name' => 'Rent', 'childs' => false]]], ['id' => 13, 'parent_id' => 1, 'name' => 'Mobiles', 'childs' => [['id' => 72, 'parent_id' => 13, 'name' => 'Mobile Phones', 'childs' => false], ['id' => 73, 'parent_id' => 13, 'name' => 'Tablets', 'childs' => false], ['id' => 74, 'parent_id' => 13, 'name' => 'Accessories', 'childs' => false]]], ['id' => 14, 'parent_id' => 1, 'name' => 'Electronics & Appliances', 'childs' => [['id' => 15, 'parent_id' => 14, 'name' => 'Computers & Laptops', 'childs' => false], ['id' => 16, 'parent_id' => 14, 'name' => 'TV, Video, Audio', 'childs' => false], ['id' => 17, 'parent_id' => 14, 'name' => 'Hard Disks, Printers & Monitors', 'childs' => false], ['id' => 18, 'parent_id' => 14, 'name' => 'ACs', 'childs' => false], ...]], ...]])
  62. 13. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 152 – yii\base\View::renderFile('/var/www/ipivi.com/frontend/widg...', ['modelSearch' => frontend\models\search\AdSearch, 'dataLocations' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'dataCategories' => [['id' => 2, 'parent_id' => 1, 'name' => 'Cars', 'childs' => [['id' => 3, 'parent_id' => 2, 'name' => 'Cars', 'childs' => false], ['id' => 7, 'parent_id' => 2, 'name' => 'Commercial Vehicles', 'childs' => false], ['id' => 8, 'parent_id' => 2, 'name' => 'Other Vehicles', 'childs' => false], ['id' => 9, 'parent_id' => 2, 'name' => 'Spare Parts', 'childs' => false]]], ['id' => 10, 'parent_id' => 1, 'name' => 'Real Estate', 'childs' => [['id' => 11, 'parent_id' => 10, 'name' => 'For Sale', 'childs' => false], ['id' => 12, 'parent_id' => 10, 'name' => 'Rent', 'childs' => false]]], ['id' => 13, 'parent_id' => 1, 'name' => 'Mobiles', 'childs' => [['id' => 72, 'parent_id' => 13, 'name' => 'Mobile Phones', 'childs' => false], ['id' => 73, 'parent_id' => 13, 'name' => 'Tablets', 'childs' => false], ['id' => 74, 'parent_id' => 13, 'name' => 'Accessories', 'childs' => false]]], ['id' => 14, 'parent_id' => 1, 'name' => 'Electronics & Appliances', 'childs' => [['id' => 15, 'parent_id' => 14, 'name' => 'Computers & Laptops', 'childs' => false], ['id' => 16, 'parent_id' => 14, 'name' => 'TV, Video, Audio', 'childs' => false], ['id' => 17, 'parent_id' => 14, 'name' => 'Hard Disks, Printers & Monitors', 'childs' => false], ['id' => 18, 'parent_id' => 14, 'name' => 'ACs', 'childs' => false], ...]], ...]], frontend\widgets\MainFilter)
  63. 14. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Widget.php at line 234 – yii\base\View::render('main-filter', ['modelSearch' => frontend\models\search\AdSearch, 'dataLocations' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'dataCategories' => [['id' => 2, 'parent_id' => 1, 'name' => 'Cars', 'childs' => [['id' => 3, 'parent_id' => 2, 'name' => 'Cars', 'childs' => false], ['id' => 7, 'parent_id' => 2, 'name' => 'Commercial Vehicles', 'childs' => false], ['id' => 8, 'parent_id' => 2, 'name' => 'Other Vehicles', 'childs' => false], ['id' => 9, 'parent_id' => 2, 'name' => 'Spare Parts', 'childs' => false]]], ['id' => 10, 'parent_id' => 1, 'name' => 'Real Estate', 'childs' => [['id' => 11, 'parent_id' => 10, 'name' => 'For Sale', 'childs' => false], ['id' => 12, 'parent_id' => 10, 'name' => 'Rent', 'childs' => false]]], ['id' => 13, 'parent_id' => 1, 'name' => 'Mobiles', 'childs' => [['id' => 72, 'parent_id' => 13, 'name' => 'Mobile Phones', 'childs' => false], ['id' => 73, 'parent_id' => 13, 'name' => 'Tablets', 'childs' => false], ['id' => 74, 'parent_id' => 13, 'name' => 'Accessories', 'childs' => false]]], ['id' => 14, 'parent_id' => 1, 'name' => 'Electronics & Appliances', 'childs' => [['id' => 15, 'parent_id' => 14, 'name' => 'Computers & Laptops', 'childs' => false], ['id' => 16, 'parent_id' => 14, 'name' => 'TV, Video, Audio', 'childs' => false], ['id' => 17, 'parent_id' => 14, 'name' => 'Hard Disks, Printers & Monitors', 'childs' => false], ['id' => 18, 'parent_id' => 14, 'name' => 'ACs', 'childs' => false], ...]], ...]], frontend\widgets\MainFilter)
  64. 15. in /var/www/ipivi.com/frontend/widgets/MainFilter.php at line 59 – yii\base\Widget::render('main-filter', ['modelSearch' => frontend\models\search\AdSearch, 'dataLocations' => [['id' => 12, 'parent_id' => 1, 'name' => ' Kachin State', 'type' => null, ...], ['id' => 13, 'parent_id' => 1, 'name' => 'Kayah State', 'type' => null, ...], ['id' => 14, 'parent_id' => 1, 'name' => 'Kayin State', 'type' => null, ...], ['id' => 15, 'parent_id' => 1, 'name' => 'Chin State', 'type' => null, ...], ...], 'dataCategories' => [['id' => 2, 'parent_id' => 1, 'name' => 'Cars', 'childs' => [['id' => 3, 'parent_id' => 2, 'name' => 'Cars', 'childs' => false], ['id' => 7, 'parent_id' => 2, 'name' => 'Commercial Vehicles', 'childs' => false], ['id' => 8, 'parent_id' => 2, 'name' => 'Other Vehicles', 'childs' => false], ['id' => 9, 'parent_id' => 2, 'name' => 'Spare Parts', 'childs' => false]]], ['id' => 10, 'parent_id' => 1, 'name' => 'Real Estate', 'childs' => [['id' => 11, 'parent_id' => 10, 'name' => 'For Sale', 'childs' => false], ['id' => 12, 'parent_id' => 10, 'name' => 'Rent', 'childs' => false]]], ['id' => 13, 'parent_id' => 1, 'name' => 'Mobiles', 'childs' => [['id' => 72, 'parent_id' => 13, 'name' => 'Mobile Phones', 'childs' => false], ['id' => 73, 'parent_id' => 13, 'name' => 'Tablets', 'childs' => false], ['id' => 74, 'parent_id' => 13, 'name' => 'Accessories', 'childs' => false]]], ['id' => 14, 'parent_id' => 1, 'name' => 'Electronics & Appliances', 'childs' => [['id' => 15, 'parent_id' => 14, 'name' => 'Computers & Laptops', 'childs' => false], ['id' => 16, 'parent_id' => 14, 'name' => 'TV, Video, Audio', 'childs' => false], ['id' => 17, 'parent_id' => 14, 'name' => 'Hard Disks, Printers & Monitors', 'childs' => false], ['id' => 18, 'parent_id' => 14, 'name' => 'ACs', 'childs' => false], ...]], ...]])
  65. 5354555657585960616263                Category::find()
  66.                     ->with('childrensCategories')
  67.                     ->with('childrensCategories.childrensCategories')
  68.                     ->with('childrensCategories.childrensCategories.childrensCategories')
  69.                     ->where(['id' => Category::ROOT_CATEGORY])
  70.                     ->one(),
  71.                 ['id', 'parent_id', 'name']
  72.             ),
  73.         ]);
  74.     }
  75. }
  76. 16. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Widget.php at line 139 – frontend\widgets\MainFilter::run()
  77. 17. in /var/www/ipivi.com/frontend/views/ad/index.php at line 16 – yii\base\Widget::widget(['dataProvider' => yii\data\ActiveDataProvider, 'modelSearch' => frontend\models\search\AdSearch, 'class' => 'frontend\widgets\MainFilter'])
  78. 10111213141516171819202122
  79. $this->title = Yii::t('common', 'Search');
  80. ?>
  81.  
  82. <?= MainFilter::widget([
  83.     'dataProvider' => $dataProvider,
  84.     'modelSearch' => $modelSearch,
  85. ]); ?>
  86.  
  87. <?php Pjax::begin() ?>
  88. <?= AdsGrid::widget([
  89.     'dataProvider' => $dataProvider
  90. ]); ?>
  91. 18. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 328 – require('/var/www/ipivi.com/frontend/view...')
  92. 19. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 250 – yii\base\View::renderPhpFile('/var/www/ipivi.com/frontend/view...', ['modelSearch' => frontend\models\search\AdSearch, 'dataProvider' => yii\data\ActiveDataProvider])
  93. 20. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/View.php at line 152 – yii\base\View::renderFile('/var/www/ipivi.com/frontend/view...', ['modelSearch' => frontend\models\search\AdSearch, 'dataProvider' => yii\data\ActiveDataProvider], frontend\controllers\AdController)
  94. 21. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Controller.php at line 381 – yii\base\View::render('index', ['modelSearch' => frontend\models\search\AdSearch, 'dataProvider' => yii\data\ActiveDataProvider], frontend\controllers\AdController)
  95. 22. in /var/www/ipivi.com/frontend/controllers/AdController.php at line 26 – yii\base\Controller::render('index', ['modelSearch' => frontend\models\search\AdSearch, 'dataProvider' => yii\data\ActiveDataProvider])
  96. 20212223242526272829303132    {
  97.         $modelSearch = new AdSearch();
  98.         $dataProvider = $modelSearch->search(Yii::$app->request->queryParams);
  99.  
  100.         return $this->render('index', [
  101.             'modelSearch' => $modelSearch,
  102.             'dataProvider' => $dataProvider,
  103.         ]);
  104.     }
  105.  
  106.     /**
  107.      * @param $id
  108.      * @return string
  109. 23. frontend\controllers\AdController::actionIndex()
  110. 24. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([frontend\controllers\AdController, 'actionIndex'], [])
  111. 25. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Controller.php at line 156 – yii\base\InlineAction::runWithParams(['AdSearch' => ['category_id' => '3']])
  112. 26. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Module.php at line 523 – yii\base\Controller::runAction('index', ['AdSearch' => ['category_id' => '3']])
  113. 27. in /var/www/ipivi.com/vendor/yiisoft/yii2/web/Application.php at line 102 – yii\base\Module::runAction('ad/index', ['AdSearch' => ['category_id' => '3']])
  114. 28. in /var/www/ipivi.com/vendor/yiisoft/yii2/base/Application.php at line 380 – yii\web\Application::handleRequest(yii\web\Request)
  115. 29. in /var/www/ipivi.com/frontend/web/index.php at line 17 – yii\base\Application::run()
  116. 11121314151617    require(__DIR__ . '/../../common/config/main.php'),
  117.     require(__DIR__ . '/../../common/config/main-local.php'),
  118.     require(__DIR__ . '/../config/main.php'),
  119.     require(__DIR__ . '/../config/main-local.php')
  120. );
  121.  
  122. (new yii\web\Application($config))->run();
  123.  $_GET = [
  124.     'AdSearch' => [
  125.         'category_id' => '3',
  126.     ],
  127. ];
  128.  
  129. $_COOKIE = [
  130.     '_csrf-frontend' => '3e8b376223288f78193324aad428039b793cce535ced9b329edbf07411a820cda:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"EwhDS_dyeObrXgiTK4SVO9B1TZZ6KOwq";}',
  131.     'advanced-frontend' => 'pobk4eh0joqcgaufiv1lokuvg0',
  132. ];
  133.  
  134. $_SESSION = [
  135.     '__flash' => [
  136.         'notifications' => -1,
  137.     ],
  138.     'notifications' => [
  139.         [
  140.             'message' => 'Неверное имя пользователя или пароль.',
  141.             'type' => 'danger',
  142.         ],
  143.     ],
  144.     '__id' => 5,
  145. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement