Warning Use of undefined constant
页面报 Warning: Use of undefined constant home - assumed 'home' (this will throw an Error in a future version of PHP) in
原因,PHP7.x以上版本对命名要求比较严格,当命名缺少了单引号包裹,便会提示报错。
解决方法:
一,可以在后台,设置,安全,关闭调试 (表面不显示)
二,最终解决办法,找到报错页面模板,在里面找到提示的命名,例如 {lang(home)} 改成 {lang('home')}