[8] ErrorException in Page.php line 22

未定义数组索引: name

  1. public function index()
  2. {
  3. //获取当前栏目,以及相关栏目信息
  4. $category_data = $this->menu();
  5. $category_data['content'] = Db::name('SitePage')->where('siteid', $this->siteid)->where('categoryid', $category_data['id'])->value('content');
  6. $this->assign('category_data', $category_data);
  7. $this->seo([
  8. 'category' => !empty($category_data['seo_title']) ? $category_data['seo_title'] : $category_data['name'].'_'.$this->config['website']['title'],
  9. 'keywords' => !empty($category_data['seo_keywords']) ? $category_data['seo_keywords'] : $this->config['website']['keywords'],
  10. 'description' => !empty($category_data['seo_description']) ? $category_data['seo_description'] : $this->config['website']['description'],
  11. ]);
  12. $tpl = !empty($category_data['tpl_index']) ? $category_data['tpl_index'] : 'index';
  13. return $this->fetch($tpl);
  14. }
  15. }

Call Stack

  1. in Page.php line 22
  2. at Error::appError(8, 'Undefined index: nam...', 'D:\wwwroot\sites3.al...', 22, ['category_data' => ['content' => null]]) in Page.php line 22
  3. at Page->index()
  4. at ReflectionMethod->invokeArgs(object(Page), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(Page), object(ReflectionMethod), ['images' => 'index', '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 27

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-bbc323a5-4016-4524-96a2-2880a445fc01
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\sites3.alyscby.com\sites3.alyscby.com.config
APP_POOL_ID sites3.alyscby.com
BT_PANEL D:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP D:\BtSoft
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME iZn5xpw1nkixdnZ
ComSpec C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK NO
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 2
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 85 Stepping 4, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 5504
ProgramData C:\ProgramData
ProgramFiles C:\Program Files (x86)
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
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME iZn5xpw1nkixdnZ$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/page/images/index.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/8.5
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME www.jindunjc.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\wwwroot\sites3.alyscby.com\public\index.php
REQUEST_URI /page/images/index.html
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 37626
REMOTE_HOST 52.207.218.95
REMOTE_ADDR 52.207.218.95
QUERY_STRING
PATH_TRANSLATED D:\wwwroot\sites3.alyscby.com\public\index.php\page\images\index.html
PATH_INFO /page/images/index.html
LOGON_USER
LOCAL_ADDR 172.31.23.255
INSTANCE_META_PATH /LM/W3SVC/7
INSTANCE_NAME SITES3.ALYSCBY.COM
INSTANCE_ID 7
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\wwwroot\sites3.alyscby.com\public
CONTENT_TYPE
CONTENT_LENGTH 0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH D:\wwwroot\sites3.alyscby.com\public\
APPL_MD_PATH /LM/W3SVC/7/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /page/images/index.html
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /page/images/index.html
HTTP_USER_AGENT claudebot
HTTP_HOST www.jindunjc.com
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/page/images/index.html
REQUEST_TIME_FLOAT 1711636486.4983
REQUEST_TIME 1711636486
Environment Variablesempty
ThinkPHP Constants
__ROOT__