系统发生错误


[2] ErrorException in App.php line 551

scandir(/opt/lampp/htdocs/gele/route/): failed to open dir: No such file or directory

  1. /**
  2. * 路由初始化 导入路由定义规则
  3. * @access public
  4. * @return void
  5. */
  6. public function routeInit()
  7. {
  8. // 路由检测
  9. $files = scandir($this->routePath);
  10. foreach ($files as $file) {
  11. if (strpos($file, '.php')) {
  12. $filename = $this->routePath . $file;
  13. // 导入路由配置
  14. $rules = include $filename;
  15. if (is_array($rules)) {
  16. $this->route->import($rules);
  17. }
  18. }

Call Stack

  1. in App.php line 551
  2. at Error::appError(2, 'scandir(/opt/lampp/h...', '/opt/lampp/htdocs/ge...', 551, [])
  3. at scandir('/opt/lampp/htdocs/ge...') in App.php line 551
  4. at App->routeInit() in App.php line 259
  5. at App->initialize() in App.php line 379
  6. at App->run() in index.php line 20

Environment Variables

GET Data
id 69719598057031
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
REDIRECT_UNIQUE_ID X2TCtAa6cXu2uK@C9ynGQgAAAAk
REDIRECT_PATH_INFO home/single
REDIRECT_STATUS 200
UNIQUE_ID X2TCtAa6cXu2uK@C9ynGQgAAAAk
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT_ENCODING br,gzip
HTTP_HOST www.krirkcn.com
HTTP_CONNECTION Keep-Alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
LD_LIBRARY_PATH /opt/lampp/lib:/opt/lampp/lib
SERVER_SIGNATURE
SERVER_SOFTWARE Apache/2.4.39 (Unix) OpenSSL/1.0.2s PHP/7.3.6 mod_perl/2.0.8-dev Perl/v5.16.3
SERVER_NAME www.krirkcn.com
SERVER_ADDR 60.247.145.117
SERVER_PORT 80
REMOTE_ADDR 3.237.71.23
DOCUMENT_ROOT /opt/lampp/htdocs/gele/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /opt/lampp/htdocs/gele/public
SERVER_ADMIN webmaster@dummy-host.example.com
SCRIPT_FILENAME /opt/lampp/htdocs/gele/public/index.php
REMOTE_PORT 40480
REDIRECT_URL /home/single
REDIRECT_QUERY_STRING id=69719598057031
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING id=69719598057031
REQUEST_URI /home/single?id=69719598057031
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1600438964.176
REQUEST_TIME 1600438964
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.9