您现在的位置是:首页  > 后端  > PHP PHP

fastadmin 微信浏览器打开出现 Fatal error: Uncaught think\exception\ErrorException: Undefined offset: 1 in /ww

2024-01-02【PHP】2325人已围观

简介``` 微信浏览器打开出现 Fatal error: Uncaught thinkexceptionErrorException: Undefined offset: 1 in /www/wwwroot/sd.cn/application/common/view/tpl/think_exception.tpl:22 Stack trace: #0 /www/wwwroot/sd.cn/application/common/view/tpl/think_exception.tpl(22): thinkE

  1. 微信浏览器打开出现
  2. Fatal error: Uncaught thinkexceptionErrorException: Undefined offset: 1 in /www/wwwroot/sd.cn/application/common/view/tpl/think_exception.tpl:22 Stack trace: #0 /www/wwwroot/sd.cn/application/common/view/tpl/think_exception.tpl(22): thinkError::appError(8, ‘Undefined offse…’, ‘/www/wwwroot/sd…’, 22, Array) #1 /www/wwwroot/sd.cn/thinkphp/library/think/exception/Handle.php(178): include(‘/www/wwwroot/sd…’) #2 /www/wwwroot/sd.cn/thinkphp/library/think/exception/Handle.php(96): thinkexceptionHandle->convertExceptionToResponse(Object(thinkexceptionErrorException)) #3 /www/wwwroot/sd.cn/thinkphp/library/think/Error.php(52): thinkexceptionHandle->render(Object(thinkexceptionErrorException)) #4 /www/wwwroot/sd.cn/thinkphp/library/think/Error.php(88): thinkError::appException(Object(thinkexceptionErrorException)) #5 [internal function]: thinkError::appShutdown() #6 {main} thrown in /www/wwwroot/sd.cn/application/common/view/tpl/think_exception.tpl on line 22

方法一

  1. application/common/view/tpl/think_exception.tpl
  2. 修改为:$langSet= strtolower(isset($matches[1])?$matches[1]:'');
  3. thinkphp/library/think/Lang.php
  4. 修改为:$langSet = strtolower(isset($matches[1])?$matches[1]:'');

方法二

  1. 关闭多语言
  2. application/config.php
  3. 修改为:'lang_switch_on' => false


关注博客,更多精彩分享,敬请期待!
 

Tags:

很赞哦! (0)

上一篇:JS逆向

下一篇:css动画

我的名片

网名:随心

职业:PHP程序员

现居:湖北省-武汉市

Email:704061912@qq.com