我因為爬文改了wooconmmerce的結帳語法php致使網站崩壞 ,不知該怎麼辦?
Fatal error: Uncaught Error: Class 'WC_Countries' not found in /home/togosale/public_html/togosale.com/wp-content/plugins/woocommerce/includes/class-woocommerce.php:466 Stack trace: #0 /home/togosale/public_html/togosale.com/wp-includes/class-wp-hook.php(286): WooCommerce->init('') #1 /home/togosale/public_html/togosale.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/togosale/public_html/togosale.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/togosale/public_html/togosale.com/wp-settings.php(450): do_action('init') #4 /home/togosale/public_html/togosale.com/wp-config.php(91): require_once('/home/togosale/...') #5 /home/togosale/public_html/togosale.com/wp-load.php(37): require_once('/home/togosale/...') #6 /home/togosale/public_html/togosale.com/wp-admin/admin.php(31): require_once('/home/togosale/...') #7 /home/togosale/public_html/togosale.com/wp-admin/index.php(10): require_once('/home/togosale/...') #8 {main} thrown in /home/togosale/public_html/togosale.com/wp-content/plugins/woocommerce/includes/class-woocommerce.php on line 466
猜的....
class-woocommerce.php on line 466
1.class-woocommerce.php 要 include_once , 但未 include_once
include_once WC_ABSPATH . 'includes/class-wc-countries.php';
2.includes 目錄內的 class-wc-countries.php 不見了