think\exception\ErrorException {#104
#message: "Trying to access array offset on null"
#code: 0
#file: "/www/wwwroot/bjhyba.cn/app/home/controller/Index.php"
#line: 67
#data: []
#severity: 2
trace: {
/www/wwwroot/bjhyba.cn/app/home/controller/Index.php:67 {
app\home\controller\Index->__call($name, $arguments) …
› $findCate = ArticleCate::getCategoryById($cateId);
› $banner = Slider::getBannerByCateId($findCate['bg_id'],1);
› $lists = $pidTrees = null;
}
app\home\controller\Index->__call() {}
/www/wwwroot/bjhyba.cn/vendor/topthink/think-container/src/Container.php:349 {
think\Container->invokeReflectMethod($instance, $reflect, array $vars = []) …
›
› return $reflect->invokeArgs($instance, $args);
› }
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/route/Dispatch.php:190 {
think\route\Dispatch->think\route\{closure} …
›
› $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
›
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/route/Dispatch.php:164 {
think\route\Dispatch->responseWithMiddlewarePipeline($instance, $action) …
› ->send($this->request)
› ->then(function () use ($instance, $action) {
› // 获取当前操作名
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/route/dispatch/Callback.php:111 {
think\route\dispatch\Callback->exec() …
›
› return $this->responseWithMiddlewarePipeline($instance, $this->action);
› }
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/route/Dispatch.php:60 {
think\route\Dispatch->run(): Response …
› {
› $data = $this->exec();
› return $this->autoResponse($data);
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Route.php:717 {
think\Route->think\{closure} …
› ->then(function () use ($dispatch) {
› return $dispatch->run();
› });
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Route.php:716 {
think\Route->dispatch(Request $request, Closure|bool $withRoute = true) …
› ->send($request)
› ->then(function () use ($dispatch) {
› return $dispatch->run();
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Http.php:208 {
think\Http->dispatchToRoute($request) …
›
› return $this->app->route->dispatch($request, $withRoute);
› }
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Http.php:198 {
think\Http->think\{closure} …
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
› });
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/bjhyba.cn/vendor/topthink/think-multi-app/src/MultiApp.php:45 {
think\app\MultiApp->handle($request, Closure $next) …
› if (!$this->parseMultiApp()) {
› return $next($request);
› }
}
think\app\MultiApp->handle() {}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php:58 {
think\middleware\SessionInit->handle(Request $request, Closure $next): Response …
› /** @var Response $response */
› $response = $next($request);
›
}
think\middleware\SessionInit->handle() {}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/bjhyba.cn/vendor/topthink/think-trace/src/TraceDebug.php:72 {
think\trace\TraceDebug->handle($request, Closure $next) …
›
› $response = $next($request);
›
}
think\trace\TraceDebug->handle() {}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Http.php:197 {
think\Http->runWithRequest(Request $request) …
› ->send($request)
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
}
/www/wwwroot/bjhyba.cn/vendor/topthink/framework/src/think/Http.php:162 {
think\Http->run(?Request $request = null): Response …
› try {
› $response = $this->runWithRequest($request);
› } catch (Throwable $e) {
}
/www/wwwroot/bjhyba.cn/public/index.php:85 {
›
› $response = $http->run();
›
}
}
}