[404] Exception in Error.php line 21

找不到页面

  1. protected $tree;
  2. public function _initialize()
  3. {
  4. parent::_initialize();
  5. $modname = request()->controller();
  6. $this->row = db("cms_cat")->where("cat_name", $modname)->find();
  7. if (!$this->row) {
  8. throw new \Exception("找不到页面",404);
  9. }
  10. $this->tname = db("cmodel")->where("id", $this->row["mid"])->value("tab_name");
  11. $this->assign("row", $this->row);
  12. $list = db("cms_cat")->order("weigh desc")->select();
  13. $this->tree = new Tree();
  14. $this->tree->init($list);
  15. if ($this->row["pid"] > 0) {

Call Stack

  1. in Error.php line 21
  2. at Error->_initialize() in Controller.php line 59
  3. at Controller->__construct(object(Request)) in Loader.php line 486
  4. at Loader::controller('cq', 'controller', false, 'Error') in App.php line 581
  5. at App::module(['index', 'cq', 'htm3'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  6. at App::exec(['type' => 'module', 'module' => ['index', 'cq', 'htm3']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  7. at App::run() in start.php line 19
  8. at require('/www/wwwroot/www.hui...') in index.php line 23

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty

Session

think
{ "lang": "cn" }

Server/Request Data

USER
www
HOME
/home/www
FCGI_ROLE
RESPONDER
REDIRECT_STATUS
200
proxy-nokeepalive
1
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
HTTP_HOST
www.huihang-logistics.com
PATH
/www/server/panel/pyenv/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin
LD_LIBRARY_PATH
/www/server/apache/lib
SERVER_SIGNATURE
<address>Apache Server at www.huihang-logistics.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
www.huihang-logistics.com
SERVER_ADDR
172.27.103.121
SERVER_PORT
80
REMOTE_ADDR
3.88.60.5
DOCUMENT_ROOT
/www/wwwroot/www.huihang-logistics.com/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/www.huihang-logistics.com/public
SERVER_ADMIN
webmaster@example.com
SCRIPT_FILENAME
/www/wwwroot/www.huihang-logistics.com/public/index.php
REMOTE_PORT
58878
REDIRECT_URL
/cq/htm3/index.asp
REDIRECT_QUERY_STRING
s=/cq/htm3/index.asp
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.1
REQUEST_METHOD
GET
QUERY_STRING
s=/cq/htm3/index.asp
REQUEST_URI
/cq/htm3/index.asp
SCRIPT_NAME
/index.php
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1711622907.7116
REQUEST_TIME
1711622907
PATH_INFO
/cq/htm3/index.asp
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/www.huihang-logistics.com/public/../application/
THINK_VERSION
5.0.24
THINK_START_TIME
1711622907.7119
THINK_START_MEM
264080
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/www.huihang-logistics.com/thinkphp/
LIB_PATH
/www/wwwroot/www.huihang-logistics.com/thinkphp/library/
CORE_PATH
/www/wwwroot/www.huihang-logistics.com/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/www.huihang-logistics.com/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/www.huihang-logistics.com/
EXTEND_PATH
/www/wwwroot/www.huihang-logistics.com/extend/
VENDOR_PATH
/www/wwwroot/www.huihang-logistics.com/vendor/
RUNTIME_PATH
/www/wwwroot/www.huihang-logistics.com/runtime/
LOG_PATH
/www/wwwroot/www.huihang-logistics.com/runtime/log/
CACHE_PATH
/www/wwwroot/www.huihang-logistics.com/runtime/cache/
TEMP_PATH
/www/wwwroot/www.huihang-logistics.com/runtime/temp/
CONF_PATH
/www/wwwroot/www.huihang-logistics.com/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
RANDOM_COMPAT_READ_BUFFER
8
PHP_INT_MIN
-9223372036854775808
ADDON_PATH
/www/wwwroot/www.huihang-logistics.com/addons/