系统发生错误

[0] HttpException in Module.php line 62

模块不存在:sitemap.xml

  1. $available = true;
  2. }
  3. // 模块初始化
  4. if ($module && $available) {
  5. // 初始化模块
  6. $this->request->setModule($module);
  7. $this->app->init($module);
  8. } else {
  9. throw new HttpException(404, 'module not exists:' . $module);
  10. }
  11. }
  12. // 是否自动转换控制器和操作名
  13. $convert = is_bool($this->convert) ? $this->convert : $this->rule->getConfig('url_convert');
  14. // 获取控制器名
  15. $controller = strip_tags($result[1] ?: $this->rule->getConfig('default_controller'));
  16. $this->controller = $convert ? strtolower($controller) : $controller;

Call Stack

  1. in Module.php line 62

  2. Fatal error: Uncaught think\exception\ErrorException: Array to string conversion in /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl:320 Stack trace: #0 [internal function]: think\Error::appError(8, 'Array to string...', '/www/wwwroot/ca...', 320, Array) #1 /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl(320): sprintf('at %s%s%s(%s)', '<abbr title="th...', '->', 'init', Array) #2 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(184): include('/www/wwwroot/ca...') #3 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(128): think\exception\Handle->convertExceptionToResponse(Object(think\exception\HttpException)) #4 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(95): think\exception\Handle->renderHttpException(Object(think\exception\HttpException)) #5 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/Error.php(56): think\exception\Handle->render(Object(think\exception\HttpException)) #6 [internal function]: think\Error: in /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl on line 320

[1] ErrorException in think_exception.tpl line 320

Uncaught think\exception\ErrorException: Array to string conversion in /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl:320
Stack trace:
#0 [internal function]: think\Error::appError(8, 'Array to string...', '/www/wwwroot/ca...', 320, Array)
#1 /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl(320): sprintf('at %s%s%s(%s)', '<abbr title="th...', '->', 'init', Array)
#2 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(184): include('/www/wwwroot/ca...')
#3 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(128): think\exception\Handle->convertExceptionToResponse(Object(think\exception\HttpException))
#4 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(95): think\exception\Handle->renderHttpException(Object(think\exception\HttpException))
#5 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/Error.php(56): think\exception\Handle->render(Object(think\exception\HttpException))
#6 [internal function]: think\Error:

  1. <li>
  2. <?php
  3. // Show Function
  4. if($value['function']){
  5. echo sprintf(
  6. 'at %s%s%s(%s)',
  7. isset($value['class']) ? parse_class($value['class']) : '',
  8. isset($value['type']) ? $value['type'] : '',
  9. $value['function'],
  10. isset($value['args'])?parse_args($value['args']):''
  11. );
  12. }
  13. // Show line
  14. if (isset($value['file']) && isset($value['line'])) {
  15. echo sprintf(' in %s', parse_file($value['file'], $value['line']));
  16. }
  17. ?>
  18. </li>

Call Stack

  1. in think_exception.tpl line 320

  2. Fatal error: Uncaught think\exception\ErrorException: Array to string conversion in /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl:320 Stack trace: #0 [internal function]: think\Error::appError(8, 'Array to string...', '/www/wwwroot/ca...', 320, Array) #1 /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl(320): sprintf('at %s%s%s(%s)', '<abbr title="th...', '::', 'appShutdown', Array) #2 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(184): include('/www/wwwroot/ca...') #3 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/exception/Handle.php(97): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException)) #4 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/Error.php(56): think\exception\Handle->render(Object(think\exception\ErrorException)) #5 /www/wwwroot/case.pipix888.cn/thinkphp/library/think/Error.php(90): think\Error::appException(Object(think\exception\ErrorException)) #6 [internal function]: think\Error::appShutdown() #7 {m in /www/wwwroot/case.pipix888.cn/thinkphp/tpl/think_exception.tpl on line 320