iT邦幫忙

0

wordpress前後台打不開

我因為爬文改了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

2 個回答

0
rogeryao
iT邦新手 2 級 ‧ 2018-10-10 16:36:54

猜的....
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 不見了

0
yesongow
iT邦大師 1 級 ‧ 2018-10-11 12:23:02

改了wooconmmerce的結帳語法?

修改前,有沒有備份?還原應該就好了!

我要發表回答

立即登入回答