HI,您好,欢迎来到华会体育

[8] ErrorException in News.php line 98

未定义数组索引: article_id

  1. $this->assign('article_list',$article_list_result);
  2. $this->assign('page',$page);
  3. $template = $this->template_pub.'news.html';
  4. return $this->fetch($template);
  5. }
  6. public function news_show()
  7. {
  8. $params = input('param.');
  9. $where['a.article_id'] = $params['article_id'];
  10. Db::name('news')->where(['article_id'=>$where])->setInc('hits');
  11. $article_info = Db::name('news')->field('a.*,ac.cat_name')->alias('a')->join('news_cat ac','ac.cat_id = a.cat_id','left')->where($where)->find();
  12. $title = $article_info['title'];
  13. $this->assign('title',$title);
  14. $this->assign('article_info', $article_info);
  15. $cat_id_active = $article_info['cat_ids'];
  16. $this->assign('cat_id_active', $cat_id_active);
  17. $template = $this->template_pub.'news-view.html';

Call Stack

  1. in News.php line 98
  2. at Error::appError(8, 'Undefined index: art...', 'D:\wwwroot\gangbo\ww...', 98, ['params' => []]) in News.php line 98
  3. at News->news_show()
  4. at ReflectionMethod->invokeArgs(object(News), []) in Container.php line 395
  5. at Container->invokeReflectMethod(object(News), object(ReflectionMethod), []) in Module.php line 132
  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 137
  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 21

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
_FCGI_X_PIPE_ \\.\pipe\IISFCGI-39801668-ebca-446d-b7fa-979588ad3e33
PHP_FCGI_MAX_REQUESTS 2024
PHPRC C:\php_56
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG C:\inetpub\temp\apppools\gangbo\gangbo.config
APP_POOL_ID gangbo
CommonProgramFiles C:\Program Files (x86)\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME EBS-6791
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS 8
OS Windows_NT
Path C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\php_52;D:\mysql\bin;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\dotnet\;C:\Program Files (x86)\dotnet\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE x86
PROCESSOR_ARCHITEW6432 AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 4f01
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
USERDOMAIN WORKGROUP
USERNAME EBS-6791$
USERPROFILE C:\Windows\system32\config\systemprofile
windir C:\Windows
ORIG_PATH_INFO /index.php/index/news/news_show/article_id/
URL /index.php
SERVER_SOFTWARE Microsoft-IIS/10.0
SERVER_PROTOCOL HTTP/1.1
SERVER_PORT_SECURE 0
SERVER_PORT 80
SERVER_NAME slackermarketing.com
SCRIPT_NAME /index.php
SCRIPT_FILENAME D:\wwwroot\gangbo\wwwroot\index.php
REQUEST_URI /index.php/index/news/news_show/article_id/
REQUEST_METHOD GET
REMOTE_USER
REMOTE_PORT 63825
REMOTE_HOST 127.0.0.1
REMOTE_ADDR 127.0.0.1
QUERY_STRING
PATH_TRANSLATED D:\wwwroot\gangbo\wwwroot\index.php\index\news\news_show\article_id\
PATH_INFO /index/news/news_show/article_id/
LOGON_USER
LOCAL_ADDR 127.0.0.1
INSTANCE_META_PATH /LM/W3SVC/10527
INSTANCE_NAME GANGBO
INSTANCE_ID 10527
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS off
GATEWAY_INTERFACE CGI/1.1
DOCUMENT_ROOT D:\wwwroot\gangbo\wwwroot
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\gangbo\wwwroot\
APPL_MD_PATH /LM/W3SVC/10527/ROOT
IIS_UrlRewriteModule 7,1,1993,2336
WEBSOCKET_VERSION 13
HTTP_X_REAL_IP 156.241.73.161
HTTP_X_FORWARDED_FOR 156.241.73.161
HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
HTTP_HOST slackermarketing.com
HTTP_ACCEPT */*
HTTP_CONNECTION close
FCGI_ROLE RESPONDER
PHP_SELF /index.php/index/news/news_show/article_id/
REQUEST_TIME_FLOAT 39801668-0466
REQUEST_TIME 39801668
Environment Variablesempty
ThinkPHP Constantsempty