帝国CMS安装错误an Error in a future version of PHP

admin
admin
admin
376
文章
102
评论
2021年1月5日14:04:56
评论
492

今天因为需要测试帝国cms的一个功能,在服务器上面安装了帝国cms,下载了7.5版本,等到安装的时候,第一步,点击“我同意”就出现以下错误了:

PHP Warning: Use of undefined constant can - assumed 'can' (this will throw an Error in a future version of PHP) in D:\********\e\install\data\fun.php on line 121
PHP Warning: Use of undefined constant can - assumed 'can' (this will throw an Error in a future version of PHP) in D:\*******\e\install\data\fun.php on line 240

这里虽然不懂具体是什么意思,但注意到那串英文字符an Error in a future version of PHP,能读懂 version of PHP这个就基本上晓得问题出在哪里了,version是版本的意思,估摸着是php版本的问题,因为是windows服务器,用建站助手直接改动以下版本,前面装的是php7.2,这里我改动到PHP7.1问题就解决了。如果是虚拟主机在虚拟主机面板进行更改。 宝塔面板的话直接在站点设置里面切换php版本,不过前提是要提前预装其他版本的php。

帝国CMS安装错误an Error in a future version of PHP

帝国CMS其实兼容最好的是php5.6,大家如果用帝国的话建议还是用php5.6,以免出现各种php错误。

admin
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: