#0 [2]ErrorException in e7406b657782c282ca99eb588906ccd1.php line 421

Undefined variable $category_pid

  1. $__PAGE_VAR_NAME__ = isset($articles_data['page'])?$articles_data['page']:'';
  2. if(is_array($articles_data['articles']) || $articles_data['articles'] instanceof \think\Collection || $articles_data['articles'] instanceof \think\Paginator): $i = 0; $__LIST__ = $articles_data['articles'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
  3. $where=function($query)use($category_pid){
  4. $query->where('parent_id','=',$category_pid);
  5. };
  6. $portal_categories_data = \app\portal\service\ApiService::categories([
  7. 'where' => $where,
  8. 'order' => 'list_order',
  9. 'ids' => ""
  10. ]);
  11. if(is_array($portal_categories_data) || $portal_categories_data instanceof \think\Collection || $portal_categories_data instanceof \think\Paginator): $i = 0; $__LIST__ = $portal_categories_data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

Call Stack

  1. in e7406b657782c282ca99eb588906ccd1.php line 421
  2. at Error->appError(2, 'Undefined variable $...', 'D:\wwwroot\hngyxx\da...', 421) in e7406b657782c282ca99eb588906ccd1.php line 421
  3. at include('D:\wwwroot\hngyxx\da...') in File.php line 59
  4. at File->read('D:\wwwroot\hngyxx\da...', ['category' => object(PortalCategoryModel), 'article' => object(PortalPostModel), 'prev_article' => object(PortalPostModel), ...]) in Template.php line 255
  5. at Template->fetch('D:\wwwroot\hngyxx\pu...', ['category' => object(PortalCategoryModel), 'article' => object(PortalPostModel), 'prev_article' => object(PortalPostModel), ...]) in Think.php line 149
  6. at Think->fetch('D:\wwwroot\hngyxx\pu...', ['category' => object(PortalCategoryModel), 'article' => object(PortalPostModel), 'prev_article' => object(PortalPostModel), ...]) in View.php line 125
  7. at View->think\{closure}() in View.php line 161
  8. at View->getContent(object(Closure)) in View.php line 126
  9. at View->fetch('D:\wwwroot\hngyxx\pu...', [], []) in HomeBaseController.php line 84
  10. at HomeBaseController->fetch('D:\wwwroot\hngyxx\pu...') in ArticleController.php line 84
  11. at ArticleController->index()
  12. at ReflectionMethod->invokeArgs(object(ArticleController), []) in Container.php line 344
  13. at Container->invokeReflectMethod(object(ArticleController), object(ReflectionMethod), ['id' => '2100', 'cid' => '0']) in Controller.php line 138
  14. at Controller->think\route\dispatch\{closure}(object(Request)) in Pipeline.php line 59
  15. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  16. at Pipeline->then(object(Closure)) in Controller.php line 141
  17. at Controller->exec() in Dispatch.php line 90
  18. at Dispatch->run() in Route.php line 772
  19. at Route->think\{closure}(object(Request)) in Pipeline.php line 59
  20. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  21. at Pipeline->then(object(Closure)) in Route.php line 773
  22. at Route->dispatch(object(Request), object(Closure)) in Http.php line 217
  23. at Http->dispatchToRoute(object(Request)) in Http.php line 207
  24. at Http->think\{closure}(object(Request)) in Pipeline.php line 59
  25. at Pipeline->think\{closure}(object(Request)) in SessionInit.php line 67
  26. at SessionInit->handle(object(Request), object(Closure))
  27. at call_user_func([object(SessionInit), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  28. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  29. at Pipeline->think\{closure}(object(Request)) in TraceDebug.php line 71
  30. at TraceDebug->handle(object(Request), object(Closure))
  31. at call_user_func([object(TraceDebug), 'handle'], object(Request), object(Closure)) in Middleware.php line 142
  32. at Middleware->think\{closure}(object(Request), object(Closure)) in Pipeline.php line 85
  33. at Pipeline->think\{closure}(object(Request)) in Pipeline.php line 66
  34. at Pipeline->then(object(Closure)) in Http.php line 208
  35. at Http->runWithRequest(object(Request)) in Http.php line 171
  36. at Http->run() in index.php line 32

Environment Variables

GET Data
id 2100
cid 0
POST Dataempty
Filesempty
Cookies
PHPSESSID f3ff22f6eb090a7868cbb4e13fd6132f
Session
last_time 1670325650
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-f071a632-535d-42e8-ad15-8da22e2a05b0
PHP_FCGI_MAX_REQUESTS 10000
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\192.168.2.59\192.168.2.59.config
APP_POOL_ID 192.168.2.59
BT_PANEL D:\BtSoft\panel
BT_PYTHON C:\Program Files\python
BT_SETUP D:\BtSoft
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME WEB-59
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 4
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\python;C:\Program Files\python\Scripts;;D:\BtSoft\panel\script;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 85 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 5507
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
UNRAR_LIB_PATH C:\Program Files\python\Lib\site-packages\unrar\UnRAR.dll
USERDOMAIN WORKGROUP
USERNAME WEB-59$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/portal/article/index.html
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME
SCRIPT_NAME /index.php
SCRIPT_FILENAME d:\wwwroot\hngyxx\public\index.php
REQUEST_URI /portal/article/index.html?id=2100&cid=0
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 58784
REMOTE_HOST 192.168.100.1
REMOTE_ADDR 192.168.100.1
QUERY_STRING id=2100&cid=0
PATH_TRANSLATED d:\wwwroot\hngyxx\public\index.php\portal\article\index.html
PATH_INFO /portal/article/index.html
LOGON_USER
LOCAL_ADDR 192.168.2.59
INSTANCE_META_PATH /LM/W3SVC/3
INSTANCE_NAME 192.168.2.59
INSTANCE_ID 3
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT d:\wwwroot\hngyxx\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\hngyxx\public\
APPL_MD_PATH /LM/W3SVC/3/ROOT
IIS_UrlRewriteModule 7.1.0871.0
UNENCODED_URL /portal/article/index.html?id=2100&cid=0
IIS_WasUrlRewritten 1
HTTP_X_ORIGINAL_URL /portal/article/index.html?id=2100&cid=0
HTTP_USER_AGENT Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
HTTP_COOKIE PHPSESSID=f3ff22f6eb090a7868cbb4e13fd6132f
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT */*
HTTP_CONTENT_LENGTH 0
FCGI_ROLE RESPONDER
PHP_SELF /index.php/portal/article/index.html
REQUEST_TIME_FLOAT 1670325650.7106
REQUEST_TIME 1670325650
0.093798s