Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the tappay-scripts-admin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /www/np2comtw_107/public/wp-includes/functions.php on line 6031
Fatal error: Uncaught TypeError: Automattic\WooCommerce\Utilities\ArrayUtil::get_value_or_default(): Argument #1 ($array) must be of type array, string given, called in /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php on line 282 and defined in /www/np2comtw_107/public/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:95 Stack trace: #0 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(282): Automattic\WooCommerce\Utilities\ArrayUtil::get_value_or_default(”, ‘enabled’) #1 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(171): WC_Payment_Gateways->was_gateway_enabled(Array, ”) #2 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(153): WC_Payment_Gateways->payment_gateway_settings_option_changed(Object(cloudwp\TapPay\WC_Gateway_TapPay), Array, ‘woocommerce_cwt…’, ”) #3 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(324): WC_Payment_Gateways->{closure}(”, Array, ‘woocommerce_cwt…’) #4 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #5 /www/np2comtw_107/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /www/np2comtw_107/public/wp-includes/option.php(883): do_action(‘update_option_w…’, ”, Array, ‘woocommerce_cwt…’) #7 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(238): update_option(‘woocommerce_cwt…’, Array, ‘yes’) #8 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(324): WC_Settings_API->process_admin_options(”) #9 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #10 /www/np2comtw_107/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php(304): do_action(‘woocommerce_upd…’) #12 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(324): WC_Settings_Payment_Gateways->save(”) #13 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #14 /www/np2comtw_107/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #15 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php(77): do_action(‘woocommerce_set…’) #16 /www/np2comtw_107/public/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(179): WC_Admin_Settings::save() #17 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(324): WC_Admin_Menus->save_settings(”) #18 /www/np2comtw_107/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #19 /www/np2comtw_107/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #20 /www/np2comtw_107/public/wp-settings.php(665): do_action(‘wp_loaded’) #21 /www/np2comtw_107/public/wp-config.php(177): require_once(‘/www/np2comtw_1…’) #22 /www/np2comtw_107/public/wp-load.php(50): require_once(‘/www/np2comtw_1…’) #23 /www/np2comtw_107/public/wp-admin/admin.php(34): require_once(‘/www/np2comtw_1…’) #24 {main} thrown in /www/np2comtw_107/public/wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php on line 95
成為第一個發言