think\exception\InvalidArgumentException {#510
#message: "only array cache can be push"
#code: 0
#file: "/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/cache/Driver.php"
#line: 120
trace: {
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/cache/Driver.php:120 {
think\cache\Driver->push($name, $value): void …
› if (!is_array($item)) {
› throw new InvalidArgumentException('only array cache can be push');
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/cache/Driver.php:143 {
think\cache\Driver->append($name, $value): void …
› {
› $this->push($name, $value);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/cache/TagSet.php:62 {
think\cache\TagSet->append(string $name): void …
› $key = $this->handler->getTagKey($tag);
› $this->handler->append($key, $name);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/cache/TagSet.php:45 {
think\cache\TagSet->set($name, $value, $expire = null): bool …
›
› $this->append($name);
›
}
/home/wwwroot/new_web.cn/app/common/util/Cms.php:271 {
app\common\util\Cms->lists($def = true) …
› 'model'
› ])->set($cacheKey, $lists, $this->expire);
› }
}
/home/wwwroot/new_web.cn/runtime/cms/view/e35ca87cab5ea5069bca724793ce2f5c07fe2c3bbe1165f4c8ec863d4395a3f8.php:33 {
require …
› $cms2->cate($c);
› $products = $cms2->limit(2000)->lists();
› ?>
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/PhpEngine.php:92 {
Illuminate\View\Engines\PhpEngine::Illuminate\View\Engines\{closure} …
›
› return require $__path;
› })();
arguments: {
"/home/wwwroot/new_web.cn/runtime/cms/view/e35ca87cab5ea5069bca724793ce2f5c07fe2c3bbe1165f4c8ec863d4395a3f8.php"
}
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/PhpEngine.php:93 {
Illuminate\View\Engines\PhpEngine->getRequire($path, array $data = []) …
› return require $__path;
› })();
› }
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/PhpEngine.php:48 {
Illuminate\View\Engines\PhpEngine->evaluatePath($path, $data) …
› try {
› $this->getRequire($path, $data);
› } catch (Throwable $e) {
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/Engines/CompilerEngine.php:75 {
Illuminate\View\Engines\CompilerEngine->get($path, array $data = []) …
› try {
› $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
› } catch (ViewException $e) {
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/View.php:195 {
Illuminate\View\View->getContents() …
› {
› return $this->engine->get($this->path, $this->gatherData());
› }
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/View.php:178 {
Illuminate\View\View->renderContents() …
›
› $contents = $this->getContents();
›
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/View/View.php:147 {
Illuminate\View\View->render(callable $callback = null) …
› try {
› $contents = $this->renderContents();
›
}
/home/wwwroot/new_web.cn/vendor/vietrue/think-blade/src/Blade.php:130 {
think\view\driver\Blade->fetch(string $template, array $data = []): void …
›
› echo $this->blade->file($templatePath, $data)->render();
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/View.php:91 {
think\View->think\{closure} …
› return $this->getContent(function () use ($vars, $template) {
› $this->engine()->fetch($template, array_merge($this->data, $vars));
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/View.php:123 {
think\View->getContent($callback): string …
› try {
› $callback();
› } catch (\Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/View.php:92 {
think\View->fetch(string $template = '', array $vars = []): string …
› $this->engine()->fetch($template, array_merge($this->data, $vars));
› });
› }
}
think\View->fetch() {}
/home/wwwroot/new_web.cn/vendor/topthink/think-container/src/Facade.php:97 {
think\Facade::__callStatic($method, $params) …
› {
› return call_user_func_array([static::createFacade(), $method], $params);
› }
}
/home/wwwroot/new_web.cn/app/cms/controller/Base.php:83 {
app\cms\controller\Base->fetch($template = ''): string …
› // View::config(['view_theme' => $this->website_prefix]);\r
› return View::fetch($template);\r
› \r
}
/home/wwwroot/new_web.cn/app/cms/controller/Index.php:64 {
app\cms\controller\Index->comparison() …
› ]);
› return $this->fetch('comparison');
› }
}
app\cms\controller\Index->comparison() {}
/home/wwwroot/new_web.cn/vendor/topthink/think-container/src/Container.php:348 {
think\Container->invokeReflectMethod($instance, $reflect, array $vars = []) …
›
› return $reflect->invokeArgs($instance, $args);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/Dispatch.php:178 {
think\route\Dispatch->think\route\{closure} …
›
› $data = $this->app->invokeReflectMethod($instance, $reflect, $vars);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/Dispatch.php:181 {
think\route\Dispatch->responseWithMiddlewarePipeline($instance, $action) …
› return $this->autoResponse($data);
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php:88 {
think\route\dispatch\Controller->exec() …
›
› return $this->responseWithMiddlewarePipeline($instance, $this->actionName);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/route/Dispatch.php:56 {
think\route\Dispatch->run(): Response …
› {
› $data = $this->exec();
› return $this->autoResponse($data);
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Route.php:713 {
think\Route->think\{closure} …
› ->then(function () use ($dispatch) {
› return $dispatch->run();
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Route.php:714 {
think\Route->dispatch(Request $request, Closure|bool $withRoute = true) …
› return $dispatch->run();
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:208 {
think\Http->dispatchToRoute($request) …
›
› return $this->app->route->dispatch($request, $withRoute);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:198 {
think\Http->think\{closure} …
› ->then(function ($request) {
› return $this->dispatchToRoute($request);
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/think-multi-app/src/MultiApp.php:51 {
think\app\MultiApp->think\app\{closure} …
› ->then(function ($request) use ($next) {
› return $next($request);
› });
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:59 {
think\Pipeline->think\{closure} …
› try {
› return $destination($passable);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/think-multi-app/src/MultiApp.php:52 {
think\app\MultiApp->handle($request, Closure $next) …
› return $next($request);
› });
› }
}
think\app\MultiApp->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.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() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/middleware/LoadLangPack.php:53 {
think\middleware\LoadLangPack->handle(Request $request, Closure $next): Response …
›
› return $next($request);
› }
}
think\middleware\LoadLangPack->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/think-trace/src/TraceDebug.php:71 {
think\trace\TraceDebug->handle($request, Closure $next) …
›
› $response = $next($request);
›
}
think\trace\TraceDebug->handle() {}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Middleware.php:134 {
think\Middleware->think\{closure} …
› }
› $response = call_user_func($call, $request, $next, ...$params);
›
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:85 {
think\Pipeline->think\{closure} …
› try {
› return $pipe($passable, $stack);
› } catch (Throwable | Exception $e) {
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Pipeline.php:66 {
think\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:199 {
think\Http->runWithRequest(Request $request) …
› return $this->dispatchToRoute($request);
› });
› }
}
/home/wwwroot/new_web.cn/vendor/topthink/framework/src/think/Http.php:162 {
think\Http->run(Request $request = null): Response …
› try {
› $response = $this->runWithRequest($request);
› } catch (Throwable $e) {
}
/home/wwwroot/new_web.cn/public/index.php:20 {
›
› $response = $http->run();
›
}
}
}