bst2222全球奢华游戏_VIP认证_官方登陆

[8] ErrorException in News.php line 16

未定义数组索引: topid

  1. {
  2. public function _initialize(){
  3. parent::_initialize();
  4. $cid = Request::instance()->param("cid");
  5. if(!$cid){
  6. $cid = 99;
  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 index(){
  14. $cid = Request::instance()->param("cid");
  15. $w=array();
  16. $w['cid'] = $cid;
  17. $w['zd'] = 1;

Call Stack

  1. in News.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 News.php line 16
  3. at News->_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('news', 'controller', false, 'Error') in App.php line 581
  8. at App::module(['index', 'news', 'details'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  9. at App::exec(['type' => 'module', 'module' => ['index', 'news', 'details']], ['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 16

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/news/details/id/2840/cid/www.baidu.com
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/news/details/id/2840/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
104.253.131.2
REMOTE_PORT
54340
SERVER_ADDR
172.19.225.70
SERVER_PORT
80
SERVER_NAME
www.hppstore.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +http://megaindex.com/crawler)
HTTP_HOST
www.hppstore.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1731138562.5596
REQUEST_TIME
1731138562
PATH_INFO
//index/news/details/id/2840/cid/www.baidu.com
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/filedata/zc_new/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1731138562.5599
THINK_START_MEM
232704
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
Baidu
sogou