Error

PHP Warning欧宝体育客户端-app官方下载

date() expects parameter 2 to be integer, string given

  • 1. in /home/wwwroot/www.xiaolongkan.com/frontend/views/cn/news/detail.php at line 79
    70717273747576777879808182838485868788
            </div>
            <div class="detail_same">
                <div class="title">更多资讯</div>
                <div class="_detail_same_list">
                    <ul>
                        <?php foreach ($recommend as $list){?>
                        <li>
                            <a href="&rvpu;μ?=Vsm::upSpvuf(['ofxt/jogp','je'=&hu;$mjtu-&hu;ofxt_je])?&hu;&rvpu;&hu;"
                                <b><?=$list->news_title?></b>
                                <p><?=date('Y-m-d',$list->time)?></p>
                            </a>
                        </li>
                        <?php }?>
     
                    </ul>
                </div>
            </div>
        </div>
    </div>
    
  • 2. yii\base\ErrorHandler::handleError(2, 'date() expects parameter 2 to be...', '/home/wwwroot/www.xiaolongkan.co...', 79, ...)
  • 3. in /home/wwwroot/www.xiaolongkan.com/frontend/views/cn/news/detail.php at line 79 – date('Y-m-d', '')
    73747576777879808182838485
                <div class="_detail_same_list">
                    <ul>
                        <?php foreach ($recommend as $list){?>
                        <li>
                            <a href="&rvpu;μ?=Vsm::upSpvuf(['ofxt/jogp','je'=&hu;$mjtu-&hu;ofxt_je])?&hu;&rvpu;&hu;"
                                <b><?=$list->news_title?></b>
                                <p><?=date('Y-m-d',$list->time)?></p>
                            </a>
                        </li>
                        <?php }?>
     
                    </ul>
                </div>
    
  • 4. in /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/View.php at line 325 – require('/home/wwwroot/www.xiaolongkan.co...')
    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.
    
  • 5. in /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/View.php at line 247 yii\base\View::renderPhpFile('/home/wwwroot/www.xiaolongkan.co...', ['prev_title' => '悉尼欧宝体育客户端坎开到Burwood抽奖狂欢到月底', 'prev_url' => '/news/161.html', 'next_title' => '致敬劳动者,致敬自己', 'next_url' => '/news/149.html', ...])
    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;
    
  • 6. in /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/View.php at line 149 yii\base\View::renderFile('/home/wwwroot/www.xiaolongkan.co...', ['prev_title' => '悉尼欧宝体育客户端坎开到Burwood抽奖狂欢到月底', 'prev_url' => '/news/161.html', 'next_title' => '致敬劳动者,致敬自己', 'next_url' => '/news/149.html', ...], frontend\controllers\NewsController)
    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.
    
  • 7. in /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/Controller.php at line 379 yii\base\View::render('detail', ['prev_title' => '悉尼欧宝体育客户端坎开到Burwood抽奖狂欢到月底', 'prev_url' => '/news/161.html', 'next_title' => '致敬劳动者,致敬自己', 'next_url' => '/news/149.html', ...], frontend\controllers\NewsController)
    373374375376377378379380381382383384385
         * 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
    
  • 8. in /home/wwwroot/www.xiaolongkan.com/frontend/controllers/NewsController.php at line 97 yii\base\Controller::render('detail', ['prev_title' => '悉尼欧宝体育客户端坎开到Burwood抽奖狂欢到月底', 'prev_url' => '/news/161.html', 'next_title' => '致敬劳动者,致敬自己', 'next_url' => '/news/149.html', ...])
    919293949596979899100101102
            $data['prev_url'] = empty($model['prev_article']['url'])?'###':Url::toRoute(['news/info','id'=>$model['prev_article']['url']]);
            $data['next_title'] = $model['next_article']['title'];
            $data['next_url'] = empty($model['next_article']['url'])?'###':Url::toRoute(['news/info','id'=>$model['next_article']['url']]);
            $data['recommend'] =News::find()->where(['enabled'=>1,'news_p_cate'=>$info->news_p_cate,'news_type'=>'news','lang'=>$this->lang])->orderBy('RAND()')->limit(3)->all();
            Yii::$app->params['title']=$info->news_title;
            $data['info']=$info;
            return $this->render('detail',$data);
        }
     
     
     
    }
  • 9. frontend\controllers\NewsController::actionInfo()
  • 10. in /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/InlineAction.php at line 55 – call_user_func_array([frontend\controllers\NewsController, 'actionInfo'], [])
    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 /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/Controller.php at line 155 yii\base\InlineAction::runWithParams(['id' => '157', '/news/157_html' => ''])
    149150151152153154155156157158159160161
            }
     
            $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 /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/base/Module.php at line 454 yii\base\Controller::runAction('info', ['id' => '157', '/news/157_html' => ''])
    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 /home/wwwroot/www.xiaolongkan.com/vendor/yiisoft/yii2/web/Application.php at line 84 yii\base\Module::runAction('news/info', ['id' => '157', '/news/157_html' => ''])
    78798081828384858687888990
                $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 /home/wwwroot/www.xiaolongkan.com/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 /home/wwwroot/www.xiaolongkan.com/index.php at line 22 yii\base\Application::run()
    1617181920212223
        require(__DIR__ . '/common/config/main.php'),
        require(__DIR__ . '/common/config/main-local.php'),
        require(__DIR__ . '/frontend/config/main.php'),
        require(__DIR__ . '/frontend/config/main-local.php')
    );
    $application = new yii\web\Application($config);
    $application->run();
    ?>
    
  • $_GET = [
        'id' => '157',
        '/news/157_html' => '',
    ];