[8] ErrorException in Designer.php line 61

未定义变量: lname

  1. if($info['lei'] == 6){
  2. $lname = '软装设计师';
  3. }
  4. $case = db('cases')->where(array('status' => 1,'sjs'=>$id))->order('sort asc,id desc')->paginate(30);
  5. $counts = db('online')->where(array('status' => 1))->count();
  6. $this->assign('info',$info);
  7. $this->assign('lname',$lname);
  8. $this->assign('case',$case);
  9. $this->assign('counts',$counts);
  10. return $this->fetch();
  11. }
  12. }

Call Stack

  1. in Designer.php line 61
  2. at Error::appError(8, 'Undefined variable: ...', '/home/jxkszsgj1xfkes...', 61, ['id' => '37', 'info' => ['id' => 37, 'name' => '傅稚园', 'author' => '...', ...], 'case' => object(Collection), ...]) in Designer.php line 61
  3. at Designer->show()
  4. at ReflectionMethod->invokeArgs(object(Designer), []) in App.php line 226
  5. at App::invokeMethod([object(Designer), 'show']) in App.php line 359
  6. at App::module(['index', 'designer', 'show'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 134
  7. at App::run() in start.php line 18
  8. at require('/home/jxkszsgj1xfkes...') in index.php line 17

Exception Datas

Error Context
id 37
info { "id": 37, "name": "\u5085\u7a1a\u56ed", "author": "\u3010\u5b98\u7f51\u3011\u5609\u5174\u5eb7\u76db\u88c5\u9970-\u5609\u5174\u88c5\u9970\u516c\u53f8|\u5609\u5174\u88c5\u9970\u8bbe\u8ba1|\u5609\u5174\u6700\u597d\u7684\u88c5\u9970\u516c\u53f8|\u5609\u5584\u88c5\u4fee\u516c\u53f8", "sort": 2, "lei": 0, "pid": 2, "addtime": "2017-04-22 00:00:00", "look": 0, "smallpic": "\/Pic\/image\/20170422101575357535.jpg", "pic": "", "level": "\u8f6f\u88c5\u8bbe\u8ba1\u5e08", "motto": "\u8bbe\u8ba1\u7528\u54c1\u5473\u3001\u7528\u60c5\u5546\u3001\u66f4\u8981\u7528\u8d23\u4efb\u5fc3\u3002", "content": "<p style=\"margin-left:52.5pt;white-space:normal;text-indent:-52.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\">2009\u5e74\u8fdb\u5165\u6d59\u6c5f\u519c\u6797\u5927\u5b66\u5e76\u9009\u62d4\u8fdb\u5165\u6d59\u6c5f\u5723\u5965\u8bbe\u8ba1\u5de5\u4f5c\u5ba4\uff1b<\/span><\/span> \r\n<\/p>\r\n<p style=\"margin-left:52.5pt;white-space:normal;text-indent:-52.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\">2011\u5e74\u5b9e\u4e60\u4e8e\u676d\u5dde\u7396\u5ea6\u8f6f\u88c5\u8bbe\u8ba1\u516c\u53f8\uff1b<\/span><\/span> \r\n<\/p>\r\n<p style=\"margin-left:52.5pt;white-space:normal;text-indent:-52.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\">2012\u5e74\u6bd5\u4e1a\u4e8e\u6d59\u6c5f\u519c\u6797\u5927\u5b66\uff1b<\/span><\/span> \r\n<\/p>\r\n<p style=\"margin-left:52.5pt;white-space:normal;text-indent:-52.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\">2016\u5e74\u8fdb\u5165\u5609\u5174\u5eb7\u76db\u88c5\u9970\u3002<\/span><\/span> \r\n<\/p>\r\n<p style=\"margin-left:52.5pt;white-space:normal;text-indent:-52.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\"><br \/>\r\n<\/span><\/span> \r\n<\/p>\r\n<p style=\"margin-left:52.5pt;white-space:normal;text-indent:-52.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><\/span><span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><\/span> \r\n<\/p>\r\n<p style=\"margin-left:73.5pt;white-space:normal;text-indent:-73.5pt;\">\r\n\t<span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\">\u4e2a\u4eba\u6848\u4f8b<\/span><span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\">\uff1a<\/span><span style=\"font-size:10.5pt;font-family:\u5b8b\u4f53;\"><\/span> \r\n<\/p>\r\n<p style=\"margin-left:73.5pt;white-space:normal;text-indent:-73.5pt;\">\r\n\t<span style=\"font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\">\u9ec4\u5c71\u5929\u90fd\u9996\u90e1\u6837\u677f\u623f\u3001\u676d\u5dde\u666f\u79c0\u94b1\u5858\u6837\u677f\u623f\u3001\u5609\u5174\u6e58\u5bb6\u8361\u6837\u677f\u623f\u3001<\/span><\/span> \r\n<\/p>\r\n<p style=\"margin-left:73.5pt;white-space:normal;text-indent:-73.5pt;\">\r\n\t<span style=\"font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\">\u5b9d\u77f3\u516c\u9986\u3001\u5361\u5730\u4e9a\u5bab\u3001\u82f1\u4f26\u90fd\u5e02\u522b\u5885\u7b49\u7b49\u3002<\/span><\/span> \r\n<\/p>\r\n<div>\r\n\t<span style=\"font-family:\u5b8b\u4f53;\"><span style=\"white-space:nowrap;\"><br \/>\r\n<\/span><\/span> \r\n<\/div>", "Title": null, "keywords": null, "description": null, "tops": 1, "num": null, "status": 1 }
case { "total": 0, "per_page": 30, "current_page": 1, "data": [] }
counts 271

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID ZgbNoXCD1nlyYbF5Uk7PkAAAABA
REDIRECT_REDIRECT_PHPRC /home/jxkszsgj1xfkestzos/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgbNoXCD1nlyYbF5Uk7PkAAAABA
REDIRECT_PHPRC /home/jxkszsgj1xfkestzos/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZgbNoXCD1nlyYbF5Uk7PkAAAABA
PHPRC /home/jxkszsgj1xfkestzos/others
HTTP_X_FORWARDED_FOR 35.172.110.179
HTTP_X_REAL_IP 211.149.140.180
HTTP_HOST www.jxkszs.com
HTTP_CONNECTION close
HTTP_ACCEPT_ENCODING gzip
HTTP_X_FORWARDED_PROTO http
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE <address>Apache Server at www.jxkszs.com Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.jxkszs.com
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 35.172.110.179
DOCUMENT_ROOT /home/jxkszsgj1xfkestzos/wwwroot
REQUEST_SCHEME http
CONTEXT_PREFIX /php-run-as-cgi
CONTEXT_DOCUMENT_ROOT /usr/php7.1/bin
SERVER_ADMIN webmaster@jxkszs
SCRIPT_FILENAME /home/jxkszsgj1xfkestzos/wwwroot/index.php
REMOTE_PORT 51488
REDIRECT_URL /index.php/designer/show/id/37.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /designer/show/id/37.html
SCRIPT_NAME /index.php
PATH_INFO /designer/show/id/37.html
PATH_TRANSLATED /home/jxkszsgj1xfkestzos/wwwroot/designer/show/id/37.html
ORIG_PATH_INFO /index.php/designer/show/id/37.html
ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME /usr/php7.1/bin/php-cgi
ORIG_PATH_TRANSLATED /home/jxkszsgj1xfkestzos/wwwroot/index.php/designer/show/id/37.html
PHP_SELF /index.php/designer/show/id/37.html
REQUEST_TIME_FLOAT 1711721889.4127
REQUEST_TIME 1711721889
Environment Variablesempty
ThinkPHP Constants
APP_PATH /home/jxkszsgj1xfkestzos/wwwroot/application/
BIND_MODULE index
BASE_PATH
ROOT_PATH /home/jxkszsgj1xfkestzos/wwwroot/
EXTEND_PATH /home/jxkszsgj1xfkestzos/wwwroot/thinkphp/extend/
VENDOR_PATH /home/jxkszsgj1xfkestzos/wwwroot/thinkphp/vendor/
THINK_VERSION 5.0.0
THINK_START_TIME 1711721889.4137
THINK_START_MEM 358344
EXT .php
DS /
THINK_PATH /home/jxkszsgj1xfkestzos/wwwroot/thinkphp/
LIB_PATH /home/jxkszsgj1xfkestzos/wwwroot/thinkphp/library/
CORE_PATH /home/jxkszsgj1xfkestzos/wwwroot/thinkphp/library/think/
TRAIT_PATH /home/jxkszsgj1xfkestzos/wwwroot/thinkphp/library/traits/
RUNTIME_PATH /home/jxkszsgj1xfkestzos/wwwroot/runtime/
LOG_PATH /home/jxkszsgj1xfkestzos/wwwroot/runtime/log/
CACHE_PATH /home/jxkszsgj1xfkestzos/wwwroot/runtime/cache/
TEMP_PATH /home/jxkszsgj1xfkestzos/wwwroot/runtime/temp/
CONF_PATH /home/jxkszsgj1xfkestzos/wwwroot/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false