Closed goransle closed 3 years ago
Describe the bug Calling the checkout mutation results in a Non-static method WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation::process_order_payment() cannot be called statically error.
checkout
Non-static method WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation::process_order_payment() cannot be called statically
More output:
"errors": [ { "debugMessage": "Non-static method WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation::process_order_payment() cannot be called statically", "message": "Internal server error", "extensions": { "category": "internal" }, "locations": [ { "line": 2, "column": 3 } ], "path": [ "checkout" ], "trace": [ { "file": "/var/www/html/wp.local/wp-content/plugins/wp-graphql-woocommerce-0.10.4/includes/mutation/class-checkout.php", "line": 147, "call": "WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation::process_checkout()" }, { "call": "WPGraphQL\\WooCommerce\\Mutation\\Checkout::WPGraphQL\\WooCommerce\\Mutation\\{closure}()" },
To Reproduce Steps to reproduce the behavior:
Expected behavior The checkout should not fail.
Plugin Versions
Additional context It does seem that setting the process_order_payment method as static resolves the problem.
process_order_payment
This was resolved in #566
Describe the bug Calling the
checkout
mutation results in aNon-static method WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation::process_order_payment() cannot be called statically
error.More output:
To Reproduce Steps to reproduce the behavior:
Expected behavior The checkout should not fail.
Plugin Versions
Additional context It does seem that setting the
process_order_payment
method as static resolves the problem.