当前位置:论坛首页 > Linux面板 > 求助

【待反馈】用了宝塔API迁移之后这样了怎么回事,求!大哥

发表在 Linux面板2023-5-3 15:07 [复制链接] 1 3871

本帖最后由 堡塔运维小林 于 2023-5-3 18:00 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:宝塔linux 7.9.9

系统版本:CentOS 7.5.1804 x86_64(Py3.7.9)

问题描述:用了宝塔API迁移之后这样了怎么回事呢?

相关截图(日志、错误):
[8192] ErrorException in [url=]common.php line 1123[/url]
Array and string offset access syntax with curly braces is deprecated


  • function getFirstCharter($s0) {
  •         $fchar = ord($s0(0));
  •         if ($fchar >= ord("A") and $fchar <= ord("z")) {
  •                 return strtoupper($s0(0));
  •         }
  •         $s1 = \iconv("UTF-8", "gb2312", $s0);
  •         $s2 = \iconv("gb2312", "UTF-8", $s1);
  •         if ($s2 == $s0) {$s = $s1;} else { $s = $s0;}
  •         $asc = ord($s(0)) * 256 + ord($s{1}) - 65536;
  •         if ($asc >= -20319 and $asc <= -20284) {
  •                 return "A";
  •         }
  •         if ($asc >= -20283 and $asc <= -19776) {
  •                 return "B";
  •         }
  •         if ($asc >= -19775 and $asc <= -19219) {

Call Stack
  • in [url=]common.php line 1123[/url]
  • at Error::appError() in [url=]App.php line 514[/url]
  • at include() in [url=]App.php line 514[/url]
  • at App::init() in [url=]App.php line 423[/url]
  • at App::initCommon() in [url=]App.php line 74[/url]
  • at App::run() in [url=]start.php line 18[/url]
  • at require('[url=]/www/wwwroot/web/cor...[/url]') in [url=]index.php line 33[/url]







使用道具 举报 只看该作者 回复
发表于 2023-5-3 18:00:33 | 显示全部楼层
本帖最后由 堡塔运维小林 于 2023-5-3 20:08 编辑

您好,有没有具体一点的报错截图呢?从您反馈的这些信息中不能确定问题所在,还需要多一点信息确认问题,另外您是不是升级过PHP版本,然后出现这个报错呢?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表