[8] ErrorException in Channelnew.php line 169

未定义数组索引: cp

  1. Service::appendTextAndList('channel', 0, $channel);
  2. $pageList->appends(array_filter($params));
  3. $this->view->assign("__FILTERLIST__", $filterList);
  4. $this->view->assign("__ORDERLIST__", $orderList);
  5. $this->view->assign("__PAGELIST__", $pageList);
  6. $this->view->assign("__CHANNEL__", $channel);
  7. $this->view->assign("chinnleid", $channel['id']);
  8. $this->view->assign("chinnleparent_id", $channel["parent_id"]);
  9. if(!empty($this->request->get())){
  10. $apagese=$this->request->get()['cp'];
  11. }else{
  12. $apagese=1;
  13. }
  14. $this->view->assign("apagese", $apagese);
  15. SpiderLog::record('channel', $channel['id']);
  16. //设置TKD
  17. Config::set('cms.title', isset($channel['seotitle']) && $channel['seotitle'] ? $channel['seotitle'] : $channel['name']);
  18. Config::set('cms.keywords', $channel['keywords']);

Call Stack

  1. in Channelnew.php line 169
  2. at Error::appError(8, 'Undefined index: cp', '/mnt/public/websiten...', 169, ['config' => ['system_user_id' => '0', 'sitename' => '有人物联网', 'sitelogo' => '/assets/addons/cms/i...', ...], 'diyname' => 'xinwenzhongxin', 'channel' => object(Channelnew), ...]) in Channelnew.php line 169
  3. at Channelnew->index()
  4. at call_user_func_array([object(Channelnew), 'index'], []) in Route.php line 78
  5. at Route->execute('cms', 'channelnew', 'index')
  6. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channelnew', 'index']) in App.php line 343
  7. at App::invokeMethod(['\think\addons\Route', 'execute'], ['p' => '157', 'addon' => 'cms', 'controller' => 'channelnew', ...]) in App.php line 470
  8. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channelnew', 'action' => 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/mnt/public/websiten...') in index.php line 25

Environment Variables

GET Data

p
157
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_REFERER
http://www.usr.cn/News/index.html?&p=157
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_CDN_REAL_IP
18.234.202.202
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
18.234.202.202
HTTP_ALI_SWIFT_STAT_HOST
level2.www.usr.cn
HTTP_ALI_SWIFT_LOG_HOST
www.usr.cn
HTTP_EAGLEEYE_TRACEID
3adad01c17117134388444716e
HTTP_VIA
cn192.l1, kunlun6.cn192, l2cn1827.l2, cache48.l2cn1827
HTTP_HOST
www.usr.cn
PATH_INFO
/News/index.html
REDIRECT_STATUS
200
SERVER_NAME
www.usr.cn
SERVER_PORT
80
SERVER_ADDR
172.19.74.148
REMOTE_PORT
24848
REMOTE_ADDR
123.156.198.196
SERVER_SOFTWARE
nginx/1.21.4
GATEWAY_INTERFACE
CGI/1.1
REQUEST_SCHEME
http
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/mnt/public/websiten.usr.cn/public
DOCUMENT_URI
/index.php
REQUEST_URI
/News/index.html?&p=157
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/News/index.html&&p=157
SCRIPT_FILENAME
/mnt/public/websiten.usr.cn/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711713438.8769
REQUEST_TIME
1711713438
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/mnt/public/websiten.usr.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711713438.8772
THINK_START_MEM
408912
EXT
.php
DS
/
THINK_PATH
/mnt/public/websiten.usr.cn/thinkphp/
LIB_PATH
/mnt/public/websiten.usr.cn/thinkphp/library/
CORE_PATH
/mnt/public/websiten.usr.cn/thinkphp/library/think/
TRAIT_PATH
/mnt/public/websiten.usr.cn/thinkphp/library/traits/
ROOT_PATH
/mnt/public/websiten.usr.cn/
EXTEND_PATH
/mnt/public/websiten.usr.cn/extend/
VENDOR_PATH
/mnt/public/websiten.usr.cn/vendor/
RUNTIME_PATH
/mnt/public/websiten.usr.cn/runtime/
LOG_PATH
/mnt/public/websiten.usr.cn/runtime/log/
CACHE_PATH
/mnt/public/websiten.usr.cn/runtime/cache/
TEMP_PATH
/mnt/public/websiten.usr.cn/runtime/temp/
CONF_PATH
/mnt/public/websiten.usr.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/mnt/public/websiten.usr.cn/addons/