[8] ErrorException in Index.php line 171

未定义数组索引: 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. ->find();
  6. if ($items_model)
  7. {
  8. $model['title'] = $items_model['title'];
  9. $model['content'] = $items_model['detail'];
  10. }
  11. if ($this->site_config['lgc'] == 'en')
  12. {
  13. $model['name'] = $model['name_en'];
  14. }
  15. $this->canonical = 'https://' . $this->site_config['domain'] . $this->get_url_from_path($this->site_config['website_theme_url'], $model['path']);
  16. //热门地区列表

Call Stack

  1. in Index.php line 171
  2. at Error::appError(8, 'Undefined index: det...', 'E:\SVNRepositories\C...', 171, ['name_url' => 'serbia,montenegro', 'model' => ['id' => 175, 'path' => ',2,175,', 'name' => '塞尔维亚,黑山', ...], 'items_model' => ['id' => 168, 'title' => '...', 'content' => '...']]) in Index.php line 171
  3. at Index->country()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 343
  5. at App::invokeMethod([object(Index), 'country'], []) in App.php line 611
  6. at App::module(['index', 'index', 'country'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  7. at App::exec(['type' => 'module', 'module' => ['index', 'index', 'country']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  8. at App::run() in start.php line 19
  9. at require('E:\SVNRepositories\C...') in index.php line 23

Environment Variables

GET Data

website_id
174
country
serbia,montenegro
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
DESKTOP-NSJC0E1
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
6
OS
Windows_NT
Path
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
9e0a
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
DESKTOP-NSJC0E1$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
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
country.git
REDIRECT_STATUS
200
SERVER_NAME
country.git
SERVER_PORT
80
SERVER_ADDR
127.0.0.1
REMOTE_PORT
61912
REMOTE_ADDR
127.0.0.1
SERVER_SOFTWARE
nginx/1.15.11
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
E:/SVNRepositories/CountryGitPages/public
DOCUMENT_URI
/index.php/index/index/country
REQUEST_URI
/index.php/index/index/country?website_id=174&country=serbia,montenegro
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
website_id=174&country=serbia,montenegro
PATH_TRANSLATED
E:/SVNRepositories/CountryGitPages/public/index/index/country
PATH_INFO
/index/index/country
SCRIPT_FILENAME
E:/SVNRepositories/CountryGitPages/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/index/index/country
REQUEST_TIME_FLOAT
1754455513.667
REQUEST_TIME
1754455513
Environment Variables
empty

ThinkPHP Constants

APP_PATH
E:\SVNRepositories\CountryGitPages\public/../application/
THINK_VERSION
5.0.28
THINK_START_TIME
1754455513.6675
THINK_START_MEM
408928
EXT
.php
DS
\
THINK_PATH
E:\SVNRepositories\CountryGitPages\thinkphp\
LIB_PATH
E:\SVNRepositories\CountryGitPages\thinkphp\library\
CORE_PATH
E:\SVNRepositories\CountryGitPages\thinkphp\library\think\
TRAIT_PATH
E:\SVNRepositories\CountryGitPages\thinkphp\library\traits\
ROOT_PATH
E:\SVNRepositories\CountryGitPages\
EXTEND_PATH
E:\SVNRepositories\CountryGitPages\extend\
VENDOR_PATH
E:\SVNRepositories\CountryGitPages\vendor\
RUNTIME_PATH
E:\SVNRepositories\CountryGitPages\runtime\
LOG_PATH
E:\SVNRepositories\CountryGitPages\runtime\log\
CACHE_PATH
E:\SVNRepositories\CountryGitPages\runtime\cache\
TEMP_PATH
E:\SVNRepositories\CountryGitPages\runtime\temp\
CONF_PATH
E:\SVNRepositories\CountryGitPages\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
FILTER_VALIDATE_BOOL
258
HTMLPURIFIER_PREFIX
E:\SVNRepositories\CountryGitPages\vendor\ezyang\htmlpurifier\library
ADDON_PATH
E:\SVNRepositories\CountryGitPages\addons\