Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with lastest Woocommer Update #7

Open
devbleras opened this issue Jan 31, 2022 · 1 comment
Open

Not compatible with lastest Woocommer Update #7

devbleras opened this issue Jan 31, 2022 · 1 comment

Comments

@devbleras
Copy link

Error log:
[STDERR] PHP Fatal error: Uncaught Error: Call to a member function has_status() on bool in public_html/wp-content/plugins/cecabank-woocommerce-master/wc_gateway_cecabank.php:739
Stack trace:
#0 /public_html/wp-includes/class-wp-hook.php(307): WC_Gateway_Cecabank->check_notification()
#1 /public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#2 /public_html/wp-includes/plugin.php(474): WP_Hook->do_action()
#3 /public_html/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action()
#4 /public_html/wp-includes/class-wp-hook.php(307): WC_API->handle_api_requests()
#5 public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#6 /public_html/wp-includes/plugin.php(522): WP_Hook->do_action()
#7 /public_html/wp-includes/class-wp.php(396): do_action_ref_array()
#8 /public_html/wp-includes/class-wp.php(758): WP->pars in /public_html/wp-content/plugins/cecabank-woocommerce-master/wc_gateway_cecabank.php on line 739

@devbleras
Copy link
Author

Can be fixed including if on get order.
` function check_notification() {
global $woocommerce;

      if ( ! $order = wc_get_order( $_POST['Num_operacion'] ) ) {
return;

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant