[0] HttpException in Url.php line 92

控制器不存在:productId=414

  1. // 封装路由
  2. $route = [$module, $controller, $action];
  3. if ($this->hasDefinedRoute($route, $bind)) {
  4. throw new HttpException(404, 'invalid request:' . str_replace('|', $depr, $url));
  5. }
  6. if ($controller && !preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
  7. throw new HttpException(404, 'controller not exists:' . $controller);
  8. }
  9. return $route;
  10. }
  11. /**
  12. * 检查URL是否已经定义过路由
  13. * @access protected
  14. * @param string $route 路由信息

Call Stack

  1. in Url.php line 92
  2. at Url->parseUrl('products_detail|prod...') in Url.php line 24
  3. at Url->run() in App.php line 377
  4. at App->think\{closure}(object(Request), object(Closure), null)
  5. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 105
  6. at Middleware->think\{closure}(object(Request))
  7. at call_user_func(object(Closure), object(Request)) in Middleware.php line 66
  8. at Middleware->dispatch(object(Request)) in App.php line 398
  9. at App->run() in index.php line 18

Environment Variables

GET Dataempty
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_HOST www.xinsheng100.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
PATH_INFO //products_detail/productId=414.html
REDIRECT_STATUS 200
SERVER_NAME www.xinsheng100.com
SERVER_PORT 80
SERVER_ADDR 172.24.234.238
REMOTE_PORT 46892
REMOTE_ADDR 54.196.27.122
SERVER_SOFTWARE nginx/1.18.0
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /mnt/wwwroot/www.xinsheng100.com
DOCUMENT_URI /index.php
REQUEST_URI /products_detail/productId=414.html
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=//products_detail/productId=414.html
SCRIPT_FILENAME /mnt/wwwroot/www.xinsheng100.com/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711637605.9151
REQUEST_TIME 1711637605
Environment Variablesempty
ThinkPHP Constants
APP_PATH /mnt/wwwroot/www.xinsheng100.com/application/
ADMIN_TPL /application/admin/view
INDEX_TPL /application/index/view
default_module index