Error

PHP Notice金豪棋牌游戏官网_金豪棋牌怎么提现_金豪棋牌

Trying to get property of non-object

  • 1. in /data/wwwroot/yaojie.zhi100.cn/views/comment/view.php at line 94
    858687888990919293949596979899100101102103
                                            ?>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td height="60" align="center">---- 收到回复 ----</td>
                                    </tr>
                                    <tr>
                                        <td class="showcenter">
                                            <?php
                                            echo Yii::$app->formatter->asNtext($m->content);
                                            ?>
                                        </td>
                                    </tr>
                                </div>
                                </tbody>
                            </table>
                        </td>
                    </tr>
                    </tbody></table></td>
    
  • 2. in /data/wwwroot/yaojie.zhi100.cn/views/comment/view.php at line 94 yii\base\ErrorHandler::handleError(8, 'Trying to get property of non-ob...', '/data/wwwroot/yaojie.zhi100.cn/v...', 94, ...)
    888990919293949596979899100
                                    <tr>
                                        <td height="60" align="center">---- 收到回复 ----</td>
                                    </tr>
                                    <tr>
                                        <td class="showcenter">
                                            <?php
                                            echo Yii::$app->formatter->asNtext($m->content);
                                            ?>
                                        </td>
                                    </tr>
                                </div>
                                </tbody>
                            </table>
    
  • 3. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/View.php at line 330 – require('/data/wwwroot/yaojie.zhi100.cn/v...')
    324325326327328329330331332333334335336
        {
            $_obInitialLevel_ = ob_get_level();
            ob_start();
            ob_implicit_flush(false);
            extract($_params_, EXTR_OVERWRITE);
            try {
                require($_file_);
                return ob_get_clean();
            } catch (\Exception $e) {
                while (ob_get_level() > $_obInitialLevel_) {
                    if (!@ob_end_clean()) {
                        ob_clean();
                    }
    
  • 4. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/View.php at line 250 yii\base\View::renderPhpFile('/data/wwwroot/yaojie.zhi100.cn/v...', ['article' => [app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, ...], 'model' => app\modules\cms\models\CmsArticleComment, 'm' => null])
    244245246247248249250251252253254255256
                        $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 /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/View.php at line 152 yii\base\View::renderFile('/data/wwwroot/yaojie.zhi100.cn/v...', ['article' => [app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, ...], 'model' => app\modules\cms\models\CmsArticleComment, 'm' => null], app\controllers\CommentController)
    146147148149150151152153154155156157158
         * @throws InvalidCallException if the view cannot be resolved.
         * @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](guide:concept-aliases) of the view file. Please refer to [[render()]]
         * on how to specify this parameter.
    
  • 6. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/Controller.php at line 381 yii\base\View::render('view', ['article' => [app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, ...], 'model' => app\modules\cms\models\CmsArticleComment, 'm' => null], app\controllers\CommentController)
    375376377378379380381382383384385386387
         * 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 /data/wwwroot/yaojie.zhi100.cn/controllers/CommentController.php at line 68 yii\base\Controller::render('view', ['article' => [app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, app\modules\cms\models\CmsArticle, ...], 'model' => app\modules\cms\models\CmsArticleComment, 'm' => null])
    626364656667686970717273
     
                $m = CmsArticleComment::find()->where(['parent_id' => $model->id])->one();
                return $this->render('view',[
                    'article' => $article,
                    'model' => $model,
                    'm' => $m
                ]);
            }else{
                return $this->redirect(['/comment/index']);
            }
        }
    }
  • 8. app\controllers\CommentController::actionView('11')
  • 9. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([app\controllers\CommentController, 'actionView'], ['11'])
    515253545556575859
            $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);
        }
    }
    
  • 10. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/Controller.php at line 156 yii\base\InlineAction::runWithParams(['id' => '11'])
    150151152153154155156157158159160161162
            }
     
            $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 */
    
  • 11. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/Module.php at line 523 yii\base\Controller::runAction('view', ['id' => '11'])
    517518519520521522523524525526527528529
            $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);
                if ($oldController !== null) {
                    Yii::$app->controller = $oldController;
                }
     
                return $result;
            }
    
  • 12. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/web/Application.php at line 102 yii\base\Module::runAction('comment/view', ['id' => '11'])
    96979899100101102103104105106107108
                $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;
    
  • 13. in /data/wwwroot/yaojie.zhi100.cn/vendor/yiisoft/yii2/base/Application.php at line 380 yii\web\Application::handleRequest(yii\web\Request)
    374375376377378379380381382383384385386
            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();
    
  • 14. in /data/wwwroot/yaojie.zhi100.cn/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 = [
        'id' => '11',
    ];