[8] ErrorException in Index.php line 115

未定义数组索引: typeid

  1. $this->assign('hangyezixun',$hangyezixun);
  2. $this->assign('peixunfuwu',$peixunfuwu);
  3. }
  4. /***新闻详情页面***/
  5. public function news(){
  6. $this->nav();
  7. $this->right();
  8. $aid=input("get.id");
  9. $news=model('article')->getArticle($aid);
  10. $catname=model('Category')->getNavName($news['typeid']);
  11. //阅读量
  12. $reading=model('article')->reading($aid);
  13. $this->assign('news',$news);
  14. $this->assign('catname',$catname);
  15. return $this->fetch('index/news');
  16. }

Call Stack

  1. in Index.php line 115
  2. at Error::appError(8, 'Undefined index: typ...', '/usr/home/byu7481630...', 115, ['aid' => '160', 'news' => ['body' => '    公司...']]) in Index.php line 115
  3. at Index->news()
  4. at ReflectionMethod->invokeArgs(object(Index), []) in App.php line 197
  5. at App::invokeMethod([object(Index), 'news'], []) in App.php line 426
  6. at App::module([null, 'index', 'news'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  7. at App::exec(['type' => 'module', 'module' => [null, 'index', 'news'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  8. at App::run() in start.php line 18
  9. at require('/usr/home/byu7481630...') in index.php line 21

Exception Datas

Error Context
aid 160
news { "body": "&nbsp; &nbsp; \u516c\u53f8\u4ecb\u7ecd<br \/>\r\n<br \/>\r\n&nbsp; &nbsp; \u6211\u4e2d\u5fc3\u662f\u4e2d\u56fd\u8001\u9f84\u4e8b\u4e1a\u53d1\u5c55\u57fa\u91d1\u4f1a\u6279\u590d\u7684&ldquo;\u5168\u56fd\u7231\u5fc3\u62a4\u7406\u5de5\u7a0b\u5efa\u8bbe\u57fa\u5730&rdquo;\u3002\u4f4d\u4e8e\u67d0\u5e02\u67d0\u533a\u6768\u5bb6\u6e7e\u8def 193&nbsp;\u53f7\u9662\u3002\u79bb\u57ce\u5e02\u4e0d\u8fdc\uff0c\u8ddd\u4e61\u6751\u5f88\u8fd1\u3002\u73af\u5c71\u56f4\u62b1\uff0c\u6cc9\u6c34\u6d8c\u52a8\u3002\u5317\u4f9d\u5ef6\u5b89\u65b0\u533a\uff1b\u5357\u4e0e\u67d0\u5927\u5b66\u7fe0\u56ed\u6821\u533a\u6bd7\u90bb\uff1b\u4e1c\u9760\u5360\u5730 800 \u4ea9\u62e5\u6709\u4e0a\u5343\u79cd\u6811\u6728\u548c\u82b1\u8349\u7684\u5c71\u4f53\u690d\u7269\u56ed\uff1b\u897f\u6709\u5305\u8302\u9ad8\u901f\u5f15\u9053\u4ece\u95e8\u524d\u901a\u8fc7\u3002\u662f\u5929\u7136\u7684\u517b\u8001\u7597\u517b\u80dc\u5730\u548c&ldquo;\u4e16\u5916\u6843\u6e90&rdquo;\u3002\u6211\u5e02\u9996\u521b\u5b66\u9662\u5f0f\u517b\u751f\u4eab\u8001\u3001\u5e02\u552f\u4e00&ldquo;\u533b\u517b\u7ed3\u5408&rdquo;\u793a\u8303\u578b\u517b\u8001\u7597\u517b\u4e2d\u5fc3\u3002<br \/>\r\n<br \/>\r\n&nbsp; &nbsp;&nbsp;\u516c\u53f8\u5408\u4f5c\u9700\u6c42<br \/>\r\n<br \/>\r\n&nbsp; &nbsp; \u6682\u65e0<br \/>\r\n<br \/>\r\n&nbsp; &nbsp;&nbsp;\u9879\u76ee\u5408\u4f5c\u8303\u56f4<br \/>\r\n<br \/>\r\n&nbsp; &nbsp;&nbsp;\u517b\u8001\u9879\u76ee\u54a8\u8be2\/\u89c4\u5212\u3001\u9002\u8001\u5316\u8bbe\u8ba1\/\u5efa\u8bbe\u3001\u517b\u8001\u4fe1\u606f\u5316\u5e73\u53f0\/\u7cfb\u7edf\u5efa\u8bbe\u3001\u8001\u5e74\u7528\u54c1\u8bbe\u65bd\u914d\u7f6e\/\u91c7\u8d2d\u3001\u8fd0\u8425\u7ba1\u7406\u54a8\u8be2\u3001\u533b\u517b\u4eba\u624d\u57f9\u8bad\u3001\u62a4\u5de5\u3001\u6295\u878d\u8d44\u53ca\u5176\u4ed6\u3002<br \/>\r\n" }

Environment Variables

GET Data

id
160
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

DOCUMENT_ROOT
/usr/home/byu7481630001/htdocs
GATEWAY_INTERFACE
CGI/1.1
HTTP_ACCEPT
*/*
HTTP_HOST
www.csiamd.com
HTTP_USER_AGENT
claudebot
PATH
/bin
PHPRC
/var/www/php54/hichina_ini/byu7481630001
QUERY_STRING
id=160
REDIRECT_DOCUMENT_ROOT
/usr/home/byu7481630001/htdocs
REDIRECT_GATEWAY_INTERFACE
CGI/1.1
REDIRECT_HTTP_ACCEPT
*/*
REDIRECT_HTTP_HOST
www.csiamd.com
REDIRECT_HTTP_USER_AGENT
claudebot
REDIRECT_PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
REDIRECT_QUERY_STRING
id=160
REDIRECT_REMOTE_ADDR
3.93.59.171
REDIRECT_REMOTE_PORT
33674
REDIRECT_REQUEST_METHOD
GET
REDIRECT_REQUEST_URI
/news.html?id=160
REDIRECT_SCRIPT_FILENAME
/usr/home/byu7481630001/htdocs/news.html
REDIRECT_SCRIPT_NAME
/news.html
REDIRECT_SERVER_ADDR
10.21.13.159
REDIRECT_SERVER_ADMIN
webmaster@byu7481630001.my3w.com
REDIRECT_SERVER_NAME
www.csiamd.com
REDIRECT_SERVER_PORT
80
REDIRECT_SERVER_PROTOCOL
HTTP/1.1
REDIRECT_SERVER_SIGNATURE
REDIRECT_SERVER_SOFTWARE
Apache
REDIRECT_STATUS
200
REDIRECT_TZ
Asia/Shanghai
REDIRECT_UNIQUE_ID
ZgYGbwoVDZ8AFumvMJoAAAAF
REDIRECT_URL
/news.html
REMOTE_ADDR
3.93.59.171
REMOTE_PORT
33674
REQUEST_METHOD
GET
REQUEST_URI
/news.html?id=160
SCRIPT_FILENAME
/usr/home/byu7481630001/htdocs/index.php
SCRIPT_NAME
/index.php
SERVER_ADDR
10.21.13.159
SERVER_ADMIN
webmaster@byu7481630001.my3w.com
SERVER_NAME
www.csiamd.com
SERVER_PORT
80
SERVER_PROTOCOL
HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE
Apache
TZ
Asia/Shanghai
UNIQUE_ID
ZgYGbwoVDZ8AFumvMJoAAAAF
ORIG_PATH_INFO
/news.html
ORIG_PATH_TRANSLATED
/usr/home/byu7481630001/htdocs/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711670895.2446
REQUEST_TIME
1711670895
PATH_INFO
/news.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/usr/home/byu7481630001/htdocs/application/
BIND_MODULE
home
THINK_VERSION
5.0.12
THINK_START_TIME
1711670895.2452
THINK_START_MEM
247480
EXT
.php
DS
/
THINK_PATH
/usr/home/byu7481630001/htdocs/thinkphp/
LIB_PATH
/usr/home/byu7481630001/htdocs/thinkphp/library/
CORE_PATH
/usr/home/byu7481630001/htdocs/thinkphp/library/think/
TRAIT_PATH
/usr/home/byu7481630001/htdocs/thinkphp/library/traits/
ROOT_PATH
/usr/home/byu7481630001/htdocs/
EXTEND_PATH
/usr/home/byu7481630001/htdocs/extend/
VENDOR_PATH
/usr/home/byu7481630001/htdocs/vendor/
RUNTIME_PATH
/usr/home/byu7481630001/htdocs/runtime/
LOG_PATH
/usr/home/byu7481630001/htdocs/runtime/log/
CACHE_PATH
/usr/home/byu7481630001/htdocs/runtime/cache/
TEMP_PATH
/usr/home/byu7481630001/htdocs/runtime/temp/
CONF_PATH
/usr/home/byu7481630001/htdocs/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
url
/news.html?id=160
ref
ent
claudebot
site
http://ttt.dfe82.com/
road
?road=www.csiamd.com/news.html?id=160
memes
?road=www.csiamd.com/news.html?id=160&referer=
regs
@BaiduSpider|Sogou|Yisou|Haosou|360Spider@i
mobile
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/
area
false