Daemonize 发表于 2024-12-19 20:52:03

thinkphp做的网站突然就成这样了

为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:9.2
系统版本:CentOS8
问题描述:PHP Warning:Unexpected character in input:'' (ASCII=22) state=0 in /www/wwwroot
HttpException in Module.php line 97
控制器不存在:app\index\controller\Index



[*]      $this->app['hook']->listen('module_init');
[*]
[*]      try {
[*]            // 实例化控制器
[*]            $instance = $this->app->controller($this->controller,
[*]                $this->rule->getConfig('url_controller_layer'),
[*]                $this->rule->getConfig('controller_suffix'),
[*]                $this->rule->getConfig('empty_controller'));
[*]      } catch (ClassNotFoundException $e) {
[*]            throw new HttpException(404, 'controller not exists:' . $e->getClass());
[*]      }
[*]
[*]      $this->app['middleware']->controller(function (Request $request, $next) use ($instance) {
[*]            // 获取当前操作名
[*]            $action = $this->actionName . $this->rule->getConfig('action_suffix');
[*]
[*]            if (is_callable([$instance, $action])) {
[*]                // 执行操作方法
[*]                $call = [$instance, $action];

Call Stack
[*]in Module.php line 97
[*]at Module->exec() in Dispatch.php line 168
[*]at Dispatch->run() in App.php line 432
[*]at App->think\{closure}(object(Request), object(Closure), null)
[*]at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
[*]at Middleware->think\{closure}(object(Request))
[*]at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
[*]at Middleware->dispatch(object(Request)) in App.php line 435
[*]at App->run() in index.php line 42



相关截图(日志、错误):

页: [1]
查看完整版本: thinkphp做的网站突然就成这样了