[0] HttpException in App.php line 362

控制器不存在:motorcycle-mirror

  1. }
  2. // 当前模块路径
  3. App::$modulePath = APP_PATH . ($module ? $module . DS : '');
  4. // 是否自动转换控制器和操作名
  5. $convert = is_bool($convert) ? $convert : $config['url_convert'];
  6. // 获取控制器名
  7. $controller = strip_tags($result[1] ?: $config['default_controller']);
  8. if (!preg_match('/^[A-Za-z](\w)*$/', $controller)) {
  9. throw new HttpException(404, 'controller not exists:' . $controller);
  10. }
  11. $controller = $convert ? strtolower($controller) : $controller;
  12. // 获取操作名
  13. $actionName = strip_tags($result[2] ?: $config['default_action']);
  14. $actionName = $convert ? strtolower($actionName) : $actionName;
  15. // 设置当前请求的控制器、操作
  16. $request->controller(Loader::parseName($controller, 1))->action($actionName);

Call Stack

  1. in App.php line 362
  2. at App::module(['motorcycle-control-s...', 'motorcycle-mirror', null], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 130
  3. at App::run() in start.php line 18
  4. at require('/home/www/web/hre2/t...') in index.php line 25

Environment Variables

GET Data
product_id 1218
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER apache
HOME /usr/share/httpd
HTTP_CF_IPCOUNTRY US
HTTP_CDN_LOOP cloudflare
HTTP_CF_CONNECTING_IP 54.227.104.229
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_X_FORWARDED_PROTO https
HTTP_CF_RAY 86b6868fa8ab3964-IAD
HTTP_X_FORWARDED_FOR 54.227.104.229
HTTP_ACCEPT_ENCODING gzip, br
HTTP_CONNECTION Keep-Alive
HTTP_HOST www.hre2.com
REDIRECT_STATUS 200
SERVER_NAME www.hre2.com
SERVER_PORT 443
SERVER_ADDR 66.154.127.3
REMOTE_PORT 60746
REMOTE_ADDR 172.70.39.120
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/www/web/hre2
DOCUMENT_URI /index.php
REQUEST_URI /motorcycle-control-system/motorcycle-mirror?product_id=1218
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/motorcycle-control-system/motorcycle-mirror&product_id=1218
SCRIPT_FILENAME /home/www/web/hre2/index.php
PATH_INFO /motorcycle-control-system/motorcycle-mirror
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711617699.9016
REQUEST_TIME 1711617699
Environment Variablesempty
ThinkPHP Constants
APP_PATH /home/www/web/hre2/application/
RUNTIME_PATH /home/www/web/hre2/runtime/
THINK_VERSION 5.0.5
THINK_START_TIME 1711617699.9021
THINK_START_MEM 403208
EXT .php
DS /
THINK_PATH /home/www/web/hre2/thinkphp/
LIB_PATH /home/www/web/hre2/thinkphp/library/
CORE_PATH /home/www/web/hre2/thinkphp/library/think/
TRAIT_PATH /home/www/web/hre2/thinkphp/library/traits/
ROOT_PATH /home/www/web/hre2/
EXTEND_PATH /home/www/web/hre2/extend/
VENDOR_PATH /home/www/web/hre2/vendor/
LOG_PATH /home/www/web/hre2/runtime/log/
CACHE_PATH /home/www/web/hre2/runtime/cache/
TEMP_PATH /home/www/web/hre2/runtime/temp/
CONF_PATH /home/www/web/hre2/application/
CONF_EXT .php
ENV_PREFIX PHP_
IS_CLI false
IS_WIN false