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