错误详情:(供参考)
Fatal error: Cannot redeclare update_termmeta_cache() (previously declared in /www/wwwroot/cs.a8ymw.cn/wp-includes/taxonomy.php:1496) in /www/wwwroot/cs.a8ymw.cn/wp-content/themes/taen-smzdm/include/simple-term-meta.php on line 80
替换文章错误中的第80行
1.找到类似下面这样的代码
function update_termmeta_cache( $term_ids ) {
// 函数内部的业务代码...
}
2.替换为
// 关键:加 if ( !function_exists('函数名') ) 包裹
if ( !function_exists('update_termmeta_cache') ) {
function update_termmeta_cache( $term_ids ) {
// 这里保留原函数内部的所有代码,一行都不要删!
//A8源码亲测 www.a8ymw.com
}
}
如果后面还继续报错此类型的错误,大家可以按照此方法最后都可解决,A8源码亲测研究有效。




没有回复内容