系统发生错误

#0 [8]ErrorException in Lists.php line 34

未定义变量: pid

  1. //调取当前栏目的新闻 当前栏目
  2. $pdir = input('pdir');//一级分类
  3. $dir = input('dir');//二级分类
  4. $dir2= '';
  5. $dir3 = '';
  6. $dir4 = '';
  7. $column = $this->_get_classification_details($pdir);
  8. isset($column['id']) && $pid = $column['id'];
  9. $this->assign('column',$column);
  10. if(!$pid)abort(404);
  11. //当前表的名字
  12. $database_name = $column['database_name'];
  13. //分页
  14. $page = input('page/d',1);//当前页数
  15. $url = '/'.$pdir;
  16. $this->_new_list_page($page,$pid,$url,$database_name);
  17. $can_cate = $this->_get_canshu_source($pid);
  18. $c_cate = $can_cate['c_cate'];
  19. $t_cate = $can_cate['t_cate'];

Call Stack

  1. in Lists.php line 34
  2. at Error->appError(8, 'Undefined variable: ...', 'E:\20150308\health\a...', 34, ['pdir' => 'ennc', 'dir' => null, 'dir2' => '', ...]) in Lists.php line 34
  3. at Lists->lists()
  4. at ReflectionMethod->invokeArgs(object(Lists), []) in Container.php line 342
  5. at Container->invokeReflectMethod(object(Lists), object(ReflectionMethod), ['pdir' => 'ennc']) in Controller.php line 110
  6. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  7. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  8. at Pipeline->then(object(Closure)) in Controller.php line 113
  9. at Controller->exec() in Dispatch.php line 96
  10. at Dispatch->run() in Route.php line 747
  11. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  12. at Pipeline->think\{closure}(object(Request)) in Library.php line 81
  13. at Library->think\admin\{closure}(object(Request), object(Closure))
  14. at call_user_func(object(Closure), object(Request), object(Closure)) in Middleware.php line 142
  15. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  16. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  17. at Pipeline->then(object(Closure)) in Route.php line 748
  18. at Route->dispatch(object(Request), object(Closure)) in Http.php line 213
  19. at Http->dispatchToRoute(object(Request)) in Http.php line 203
  20. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  21. at Pipeline->think\{closure}(object(Request)) in MultiApp.php line 71
  22. at MultiApp->think\app\{closure}(object(Request)) in Pipeline.php line 59
  23. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  24. at Pipeline->then(object(Closure)) in MultiApp.php line 72
  25. at MultiApp->handle(object(Request), object(Closure))
  26. at call_user_func([object(MultiApp), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  27. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  28. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  29. at SessionInit->handle(object(Request), object(Closure))
  30. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  31. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 84
  32. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 65
  33. at Pipeline->then(object(Closure)) in Http.php line 204
  34. at Http->runWithRequest(object(Request)) in Http.php line 162
  35. at Http->run() in SystemService.php line 325
  36. at SystemService->doInit(object(App)) in index.php line 25

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_
\\.\pipe\IISFCGI-148fa993-8eb9-483b-acae-09c419a26992
PHPRC
D:\PHP\php-7.3.9\
PHP_FCGI_MAX_REQUESTS
10000
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\chzhww\chzhww.config
APP_POOL_ID
chzhww
CommonProgramFiles
C:\Program Files\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
WIN-CMUVS3UTJVP
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
16
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft\Web Platform Installer\;D:\PHP\mysql-5.7.30\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 44 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
2c02
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
D:\win\Temp
TMP
D:\win\Temp
USERDOMAIN
WORKGROUP
USERNAME
WIN-CMUVS3UTJVP$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/ennc/
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
www.chzhw.com
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
E:\20150308\health\public\index.php
REQUEST_URI
/ennc/
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
20000
REMOTE_HOST
154.92.166.228
REMOTE_ADDR
154.92.166.228
QUERY_STRING
PATH_TRANSLATED
E:\20150308\health\public\index.php\ennc\
PATH_INFO
/ennc/
LOGON_USER
LOCAL_ADDR
222.186.169.95
INSTANCE_META_PATH
/LM/W3SVC/3
INSTANCE_NAME
CHZHW
INSTANCE_ID
3
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
E:\20150308\health\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
E:\20150308\health\public\
APPL_MD_PATH
/LM/W3SVC/3/ROOT
IIS_UrlRewriteModule
7,1,1993,2351
UNENCODED_URL
/ennc/
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/ennc/
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
www.chzhw.com
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/ennc/
REQUEST_TIME_FLOAT
1603334743.0528
REQUEST_TIME
1603334743
Environment Variables
APP_DEBUG
APP_DEFAULT_TIMEZONE
Asia/Shanghai
DATABASE_TYPE
mysql
DATABASE_HOSTNAME
127.0.0.1
DATABASE_DATABASE
dycms_6
DATABASE_USERNAME
root
DATABASE_PASSWORD
DATABASE_HOSTPORT
3306
DATABASE_CHARSET
utf8
DATABASE_DEBUG
LANG_DEFAULT_LANG
zh-cn
ThinkPHP Constants
FILTER_VALIDATE_BOOL
258
U_IDNA_PROHIBITED_ERROR
66560
U_IDNA_ERROR_START
66560
U_IDNA_UNASSIGNED_ERROR
66561
U_IDNA_CHECK_BIDI_ERROR
66562
U_IDNA_STD3_ASCII_RULES_ERROR
66563
U_IDNA_ACE_PREFIX_ERROR
66564
U_IDNA_VERIFICATION_ERROR
66565
U_IDNA_LABEL_TOO_LONG_ERROR
66566
U_IDNA_ZERO_LENGTH_LABEL_ERROR
66567
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR
66568
U_IDNA_ERROR_LIMIT
66569
U_STRINGPREP_PROHIBITED_ERROR
66560
U_STRINGPREP_UNASSIGNED_ERROR
66561
U_STRINGPREP_CHECK_BIDI_ERROR
66562
IDNA_DEFAULT
0
IDNA_ALLOW_UNASSIGNED
1
IDNA_USE_STD3_RULES
2
IDNA_CHECK_BIDI
4
IDNA_CHECK_CONTEXTJ
8
IDNA_NONTRANSITIONAL_TO_ASCII
16
IDNA_NONTRANSITIONAL_TO_UNICODE
32
INTL_IDNA_VARIANT_2003
0
INTL_IDNA_VARIANT_UTS46
1
IDNA_ERROR_EMPTY_LABEL
1
IDNA_ERROR_LABEL_TOO_LONG
2
IDNA_ERROR_DOMAIN_NAME_TOO_LONG
4
IDNA_ERROR_LEADING_HYPHEN
8
IDNA_ERROR_TRAILING_HYPHEN
16
IDNA_ERROR_HYPHEN_3_4
32
IDNA_ERROR_LEADING_COMBINING_MARK
64
IDNA_ERROR_DISALLOWED
128
IDNA_ERROR_PUNYCODE
256
IDNA_ERROR_LABEL_HAS_DOT
512
IDNA_ERROR_INVALID_ACE_LABEL
1024
IDNA_ERROR_BIDI
2048
IDNA_ERROR_CONTEXTJ
4096