yl23455永利(中国)百度百科

[8] ErrorException in Product.php line 16

未定义数组索引: topid

  1. {
  2. public function _initialize(){
  3. parent::_initialize();
  4. $cid = Request::instance()->param("cid");
  5. if(!$cid){
  6. $cid = 107;
  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. $link2= Db::name("partner")->where("type",1)->order("sort desc")->field("title,url,pic")->select();
  13. $this->assign("link2",$link2);
  14. }
  15. function index(){
  16. $news = Db::name("mk_news")->where("cid",123)->field("nid,title,pic,des,time")->select();
  17. $this->assign("news",$news);

Call Stack

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

PHPSESSID
6rfshbri3o2gft5ohe5744mug2
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/product/agent/cid/www.baidu.com
REQUEST_METHOD
GET
CONTENT_TYPE
CONTENT_LENGTH
SCRIPT_NAME
/index.php
REQUEST_URI
/index/product/agent/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
107.158.251.114
REMOTE_PORT
49108
SERVER_ADDR
172.19.225.70
SERVER_PORT
80
SERVER_NAME
www.zcjszx.com
REDIRECT_STATUS
200
HTTP_USER_AGENT
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_HOST
zcjszx.com
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip
HTTP_COOKIE
PHPSESSID=6rfshbri3o2gft5ohe5744mug2
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1715944418.2615
REQUEST_TIME
1715944418
PATH_INFO
//index/product/agent/cid/www.baidu.com
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/filedata/zc_new/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1715944418.2617
THINK_START_MEM
233984
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