[8] ErrorException in Channelnew.php line 188

未定义数组索引: 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 188
  2. at Error::appError(8, 'Undefined index: cp', '/www/wwwroot/ass.pus...', 188, ['var_typer' => 'ch', 'diyname' => 'industry-news', 'product' => [['id' => 110, 'diyname' => '4G-devices'], ['id' => 68, 'diyname' => '4g-modules'], ['id' => 387, 'diyname' => 'access-control-ap'], ...], ...]) in Channelnew.php line 188
  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'], ['sw-lang' => 'Enns', 'diyname' => 'industry-news', 'addon' => 'cms', ...]) 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('/www/wwwroot/ass.pus...') in index.php line 23

Environment Variables

GET Data

sw-lang
Enns
POST Data
empty
Files
empty

Cookies

swmultilingual_language
Enns
Session
empty

Server/Request Data

USER
www
HOME
/home/www
HTTP_ACCEPT
*/*
HTTP_X_FORWARDED_FOR
3.81.79.135
HTTP_VIA
2.0 4e3880ea97e52abcc2c96cf65b515f10.cloudfront.net (CloudFront)
HTTP_CONNECTION
Keep-Alive
HTTP_X_AMZ_CF_ID
juGmdP1S41eDHh7qgQRMhUPOQ4m8ntiQQax6CbjGJxvLx6DL3qodTQ==
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.pusr.com
PATH_INFO
/news/industry-news.html
REDIRECT_STATUS
200
SERVER_NAME
ass.pusr.shop
SERVER_PORT
443
SERVER_ADDR
10.0.3.46
REMOTE_PORT
45988
REMOTE_ADDR
130.176.133.146
SERVER_SOFTWARE
nginx/1.22.1
GATEWAY_INTERFACE
CGI/1.1
HTTPS
on
REQUEST_SCHEME
https
SERVER_PROTOCOL
HTTP/1.1
DOCUMENT_ROOT
/www/wwwroot/ass.pusr.com/public
DOCUMENT_URI
/index.php
REQUEST_URI
/news/industry-news.html?sw-lang=Enns
SCRIPT_NAME
/index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD
GET
QUERY_STRING
s=/news/industry-news.html&sw-lang=Enns
SCRIPT_FILENAME
/www/wwwroot/ass.pusr.com/public/index.php
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711624560.291
REQUEST_TIME
1711624560
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/ass.pusr.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711624560.2913
THINK_START_MEM
408720
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/ass.pusr.com/thinkphp/
LIB_PATH
/www/wwwroot/ass.pusr.com/thinkphp/library/
CORE_PATH
/www/wwwroot/ass.pusr.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/ass.pusr.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/ass.pusr.com/
EXTEND_PATH
/www/wwwroot/ass.pusr.com/extend/
VENDOR_PATH
/www/wwwroot/ass.pusr.com/vendor/
RUNTIME_PATH
/www/wwwroot/ass.pusr.com/runtime/
LOG_PATH
/www/wwwroot/ass.pusr.com/runtime/log/
CACHE_PATH
/www/wwwroot/ass.pusr.com/runtime/cache/
TEMP_PATH
/www/wwwroot/ass.pusr.com/runtime/temp/
CONF_PATH
/www/wwwroot/ass.pusr.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
FILTER_VALIDATE_BOOL
258
ADDON_PATH
/www/wwwroot/ass.pusr.com/addons/
SWMULTILINGUAL_PATH
/www/wwwroot/ass.pusr.com/addons/swmultilingual/
SWMULTILINGUAL_PACK_PATH
/www/wwwroot/ass.pusr.com/addons/swmultilingual/lang/