[8] ErrorException in Channel.php line 33

未定义变量: channel

  1. $diyname = 'college';
  2. }
  3. if ($diyname && !is_numeric($diyname)) {
  4. $channel = ChannelModel::getByDiyname($diyname);
  5. } else {
  6. // $id = $diyname ? $diyname : $this->request->param('id', '');
  7. // $channel = ChannelModel::get($id);
  8. }
  9. if (!$channel) {
  10. $archives = new Archives();
  11. $archives->index();
  12. }
  13. // if ($channel['parent_id']!=0 ) {
  14. // $this->error(__('No specified channel found'));
  15. // }
  16. if($channel['model_id'] == 4){
  17. $str_ = request()->url();
  18. if (strpos($str_, 'yingxiao') == false) {

Call Stack

  1. in Channel.php line 33
  2. at Error::appError(8, 'Undefined variable: ...', '/www/wwwroot/tq365.c...', 33, ['diyname' => '575']) in Channel.php line 33
  3. at Channel->index('575') in Channel.php line 191
  4. at Channel->childindex()
  5. at call_user_func_array([object(Channel), 'childindex'], []) in Route.php line 76
  6. at Route->execute('cms', 'channel', 'childindex')
  7. at ReflectionMethod->invokeArgs(object(Route), ['cms', 'channel', 'childindex']) in App.php line 343
  8. at App::invokeMethod(['\think\addons\Route', 'execute'], ['parentname' => 'google', 'diyname' => '575', 'addon' => 'cms', ...]) in App.php line 470
  9. at App::exec(['type' => 'method', 'method' => ['\think\addons\Route', 'execute'], 'var' => ['addon' => 'cms', 'controller' => 'channel', 'action' => 'childindex']], ['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('/www/wwwroot/tq365.c...') in index.php line 24

Environment Variables

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

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/google/575.html
QUERY_STRING
s=/google/575.html
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
s=/google/575.html
REDIRECT_URL
/google/575.html
REMOTE_PORT
28946
SCRIPT_FILENAME
/www/wwwroot/tq365.cn/public/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/tq365.cn/public
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/tq365.cn/public
REMOTE_ADDR
101.132.57.197
SERVER_PORT
80
SERVER_ADDR
172.16.12.113
SERVER_NAME
www.tq365.cn
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.tq365.cn Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_X_ALICDN_DA_VIA
114.80.179.248,180.163.51.254
HTTP_ALI_CDN_APPVIEW_NAME
cdn-tengine
HTTP_REFERER
http://www.tq365.cn/google/575.html
HTTP_USER_AGENT
claudebot
HTTP_ACCEPT
*/*
HTTP_ALI_SWIFT_FORCE_TTL_CODE
400=0
HTTP_X_CLIENT_SCHEME
https
HTTP_X_FORWARDED_FOR
44.193.29.184
HTTP_ALI_SWIFT_STAT_HOST
www.tq365.cn
HTTP_ALI_SWIFT_LOG_HOST
www.tq365.cn
HTTP_ALI_CDN_REAL_IP
44.193.29.184
HTTP_ALI_CDN_REAL_PORT
41246
HTTP_EAGLEEYE_TRACEID
7250b39917117125316567885e
HTTP_VIA
cn3259.l1, l2et2-2.l2
HTTP_HOST
www.tq365.cn
proxy-nokeepalive
1
SCRIPT_URI
http://www.tq365.cn/google/575.html
SCRIPT_URL
/google/575.html
REDIRECT_STATUS
200
REDIRECT_SCRIPT_URI
http://www.tq365.cn/google/575.html
REDIRECT_SCRIPT_URL
/google/575.html
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711712531.6694
REQUEST_TIME
1711712531
PATH_INFO
/google/575.html
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/tq365.cn/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711712531.67
THINK_START_MEM
368032
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/tq365.cn/thinkphp/
LIB_PATH
/www/wwwroot/tq365.cn/thinkphp/library/
CORE_PATH
/www/wwwroot/tq365.cn/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/tq365.cn/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/tq365.cn/
EXTEND_PATH
/www/wwwroot/tq365.cn/extend/
VENDOR_PATH
/www/wwwroot/tq365.cn/vendor/
RUNTIME_PATH
/www/wwwroot/tq365.cn/runtime/
LOG_PATH
/www/wwwroot/tq365.cn/runtime/log/
CACHE_PATH
/www/wwwroot/tq365.cn/runtime/cache/
TEMP_PATH
/www/wwwroot/tq365.cn/runtime/temp/
CONF_PATH
/www/wwwroot/tq365.cn/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
ADDON_PATH
/www/wwwroot/tq365.cn/addons/