中国·永利集团(3044am-VIP认证)官方入口·APP platform

[8] ErrorException in About.php line 52

Trying to access array offset on value of type null

  1. public function detail()
  2. {
  3. $id = $this->request->param("id");
  4. $info = Db::name('category')->alias('a')->field('a.*')
  5. ->where('a.id',$id)->find();
  6. $this->view->assign("info", $info);
  7. Db::name('category')->where('id',$id)->setInc('looks');
  8. $catalog = $info['type'];
  9. $map = [
  10. 'type'=>$catalog,
  11. 'id'=>array('lt',$id),
  12. 'status'=>'normal'
  13. ];
  14. $prev = Db::name('category')->where($map)->field('id,name as title')->find();
  15. $map = [
  16. 'type'=>$catalog,
  17. 'id'=>array('gt',$id),

Call Stack

  1. in About.php line 52
  2. at Error::appError() in About.php line 52
  3. at About->detail()
  4. at ReflectionMethod->invokeArgs() in App.php line 343
  5. at App::invokeMethod() in App.php line 611
  6. at App::module() in App.php line 456
  7. at App::exec() in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('/www/wwwroot/3157777...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

JSESSIONID
5b52a023-22ac-46ad-86ce-7459daea799a
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_COOKIE
JSESSIONID=5b52a023-22ac-46ad-86ce-7459daea799a
HTTP_ACCEPT_ENCODING
gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.hjgcd.com
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH_INFO
/index/about/detail/id/58.html
REDIRECT_STATUS
200
SERVER_NAME
www.hjgcd.com
SERVER_PORT
80
SERVER_ADDR
172.19.57.25
REMOTE_PORT
54434
REMOTE_ADDR
104.140.201.70
SERVER_SOFTWARE
nginx/1.24.0
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/31577777.com/hj_web/public
DOCUMENT_URI
/index.php
REQUEST_URI
/index/about/detail/id/58.html
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/index/about/detail/id/58.html
SCRIPT_FILENAME
/www/wwwroot/31577777.com/hj_web/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1732369175.6566
REQUEST_TIME
1732369175
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/31577777.com/hj_web/public/../application/
THINK_VERSION
5.0.26
THINK_START_TIME
1732369175.6571
THINK_START_MEM
409912
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/31577777.com/hj_web/thinkphp/
LIB_PATH
/www/wwwroot/31577777.com/hj_web/thinkphp/library/
CORE_PATH
/www/wwwroot/31577777.com/hj_web/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/31577777.com/hj_web/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/31577777.com/hj_web/
EXTEND_PATH
/www/wwwroot/31577777.com/hj_web/extend/
VENDOR_PATH
/www/wwwroot/31577777.com/hj_web/vendor/
RUNTIME_PATH
/www/wwwroot/31577777.com/hj_web/runtime/
LOG_PATH
/www/wwwroot/31577777.com/hj_web/runtime/log/
CACHE_PATH
/www/wwwroot/31577777.com/hj_web/runtime/cache/
TEMP_PATH
/www/wwwroot/31577777.com/hj_web/runtime/temp/
CONF_PATH
/www/wwwroot/31577777.com/hj_web/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
/www/wwwroot/31577777.com/hj_web/vendor/ezyang/htmlpurifier/library
ADDON_PATH
/www/wwwroot/31577777.com/hj_web/addons/