[8] ErrorException in route.php line 18

Trying to access array offset on value of type bool

  1. // | Author: liu21st <liu21st@gmail.com>
  2. // +----------------------------------------------------------------------
  3. $lang = getLang();//当前语言
  4. //pc端与移动端跳转
  5. $ism = '';
  6. $url = request()->url(true);
  7. $siteLang = cache('siteLang')[$lang];
  8. if($siteLang['tpl'] != $siteLang['mtpl']){
  9. if(request()->ismobiles() && request()->isGet()){
  10. $ism = '-m';
  11. if(request()->url() == '/'){
  12. header('locations:'.$url.'index-m.html');
  13. die();
  14. }elseif(!preg_match('/-m.html/',$url)){
  15. $go = str_replace('.html','-m.html',$url);

Call Stack

  1. in route.php line 18
  2. at Error::appError() in route.php line 18
  3. at include('/www/wwwroot/www.sct...') in App.php line 554
  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 36

Environment Variables

GET Data
s /admin/hit/index
module service
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16)
HTTP_HOST www.videochaterotico.net
PATH_INFO
REDIRECT_STATUS 200
SERVER_NAME www.videochaterotico.net
SERVER_PORT 80
SERVER_ADDR 10.0.12.12
REMOTE_PORT 39898
REMOTE_ADDR 43.230.168.250
SERVER_SOFTWARE nginx/1.22.1
GATEWAY_INTERFACE CGI/1.1
REQUEST_SCHEME http
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /www/wwwroot/www.videochaterotico.net
DOCUMENT_URI /index.php
REQUEST_URI /admin/hit/index?module=service
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/admin/hit/index&module=service
SCRIPT_FILENAME /www/wwwroot/www.videochaterotico.net/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1715745320.7848
REQUEST_TIME 1715745320
Environment Variablesempty
ThinkPHP Constantsempty