[8] ErrorException in common.php line 382

未定义数组索引: index

  1. //加载语言包
  2. include APP_PATH . 'index/lang/language.php';
  3. $key = $key . '.' . $flag;
  4. $key = explode('.', $key);
  5. $count = count($key);
  6. if ($count == 2) {
  7. return $language[$key[0]][$key[1]];
  8. }
  9. if ($count == 3) {
  10. return $language[$key[0]][$key[1]][$key[2]];
  11. }
  12. if ($count == 4) {
  13. return $language[$key[0]][$key[1]][$key[2]][$key[3]];
  14. }
  15. }
  16. }

Call Stack

  1. in common.php line 382
  2. at Error::appError(8, 'Undefined index: ind...', 'D:\www\biosharp\appl...', 382, ['flag' => 'index', 'key' => ['seo', 'title', 'index'], 'count' => 3, ...]) in common.php line 382
  3. at parse_language('index', ['seo', 'title', 'index']) in 7dd59a541d64fbde550697561d5a5250.php line 8
  4. at include('D:\www\biosharp\runt...') in File.php line 53
  5. at File->read('D:\www\biosharp\runt...', ['flag' => 'index', 'user' => null, 'site' => ['name' => 'Biosharp', 'cdnurl' => '', 'version' => 1620597609, ...], ...]) in Template.php line 188
  6. at Template->fetch('D:\www\biosharp\publ...', ['flag' => 'index', 'user' => null, 'site' => ['name' => 'Biosharp', 'cdnurl' => '', 'version' => 1620597609, ...], ...], []) in Think.php line 86
  7. at Think->fetch('D:\www\biosharp\publ...', ['flag' => 'index', 'user' => null, 'site' => ['name' => 'Biosharp', 'cdnurl' => '', 'version' => 1620597609, ...], ...], []) in View.php line 163
  8. at View->fetch() in About.php line 113
  9. at About->recruit()
  10. at ReflectionMethod->invokeArgs(object(About), []) in App.php line 343
  11. at App::invokeMethod([object(About), 'recruit'], []) in App.php line 611
  12. at App::module(['index', 'about', 'recruit'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 456
  13. at App::exec(['type' => 'module', 'module' => ['index', 'about', 'recruit']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  14. at App::run() in start.php line 19
  15. at require('D:\www\biosharp\thin...') in index.php line 25

Environment Variables

GET Data

/index/about/recruit/language/index_html
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

PATH
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\
SYSTEMROOT
C:\Windows
COMSPEC
C:\Windows\system32\cmd.exe
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
WINDIR
C:\Windows
PHPRC
D:/phpstudy_pro/Extensions/php/php7.3.4nts
_FCGI_SHUTDOWN_EVENT_
9764
HTTP_CONNECTION
close
SCRIPT_NAME
/index.php
REQUEST_URI
/index/about/recruit/language/index.html
QUERY_STRING
/index/about/recruit/language/index.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/index/about/recruit/language/index.html
REDIRECT_URL
/index/about/recruit/language/index.html
REMOTE_PORT
20000
SCRIPT_FILENAME
D:/www/biosharp/public/index.php
SERVER_ADMIN
admin@example.com
CONTEXT_DOCUMENT_ROOT
D:/www/biosharp/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
D:/www/biosharp/public
REMOTE_ADDR
154.221.125.64
SERVER_PORT
80
SERVER_ADDR
172.16.10.110
SERVER_NAME
www.biosharp.cn
SERVER_SOFTWARE
Apache/2.4.39 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9a mod_log_rotate/1.02
SERVER_SIGNATURE
SystemRoot
C:\Windows
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.biosharp.cn
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1620597609.4268
REQUEST_TIME
1620597609
PATH_INFO
/index/about/recruit/language/index.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\www\biosharp\public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1620597609.4278
THINK_START_MEM
409288
EXT
.php
DS
\
THINK_PATH
D:\www\biosharp\thinkphp\
LIB_PATH
D:\www\biosharp\thinkphp\library\
CORE_PATH
D:\www\biosharp\thinkphp\library\think\
TRAIT_PATH
D:\www\biosharp\thinkphp\library\traits\
ROOT_PATH
D:\www\biosharp\
EXTEND_PATH
D:\www\biosharp\extend\
VENDOR_PATH
D:\www\biosharp\vendor\
RUNTIME_PATH
D:\www\biosharp\runtime\
LOG_PATH
D:\www\biosharp\runtime\log\
CACHE_PATH
D:\www\biosharp\runtime\cache\
TEMP_PATH
D:\www\biosharp\runtime\temp\
CONF_PATH
D:\www\biosharp\public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true
ADDON_PATH
D:\www\biosharp\addons\