Conversation
supportHi there, I have a test site setup where I deactivated WooCommerce and it triggered this error from your plugin: PHP Fatal error: Uncaught Error: Class ‘WC_Payment_Gateway’ not found in /home/gz4bbuo/public_html/wp-content/plugins/woo-order-test/admin/functions.php:23 Stack trace: 0 /home/gz4bbuo/public_html/wp-includes/class-wp-hook.php(324): wpfi_init_woo_order_test_gateway_class(”) 1 /home/gz4bbuo/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 2 /home/gz4bbuo/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 3 /home/gz4bbuo/public_html/wp-settings.php(578): do_action(‘plugins_loaded’) 4 /home/gz4bbuo/public_html/wp-config.php(108): require_once(‘/home/gz4bbuo/p…’) 5 /home/gz4bbuo/public_html/wp-load.php(50): require_once(‘/home/gz4bbuo/p…’) 6 /home/gz4bbuo/public_html/wp-admin/admin.php(35): require_once(‘/home/gz4bbuo/p…’) 7 /home/gz4bbuo/public_html/wp-admin/plugins.php(10): require_once(‘/home/gz4bbuo/p…’) 8 {main} thrown in /home/gz4bbuo/public_html/wp-content/plugins/woo-order-test/admin/functions.php on line 23 It would be best to check for the existence of WC_Payment_Gateway and bail if it’s not available.
No comments were stored for this source.