[8] ErrorException in Error.php line 75

未定义变量: cate

  1. $this->view->assign('info', $info);//单页内容
  2. //定义tdk
  3. $title = $cate['title'] ? $cate['title'] :
  4. ($cate['catname'] ? $cate['catname'] : $info['title']);
  5. $keywords = $cate['keywords'] ? $cate['keywords'] : $system['key'];
  6. $description = $cate['description'] ? $cate['description'] : $system['des'];
  7. }else{
  8. //列表模型
  9. //定义tdk
  10. $title = $cate['title'] ? $cate['title'] : $cate['catname'];
  11. $keywords = $cate['keywords'] ? $cate['keywords'] : $system['key'];
  12. $description = $cate['description'] ? $cate['description'] : $system['des'];
  13. }
  14. $this->view->assign('cate', $cate);//栏目信息
  15. $this->view->assign('system', $system);//系统信息
  16. $this->view->assign('public', '/template/'.$this->module.'/'.$system['template'].'/');//公共目录
  17. $this->view->assign('title', $title);//seo信息
  18. $this->view->assign('keywords', $keywords);//seo信息
  19. $this->view->assign('description', $description);//seo信息

Call Stack

  1. in Error.php line 75
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/sycms.z...', 75, ['system' => object(System)]) in Error.php line 75
  3. at Error->index()
  4. at ReflectionMethod->invokeArgs(object(Error), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Error), object(ReflectionMethod), []) in Module.php line 131
  6. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  7. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  8. at Middleware->think\{closure}(object(Request))
  9. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  10. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  11. at Module->exec() in Dispatch.php line 168
  12. at Dispatch->run() in App.php line 432
  13. at App->think\{closure}(object(Request), object(Closure), null)
  14. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  15. at Middleware->think\{closure}(object(Request))
  16. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  17. at Middleware->dispatch(object(Request)) in App.php line 435
  18. at App->run() in index.php line 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookies
PHPSESSID qi6t7sm33adgesnhfj8hf8j2g3
Sessionempty
Server/Request Data
USER www
HOME /home/www
FCGI_ROLE RESPONDER
SCRIPT_FILENAME /www/wwwroot/sycms.zhongdoutech.com/public/index.php
QUERY_STRING s=/home/picture/index/catId/
REQUEST_METHOD GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME /index.php
REQUEST_URI /home/picture/index/catId/
DOCUMENT_URI /index.php
DOCUMENT_ROOT /www/wwwroot/sycms.zhongdoutech.com/public
SERVER_PROTOCOL HTTP/1.1
REQUEST_SCHEME http
GATEWAY_INTERFACE CGI/1.1
SERVER_SOFTWARE nginx/1.17.10
REMOTE_ADDR 172.252.198.2
REMOTE_PORT 35170
SERVER_ADDR 172.19.178.208
SERVER_PORT 80
SERVER_NAME sycms.zhongdoutech.com
REDIRECT_STATUS 200
PATH_INFO
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST www.zhongdoukeji.com
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip
HTTP_COOKIE PHPSESSID=qi6t7sm33adgesnhfj8hf8j2g3
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1696082262.0308
REQUEST_TIME 1696082262
Environment Variablesempty
ThinkPHP Constants
ADDON_PATH /www/wwwroot/sycms.zhongdoutech.com/addons/