[8] ErrorException in Show.php line 71

未定义数组索引: title

  1. ->find();
  2. Db::name($table_name)->where('id',$id)->setInc('click',1); //每点击一次click增加1
  3. }else{
  4. $content = db($table_name)->where('id',$id)->find();
  5. $content['content'] = '';
  6. }
  7. }
  8. }
  9. $title = $content['title'];
  10. if (!empty($content['picture_urls'])){
  11. $picture = explode(',',$content['picture_urls']);
  12. }else{
  13. $picture = '';
  14. }
  15. //判断是否存在下载文件
  16. if (!empty($downloadFile)){
  17. $downloadFile = $downloadFile;
  18. }else{

Call Stack

  1. in Show.php line 71
  2. at Error::appError(8, 'Undefined index: tit...', '/home/yinxicyci4njxr...', 71, ['config' => object(Config), 'webname' => '...', 'sitekeywords' => '...', ...]) in Show.php line 71
  3. at Show->index()
  4. at ReflectionMethod->invokeArgs(object(Show), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Show), object(ReflectionMethod), ['ename' => 'tech', 'id' => '544', 'convert' => false]) 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 29

Environment Variables

GET Data
cid 4
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_REDIRECT_UNIQUE_ID ZgV9cBJesOzkgPSyv@GUCAAAAAM
REDIRECT_REDIRECT_PHPRC /home/yinxicyci4njxri/others
REDIRECT_REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID ZgV9cBJesOzkgPSyv@GUCAAAAAM
REDIRECT_PHPRC /home/yinxicyci4njxri/others
REDIRECT_HANDLER php-cgi
REDIRECT_STATUS 200
UNIQUE_ID ZgV9cBJesOzkgPSyv@GUCAAAAAM
PHPRC /home/yinxicyci4njxri/others
HTTP_X_FORWARDED_FOR 18.234.232.228
HTTP_X_REAL_IP 122.114.59.17
HTTP_HOST www.yinxi.com.cn
HTTP_CONNECTION close
HTTP_X_REAL_XF 110.40.21.5
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.yinxi.com.cn Port 80</address>
SERVER_SOFTWARE Apache
SERVER_NAME www.yinxi.com.cn
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 18.234.232.228
DOCUMENT_ROOT /home/yinxicyci4njxri/wwwroot
REQUEST_SCHEME http
CONTEXT_PREFIX /php-run-as-cgi
CONTEXT_DOCUMENT_ROOT /usr/php7.0/bin
SERVER_ADMIN webmaster@yinxi
SCRIPT_FILENAME /home/yinxicyci4njxri/wwwroot/index.php
REMOTE_PORT 36608
REDIRECT_URL /index.php
REDIRECT_QUERY_STRING s=/tech/544.html
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.0
REQUEST_METHOD GET
QUERY_STRING s=/tech/544.html
REQUEST_URI /tech/544.html
SCRIPT_NAME /index.php
ORIG_SCRIPT_FILENAME /usr/php7.0/bin/php-cgi
ORIG_PATH_INFO /index.php
ORIG_PATH_TRANSLATED /home/yinxicyci4njxri/wwwroot/index.php
ORIG_SCRIPT_NAME /php-run-as-cgi/php-cgi
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711635824.3138
REQUEST_TIME 1711635824
Environment Variablesempty
ThinkPHP Constants
DS /
APP_PATH /home/yinxicyci4njxri/wwwroot/application/
APP_DEBUG true