[8] ErrorException in Index.php line 235

未定义数组索引: detail

  1. $items_model = Db::table('cgp_world_area_items')
  2. ->field('id, title, detail as content')
  3. ->where('website_id', $this->site_config['id'])
  4. ->where('world_area_id', $model['id'])
  5. ->where("IFNULL(title, '') > ''")
  6. ->find();
  7. if ($items_model)
  8. {
  9. $model['title'] = $items_model['title'];
  10. $model['content'] = $items_model['detail'];
  11. }
  12. if ($this->site_config['lgc'] == 'en')
  13. {
  14. $model['name'] = $model['name_en'];
  15. }
  16. $this->canonical = 'https://' . $this->site_config['domain'] . $this->get_url_from_path($this->site_config['website_theme_url'], $model['path']);
  17. $country_name_url = Worldarea::get_name_url($model['pid']);

Call Stack

  1. in Index.php line 235
  2. at Error::appError() in Index.php line 235
  3. at Index->region()
  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/country...') in index.php line 23

Environment Variables

GET Data

website_id
174
region
bago
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.98 Safari/537.36
HTTP_HOST
countrygitpages.wowkie.top
PATH_INFO
/index/index/region
REDIRECT_STATUS
200
SERVER_NAME
countrygitpages.wowkie.top
SERVER_PORT
443
SERVER_ADDR
103.144.3.117
REMOTE_PORT
38950
REMOTE_ADDR
103.144.3.117
SERVER_SOFTWARE
nginx/1.20.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/countrygitpages.wowkie.top/public
DOCUMENT_URI
/index.php/index/index/region
REQUEST_URI
/index.php/index/index/region?website_id=174&region=bago
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
website_id=174&region=bago
SCRIPT_FILENAME
/www/wwwroot/countrygitpages.wowkie.top/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index/index/region
REQUEST_TIME_FLOAT
1756814177.5173
REQUEST_TIME
1756814177
Environment Variables
empty

ThinkPHP Constants

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