[2] ErrorException in route.php line 19

Illegal string offset 'tpl'

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

Call Stack

  1. in route.php line 19
  2. at Error::appError() in route.php line 19
  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 news
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
USER www
HOME /home/www
HTTP_REFERER
HTTP_ACCEPT */*
HTTP_USER_AGENT Sogou Push Spider/3.0(+http://www.sogou.com/docs/help/webmasters.htm#07)
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 40978
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=news
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING s=/admin/hit/index&module=news
SCRIPT_FILENAME /www/wwwroot/www.videochaterotico.net/index.php
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1715745620.6753
REQUEST_TIME 1715745620
Environment Variablesempty
ThinkPHP Constantsempty