最近我在Wordpress上安装了Woocommerce插件,但遇到以下问题。
致命错误:未捕获错误:调用未定义函数 wc_product_class()在 C:\ xampp \ htdocs \ hou \ wp-content \ themes \ wplms \ woocommerce \ content-single-product.php:36 堆栈跟踪:#0 C:\ xampp \ htdocs \ hou \ wp-includes \ template.php(690): require()#1 C:\ xampp \ htdocs \ hou \ wp-content \ plugins \ woocommerce \ includes \ wc-core-functions.php(180): load_template('C:\ xampp \ htdocs ...',false)#2 C:\ xampp \ htdocs \ hou \ wp-content \ themes \ wplms \ woocommerce \ single-product.php(40): wc_get_template_part('content','single-product')#3 C:\ xampp \ htdocs \ hou \ wp-includes \ template-loader.php(74): include('C:\ xampp \ htdocs ...')#4 C:\ xampp \ htdocs \ hou \ wp-blog-header.php(19): require_once('C:\ xampp \ htdocs ...')#5 C:\ xampp \ htdocs \ hou \ index.php(17):require('C:\ xampp \ htdocs ...')#6 {main}投入 C:\ xampp \ htdocs \ hou \ wp-content \ themes \ wplms \ woocommerce \ content-single-product.php 在第36行