本帖最后由 冰辉 于 2018-9-30 13:32 编辑
我在现在的IIS站点加一个虚拟目录v3映射到public目录,在application/Config/App.php设置了 public $baseURL = 'v3'
访问出现如下结果:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to CodeIgniter\HTTP\URI::setScheme() must be of the type string, null given, called in D:\CodeIgniter\system\HTTP\IncomingRequest.php on line 585 and defined in D:\CodeIgniter\system\HTTP\URI.php:583Stack trace:
#0 D:\CodeIgniter\system\HTTP\IncomingRequest.php(585): CodeIgniter\HTTP\URI->setScheme(NULL)
#1 D:\CodeIgniter\system\HTTP\IncomingRequest.php(172): CodeIgniter\HTTP\IncomingRequest->detectURI('REQUEST_URI', 'v3/')
#2 D:\CodeIgniter\system\Config\Services.php(526): CodeIgniter\HTTP\IncomingRequest->__construct(Object(Config\App), Object(CodeIgniter\HTTP\URI), '', Object(CodeIgniter\HTTP\UserAgent))
#3 D:\CodeIgniter\system\Config\BaseService.php(114): CodeIgniter\Config\Services::request(Object(Config\App), false)
#4 D:\CodeIgniter\system\Config\Services.php(514): CodeIgniter\Config\BaseService::getSharedInstance('request', NULL)
#5 D:\CodeIgniter\system\Config\Services.php(231): CodeIgniter\Config\Services::request()
#6 D:\CodeIgniter\system\Config\BaseService. in D:\CodeIgniter\system\HTTP\URI.php on line 583
|