Error

PHP Notice千赢国际娱乐手机版登录_千赢国际电脑版_千赢国际欢迎您

Trying to get property of non-object

  • 1. in D:\wamp64\www\htdocs\controllers\SiteController.php at line 100
    919293949596979899100101102103104105106107108109
     
            if (Yii::$app->deviceDetect->isMobile()) {
                $this->layout = "//mobile";
                $mobile = 'mobile/';
            } else {
                $this->layout = "//inner";
                $mobile = '';
            }
     
            if ($page->parent_id == 0) {
                $menu = Menu::find()->where(['position' => 'bottom'])->one();
                $links = explode(',', $menu->content);
                if ($page->id == 13) {
                    $group_news = Post::find()->where(['page_id' => [14, 21, 45, 56, 59]])->orderBy(['create_date' => SORT_DESC])->all();
                    $industry_news = Post::find()->where(['page_id' => 15])->orderBy(['create_date' => SORT_DESC])->limit(6)->all();
                    $media_news = Post::find()->where(['page_id' => 16])->orderBy(['create_date' => SORT_DESC])->limit(6)->all();
                    $pic_news = Photo::find()->where(['page_id' => 39, 'parent_id' => 0])->orderBy(['create_date' => SORT_DESC])->limit(10)->all();
                    $headlines = Post::find()->where(['is_headline' => 1])->orderBy(['create_date' => SORT_DESC])->all();
                    return $this->render($mobile . 'template/' . $page->template, [
    
  • 2. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\InlineAction.php at line 55 – call_user_func_array:{D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\InlineAction.php:55}()
    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);
        }
    }
    
  • 3. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\Controller.php at line 151 yii\base\InlineAction::runWithParams()
    145146147148149150151152153154155156157
            }
     
            $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 */
    
  • 4. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\Module.php at line 455 yii\base\Controller::runAction()
    449450451452453454455456457458459460461
            $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) . '".');
    
  • 5. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\web\Application.php at line 84 yii\base\Module::runAction()
    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;
    
  • 6. in D:\wamp64\www\htdocs\vendor\yiisoft\yii2\base\Application.php at line 375 yii\web\Application::handleRequest()
    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();
    
  • 7. in D:\wamp64\www\htdocs\web\index.php at line 12 yii\base\Application::run()
    6789101112
     
    require(__DIR__ . '/../vendor/autoload.php');
    require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
     
    $config = require(__DIR__ . '/../config/web.php');
     
    (new yii\web\Application($config))->run();
    
  • $_GET = [
        'slug' => 'mdvr',
    ];
    
    $_SERVER = [
        'REDIRECT_STATUS' => '200',
        'HTTP_USER_AGENT' => 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)',
        'HTTP_HOST' => 'www.ycjljt.com',
        'HTTP_ACCEPT' => '*/*',
        'HTTP_ACCEPT_ENCODING' => 'deflate, gzip',
        'PATH' => 'C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;',
        'SystemRoot' => 'C:\\Windows',
        'COMSPEC' => 'C:\\Windows\\system32\\cmd.exe',
        'PATHEXT' => '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC',
        'WINDIR' => 'C:\\Windows',
        'SERVER_SIGNATURE' => '
    Apache/2.4.27 (Win64) PHP/5.6.31 Server at www.ycjljt.com Port 80
    ', 'SERVER_SOFTWARE' => 'Apache/2.4.27 (Win64) PHP/5.6.31', 'SERVER_NAME' => 'www.ycjljt.com', 'SERVER_ADDR' => '172.16.17.14', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '154.223.192.92', 'DOCUMENT_ROOT' => 'D:/wamp64/www/htdocs/web', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => 'D:/wamp64/www/htdocs/web', 'SERVER_ADMIN' => 'wampserver@wampserver.invalid', 'SCRIPT_FILENAME' => 'D:/wamp64/www/htdocs/web/index.php', 'REMOTE_PORT' => '20065', 'REDIRECT_URL' => '/mdvr', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/mdvr', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1574192322.2179999, 'REQUEST_TIME' => 1574192322, ];