Bí Quyết Chinh Phục Tư Thế Con Bò Cạp (Scorpion Pose) Nhanh Nhất

yii\base\ErrorException: Trying to access array offset on value of type null in /home/ufvizetq/yogalunathai.com/code/frontend/controllers/ProductController.php:105 Stack trace: #0 /home/ufvizetq/yogalunathai.com/code/frontend/controllers/ProductController.php(105): yii\base\ErrorHandler->handleError(8, 'Trying to acces...', '/home/ufvizetq/...', 105, Array) #1 [internal function]: frontend\controllers\ProductController->actionDetail('bi-quyet-chinh-...') #2 /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #3 /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array) #4 /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('detail', Array) #5 /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('product/detail', Array) #6 /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(yii\web\Request)) #7 /home/ufvizetq/yogalunathai.com/code/frontend/web/index.php(19): yii\base\Application->run() #8 {main} Copied! Copy Stacktrace Search Stackoverflow Search Google Error PHP Notice – yii\base\ErrorException

Trying to access array offset on value of type null

  • 1. in /home/ufvizetq/yogalunathai.com/code/frontend/controllers/ProductController.php at line 105 96979899100101102103104105106107108109110111112113114 $isCourseOnline= true; $Course = Course::findOne(['slug'=>$slug]); if( !$Course ){ $Course = CourseOffline::findOne(['slug'=>$slug]); $isCourseOnline=false; } if( !$Course ){ $model = new News(); $new = $model->find()->where(['slug'=>$slug])->one(); $new_more = $model->find()->where(['<>','id',$new['id']])->orderBy(['id'=>SORT_DESC])->limit(5)->all(); return $this->render('/news/detail',[ 'new'=>$new, 'news_more'=>$new_more // 'Sections'=>$Sections, // 'Lessions'=>$Lessions ]); } if( $isCourseOnline ){ $model_lession = new CourseLesson();
  • 2. in /home/ufvizetq/yogalunathai.com/code/frontend/controllers/ProductController.php at line 105 – yii\base\ErrorHandler::handleError(8, 'Trying to access array offset on...', '/home/ufvizetq/yogalunathai.com/...', 105, ...) 99100101102103104105106107108109110111 $Course = CourseOffline::findOne(['slug'=>$slug]); $isCourseOnline=false; } if( !$Course ){ $model = new News(); $new = $model->find()->where(['slug'=>$slug])->one(); $new_more = $model->find()->where(['<>','id',$new['id']])->orderBy(['id'=>SORT_DESC])->limit(5)->all(); return $this->render('/news/detail',[ 'new'=>$new, 'news_more'=>$new_more // 'Sections'=>$Sections, // 'Lessions'=>$Lessions ]);
  • 3. frontend\controllers\ProductController::actionDetail('bi-quyet-chinh-phuc-tu-the-con-b...')
  • 4. in /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/InlineAction.php at line 57 – call_user_func_array([frontend\controllers\ProductController, 'actionDetail'], ['bi-quyet-chinh-phuc-tu-the-con-b...']) 515253545556575859 $args = $this->controller->bindActionParams($this, $params); Yii::debug('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); } }
  • 5. in /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/Controller.php at line 181 – yii\base\InlineAction::runWithParams(['slug' => 'bi-quyet-chinh-phuc-tu-the-con-b...']) 175176177178179180181182183184185186187 } $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 */
  • 6. in /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/Module.php at line 534 – yii\base\Controller::runAction('detail', ['slug' => 'bi-quyet-chinh-phuc-tu-the-con-b...']) 528529530531532533534535536537538539540 $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; }
  • 7. in /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/web/Application.php at line 104 – yii\base\Module::runAction('product/detail', ['slug' => 'bi-quyet-chinh-phuc-tu-the-con-b...']) 9899100101102103104105106107108109110 $params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
  • 8. in /home/ufvizetq/yogalunathai.com/code/vendor/yiisoft/yii2/base/Application.php at line 392 – yii\web\Application::handleRequest(yii\web\Request) 386387388389390391392393394395396397398 { 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();
  • 9. in /home/ufvizetq/yogalunathai.com/code/frontend/web/index.php at line 19 – yii\base\Application::run() 13141516171819 // require(__DIR__ . '/../../common/config/main-local.php'), require(__DIR__ . '/../config/main.php') // require(__DIR__ . '/../config/main-local.php') ); (new yii\web\Application($config))->run();
$_GET = [ 'slug' => 'bi-quyet-chinh-phuc-tu-the-con-bo-cap-scorpion-pose-nhanh-nhat', ]; Yii Framework

2025-12-23, 22:59:41

Yii Framework/2.0.41-dev

Từ khóa » Thế Con Bò Cạp Trong Yoga