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

php版本多少可以用呢 #2

Open
shabbyme opened this issue Apr 20, 2024 · 8 comments
Open

php版本多少可以用呢 #2

shabbyme opened this issue Apr 20, 2024 · 8 comments

Comments

@shabbyme
Copy link

7.4和8.0都是访问空白

@LyLme
Copy link
Owner

LyLme commented Apr 20, 2024

理论上7.4应该没问题
编辑common/common.php第12行添加注释
改为如下
//error_reporting(0);

查看报错信息看看

@shabbyme
Copy link
Author

理论上7.4应该没问题
编辑common/common.php第12行添加注释
改为如下
//error_reporting(0);

查看报错信息看看

都是访问空白

@LyLme
Copy link
Owner

LyLme commented Apr 20, 2024

这样我也没办法排查😂

@shabbyme
Copy link
Author

这样我也没办法排查😂

有了,没开错误信息
Fatal error: Uncaught Error: Call to undefined function com\nlf\calendar\util\bcscale() in /www/sites/60s.afy.cn/index/common/Lunar.php:11 Stack trace: #0 /www/sites/60s.afy.cn/index/common/common.php(24): require() #1 /www/sites/60s.afy.cn/index/index.php(10): require('/www/sites/60s....') #2 {main} thrown in /www/sites/60s.afy.cn/index/common/Lunar.php on line 11

@LyLme
Copy link
Owner

LyLme commented Apr 20, 2024

缺少PHP的BCMath扩展,具体安装办法去google

@LyLme
Copy link
Owner

LyLme commented Apr 20, 2024

一般情况下这个扩展在大多数主流环境都默认启用的,如果是自编译或者docker,1panel等环境可能需要手动启用

@shabbyme
Copy link
Author

一般情况下这个扩展在大多数主流环境都默认启用的,如果是自编译或者docker,1panel等环境可能需要手动启用

可以了,但是又有个错误Notice: Undefined index: hotScore in /www/sites/60s.afy.cn/index/theme/default/index.php on line 91

@LyLme
Copy link
Owner

LyLme commented Apr 20, 2024

应该漏写isset了,这个只是个通知,不是错误,不用管。把报错禁用了就行

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