[8] ErrorException in Culture.php line 16

未定义数组索引: topid

  1. {
  2. public function _initialize(){
  3. parent::_initialize();
  4. $cid = Request::instance()->param("cid");
  5. if(!$cid){
  6. $cid = 103;
  7. }
  8. $this_chanel = Db::name("channel")->find($cid);
  9. $this_chanel['top_name'] = Db::name("channel")->where('id',$this_chanel['topid'])->value("cname");
  10. $this->assign("nei_nav",nav2($this_chanel['topid']));
  11. $this->assign("channel",$this_chanel);
  12. }
  13. function idea(){
  14. return $this->fetch("index/culture_idea");
  15. }
  16. function propaganda(){

Call Stack

  1. in Culture.php line 16
  2. at Error::appError(8, 'Undefined index: top...', '/filedata/zc_new/app...', 16, ['cid' => 'www.baidu.com', 'this_chanel' => ['top_name' => null]]) in Culture.php line 16
  3. at Culture->_initialize() in Controller.php line 59
  4. at Controller->__construct(object(Request))
  5. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  6. at App::invokeClass('app\index\controller...') in Loader.php line 479
  7. at Loader::controller('culture', 'controller', false, 'Error') in App.php line 581
  8. at App::module(['index', 'culture', 'idea'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'culture', 'idea']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  10. at App::run() in start.php line 19
  11. at require('/filedata/zc_new/thi...') in index.php line 17

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
apache
HOME
/var/www
FCGI_ROLE
RESPONDER
SCRIPT_FILENAME
/filedata/zc_new/public/index.php
QUERY_STRING
s=//index/culture/idea/cid/www.baidu.com
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/culture/idea/cid/www.baidu.com
DOCUMENT_URI
/index.php
DOCUMENT_ROOT
/filedata/zc_new/public
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
SERVER_SOFTWARE
nginx/1.12.2
REMOTE_ADDR
154.210.92.188
REMOTE_PORT
20000
SERVER_ADDR
172.19.31.167
SERVER_PORT
80
SERVER_NAME
www.zcjszx.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
HTTP_HOST
zcjszx.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
deflate, gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1632176281.8658
REQUEST_TIME
1632176281
PATH_INFO
//index/culture/idea/cid/www.baidu.com
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/filedata/zc_new/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1632176281.8663
THINK_START_MEM
232664
EXT
.php
DS
/
THINK_PATH
/filedata/zc_new/thinkphp/
LIB_PATH
/filedata/zc_new/thinkphp/library/
CORE_PATH
/filedata/zc_new/thinkphp/library/think/
TRAIT_PATH
/filedata/zc_new/thinkphp/library/traits/
ROOT_PATH
/filedata/zc_new/
EXTEND_PATH
/filedata/zc_new/extend/
VENDOR_PATH
/filedata/zc_new/vendor/
RUNTIME_PATH
/filedata/zc_new/runtime/
LOG_PATH
/filedata/zc_new/runtime/log/
CACHE_PATH
/filedata/zc_new/runtime/cache/
TEMP_PATH
/filedata/zc_new/runtime/temp/
CONF_PATH
/filedata/zc_new/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false