出现的问题, 找了几圈某度, 说的都不知道什么鬼. 所以还得自己试着搞(因为不太想跟这源码写的代码)
可处理方法:
Warning: Use of undefined constant MODULE_ROOT - assumed 'MODULE_ROOT' (this will throw an Error in a future version of PHP) in xxxxx
Warning: Use of undefined constant FRAME - assumed 'FRAME' (this will throw an Error in a future version of PHP) in xxxxx
当前环境配置为: we7 1.7.0 + x版 + php7.2+mysql(这个不用管)
private function cer_filepath($file) {
if (defined('MODULE_ROOT')) {
return MODULE_ROOT.'/'.$file;
}
return $file;
}
{php $frames = buildframes(FRAME);_calc_current_frames($frames);}
web/themes/default/common/header-base.html 4行 添加
{if !defined('FRAME')}{php define('FRAME', '')}{/if}
{php $frames = buildframes(FRAME);_calc_current_frames($frames);}