在前台会员中心添加了购物地址后点击保存,如果出现类似这样的报错:
Fatal error: Call to undefined function compile_str() in /home/wwwroot/user.php on line 982
就需要在includes中的lib_beas.php中定义compile_str函数才行。
在lib_base.php中找到 检查文件类型 的注释代码在此代码上方写入如下代码:
function compile_str($str)
{
$arr = array('<' => '<', '>' => '>');
return strtr($str,$arr);
}
这样就能解决这个问题了。转载请注明站博士模板堂——ecshop模板插件选购等一站!