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

PHP Fatal error: Uncaught Error: Call to a member function get_status() #17

Open
PapayaMedia opened this issue Oct 22, 2020 · 0 comments

Comments

@PapayaMedia
Copy link

$current_state = $order->get_status();

PHP Fatal error: Uncaught Error: Call to a member function get_status() on null in woocommerce-payco-gateway/woocommerce-gateway-payco.php:604

La asignación de la variable $current_state = $order->get_status(); asume que $order es un objecto. Pero $order existe únicamente si el condicional de unas líneas más atrás es verdadero, en caso contrario $order va a ser NULL y eso es lo que genera el error.

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