Error

PHP Notice亚博体育app英超买球_亚博88app_亚博app下载官网下载

Undefined offset: 2

  • 1. in /www/web/www_cnexpo_com/public_html/frontend/theme/default/zhanhui/detail.php at line 358
    349350351352353354355356357358359360361362363364365366367
                                <div class="tab-pane fade" id="meeting">
                                    <ul class="nav nav-tabs d-flex justify-content-center">
                                        <?php
                                        if (!empty($meeting)) {
                                            $j = 0;
                                            foreach ($meeting as $k => $mv) {
                                                $day = explode('-', $k);
                                        ?>
                                        <li class="<?=$j==0?'active':''?>">
                                            <a href="" data-toggle="tab"><span><?=$day[2]?></span><small>日</small></a>
                                        </li>
                                        <?php
                                                $j++;
                                            }
                                        }
                                        ?>
                                    </ul>
                                    <div class="tab-content">
                                        <?php
    
  • 2. in /www/web/www_cnexpo_com/public_html/frontend/theme/default/zhanhui/detail.php at line 358 yii\base\ErrorHandler::handleError(8, 'Undefined offset: 2', '/www/web/www_cnexpo_com/public_h...', 358, ...)
    352353354355356357358359360361362363364
                                        if (!empty($meeting)) {
                                            $j = 0;
                                            foreach ($meeting as $k => $mv) {
                                                $day = explode('-', $k);
                                        ?>
                                        <li class="<?=$j==0?'active':''?>">
                                            <a href="" data-toggle="tab"><span><?=$day[2]?></span><small>日</small></a>
                                        </li>
                                        <?php
                                                $j++;
                                            }
                                        }
                                        ?>
    
  • 3. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/View.php at line 325 – require('/www/web/www_cnexpo_com/public_h...')
    319320321322323324325326327328329330331
         */
        public function renderPhpFile($_file_, $_params_ = [])
        {
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            require($_file_);
     
            return ob_get_clean();
        }
     
        /**
         * Renders dynamic content returned by the given PHP statements.
    
  • 4. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/View.php at line 247 yii\base\View::renderPhpFile('/www/web/www_cnexpo_com/public_h...', ['data' => ['model' => common\models\Exhibition, 'show_start' => '2019年08月20日', 'show_end' => '08月25日', 'diff_time' => -60, ...], 'model' => common\models\Exhibition, 'meeting' => ['' => [['id' => '3', 'exhibition_id' => '477', 'title' => '机器人大赛活动', 'startdate' => '', ...]]], 'exhibitor' => [], ...])
    241242243244245246247248249250251252253
                        $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]);
                    }
                    /* @var $renderer ViewRenderer */
                    $renderer = $this->renderers[$ext];
                    $output = $renderer->render($this, $viewFile, $params);
                } else {
                    $output = $this->renderPhpFile($viewFile, $params);
                }
                $this->afterRender($viewFile, $params, $output);
            }
     
            array_pop($this->_viewFiles);
            $this->context = $oldContext;
    
  • 5. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/View.php at line 149 yii\base\View::renderFile('/www/web/www_cnexpo_com/public_h...', ['data' => ['model' => common\models\Exhibition, 'show_start' => '2019年08月20日', 'show_end' => '08月25日', 'diff_time' => -60, ...], 'model' => common\models\Exhibition, 'meeting' => ['' => [['id' => '3', 'exhibition_id' => '477', 'title' => '机器人大赛活动', 'startdate' => '', ...]]], 'exhibitor' => [], ...], frontend\controllers\ZhanhuiController)
    143144145146147148149150151152153154155
         * @throws InvalidParamException if the view cannot be resolved or the view file does not exist.
         * @see renderFile()
         */
        public function render($view, $params = [], $context = null)
        {
            $viewFile = $this->findViewFile($view, $context);
            return $this->renderFile($viewFile, $params, $context);
        }
     
        /**
         * Finds the view file based on the given view name.
         * @param string $view the view name or the path alias of the view file. Please refer to [[render()]]
         * on how to specify this parameter.
    
  • 6. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/Controller.php at line 378 yii\base\View::render('detail', ['data' => ['model' => common\models\Exhibition, 'show_start' => '2019年08月20日', 'show_end' => '08月25日', 'diff_time' => -60, ...], 'model' => common\models\Exhibition, 'meeting' => ['' => [['id' => '3', 'exhibition_id' => '477', 'title' => '机器人大赛活动', 'startdate' => '', ...]]], 'exhibitor' => [], ...], frontend\controllers\ZhanhuiController)
    372373374375376377378379380381382383384
         * These parameters will not be available in the layout.
         * @return string the rendering result.
         * @throws InvalidParamException if the view file or the layout file does not exist.
         */
        public function render($view, $params = [])
        {
            $content = $this->getView()->render($view, $params, $this);
            return $this->renderContent($content);
        }
     
        /**
         * Renders a static string by applying a layout.
         * @param string $content the static string being rendered
    
  • 7. in /www/web/www_cnexpo_com/public_html/common/base/BaseController.php at line 51 yii\base\Controller::render('detail', ['data' => ['model' => common\models\Exhibition, 'show_start' => '2019年08月20日', 'show_end' => '08月25日', 'diff_time' => -60, ...], 'model' => common\models\Exhibition, 'meeting' => ['' => [['id' => '3', 'exhibition_id' => '477', 'title' => '机器人大赛活动', 'startdate' => '', ...]]], 'exhibitor' => [], ...])
    45464748495051525354555657
        public function beforeAction($action)
        {
            return parent::beforeAction($action);
        }
     
        public function render($view, $params = []) {
            return parent::render($view, $params);
        }
     
        public function renderAjax($view, $params = []) {
            return parent::renderAjax($view, $params);
        }
    }
  • 8. in /www/web/www_cnexpo_com/public_html/frontend/controllers/ZhanhuiController.php at line 240 – common\base\BaseController::render('detail', ['data' => ['model' => common\models\Exhibition, 'show_start' => '2019年08月20日', 'show_end' => '08月25日', 'diff_time' => -60, ...], 'model' => common\models\Exhibition, 'meeting' => ['' => [['id' => '3', 'exhibition_id' => '477', 'title' => '机器人大赛活动', 'startdate' => '', ...]]], 'exhibitor' => [], ...])
    234235236237238239240241242243244245246
                'news' => $news['news'],
                'newsPages' => $news['pagination'],
                'video' => $video,
                'journal' => $journal['news'],
                'download' => $download['news'],
                'followState' => $followState,
            ]);
        }
     
        /**
         * 获取行业分类
         * @return string
         */
    
  • 9. frontend\controllers\ZhanhuiController::actionDetail('477')
  • 10. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([frontend\controllers\ZhanhuiController, 'actionDetail'], ['477'])
    495051525354555657
            $args = $this->controller->bindActionParams($this, $params);
            Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
            if (Yii::$app->requestedParams === null) {
                Yii::$app->requestedParams = $args;
            }
     
            return call_user_func_array([$this->controller, $this->actionMethod], $args);
        }
    }
    
  • 11. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/Controller.php at line 154 yii\base\InlineAction::runWithParams(['id' => '477'])
    148149150151152153154155156157158159160
            }
     
            $result = null;
     
            if ($runAction && $this->beforeAction($action)) {
                // run the action
                $result = $action->runWithParams($params);
     
                $result = $this->afterAction($action, $result);
     
                // call afterAction on modules
                foreach ($modules as $module) {
                    /* @var $module Module */
    
  • 12. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/Module.php at line 454 yii\base\Controller::runAction('detail', ['id' => '477'])
    448449450451452453454455456457458459460
            $parts = $this->createController($route);
            if (is_array($parts)) {
                /* @var $controller Controller */
                list($controller, $actionID) = $parts;
                $oldController = Yii::$app->controller;
                Yii::$app->controller = $controller;
                $result = $controller->runAction($actionID, $params);
                Yii::$app->controller = $oldController;
     
                return $result;
            } else {
                $id = $this->getUniqueId();
                throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
    
  • 13. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/web/Application.php at line 87 yii\base\Module::runAction('zhanhui/detail', ['id' => '477'])
    81828384858687888990919293
                $params = $this->catchAll;
                unset($params[0]);
            }
            try {
                Yii::trace("Route requested: '$route'", __METHOD__);
                $this->requestedRoute = $route;
                $result = $this->runAction($route, $params);
                if ($result instanceof Response) {
                    return $result;
                } else {
                    $response = $this->getResponse();
                    if ($result !== null) {
                        $response->data = $result;
    
  • 14. in /www/web/www_cnexpo_com/public_html/vendor/yiisoft/yii2/base/Application.php at line 375 yii\web\Application::handleRequest(yii\web\Request)
    369370371372373374375376377378379380381
            try {
     
                $this->state = self::STATE_BEFORE_REQUEST;
                $this->trigger(self::EVENT_BEFORE_REQUEST);
     
                $this->state = self::STATE_HANDLING_REQUEST;
                $response = $this->handleRequest($this->getRequest());
     
                $this->state = self::STATE_AFTER_REQUEST;
                $this->trigger(self::EVENT_AFTER_REQUEST);
     
                $this->state = self::STATE_SENDING_RESPONSE;
                $response->send();
    
  • 15. in /www/web/www_cnexpo_com/public_html/index.php at line 28 yii\base\Application::run()
    22232425262728
        require(__DIR__ . '/frontend/config/main.php'),
        require(__DIR__ . '/frontend/config/main-local.php')
    );
     
    $application = new yii\web\Application($config);
    $application->language = 'zh-CN';
    $application->run();
  • $_GET = [
        'id' => '477',
    ];
    
    $_SESSION = [
        '__flash' => [],
    ];