Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screen筛选在php7.2以上版本中报错 #88

Closed
GitHubPangHu opened this issue Sep 14, 2023 · 2 comments
Closed

screen筛选在php7.2以上版本中报错 #88

GitHubPangHu opened this issue Sep 14, 2023 · 2 comments

Comments

@GitHubPangHu
Copy link

极致cms版本 v2.4.5
用的宝塔,php版本7.4下点击筛选中的选项会报错。
报错原因大概率是**/conf/Functions.php:1276 中的unset()在php7.2之后弃用了**。希望能够修改这个地方让他兼容,我试着把变量赋值null,但是筛选不出结果。具体原因就不懂了。把php版本切换成7.0或者5.6都可以正常筛选。

报错如下

Fatal error
: Uncaught Error: Cannot unset string offsets in /www/wwwroot//conf/Functions.php:1276 Stack trace: #0 /www/wwwroot//cache/63aa9f534d633ce917e4280c382bccc5.php(387): change_parse_url() #1 /www/wwwroot//frphp/lib/View.php(127): include('/www/wwwroot/lh...') #2 /www/wwwroot//frphp/lib/View.php(65): frphp\lib\View->template() #3 /www/wwwroot/**/frphp/lib/Controller.php(67): frphp\lib\View->render() #4 /www/wwwroot//app/home/c/ScreenController.php(235): frphp\lib\Controller->display() #5 /www/wwwroot//frphp/fr.php(335): app\home\c\ScreenController->index() #6 /www/wwwroot//frphp/fr.php(94): frphp\frphp->route() #7 /www/wwwroot//frphp/fr.php(520): frphp\frphp->run() #8 /www/wwwroot/*/index.php(17): require('/www/wwwroot/lh...') #9 {main} thrown in

@GitHubPangHu
Copy link
Author

我刚刚测试了,我用php7.2.33版本,也会报错,可能是我的问题吧,我看您的演示站中用的php7.2.33,我在宝塔中安装此版本,也报错,不知道啥问题了,很可能是我代码中哪里有问题吧。。。希望您看到能够帮我分析一下。

@Cherry-toto
Copy link
Owner

有没有可能你的链接错误?我测试过7.0-7.4都没问题的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants