帝国7.5版本PHP Warning: Use of undefined constan解决办法

帝国CMS是很强大的一个CMS,最近准备做个站点用帝国的7.5.

安装的时候是can 要双引号,现在官方还没有看到怎么处理。
安装把代码“can”双引号搞定了。结果在登陆的时候又踩坑里面了。发现下面的这些错误。我怕又踩坑里面。我就直接用文章末尾的办法,

HP Warning:  Use of undefined constant lastip - assumed 'lastip' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 131
PHP Warning:  Use of undefined constant lastipport - assumed 'lastipport' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 131
PHP Warning:  Use of undefined constant styleid - assumed 'styleid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 134
PHP Warning:  Use of undefined constant styleid - assumed 'styleid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 141
PHP Warning:  Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 164
PHP Warning:  Use of undefined constant groupid - assumed 'groupid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 167
PHP Warning:  Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 171
PHP Warning:  Use of undefined constant userid - assumed 'userid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 172
PHP Warning:  Use of undefined constant groupid - assumed 'groupid' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\adminfun.php on line 172
PHP Warning:  Use of undefined constant filechmod - assumed 'filechmod' (this will throw an Error in a future version of PHP) in F:\wwwroot\000\e\class\connect.php on line 1978

我开始的php版本是7.3
直接把PHP版本降级为7.0.就没有问题了。简单方便快捷暴力。

原文链接:,转发请注明来源落伍老站长!

发表评论