-
-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Describe the bug
Whenever the Checkout mutation is called, an internal error is returned, upon enabling the debug message, I got "Non-static method WPGraphQL\WooCommerce\Data\Mutation\Checkout_Mutation::update_session() cannot be called statically".
I've been trying to implement the checkout on my Nuxt.js website for some time now and I can't seem to find how to fix that, I checked similar projects (Nuxt, Next and Gatsby) to see if my implementation was off but it seems everything should be working correctly, I cloned some of these repos and confirmed the error still happens.
{
"errors": [
{
"debugMessage": "Non-static method WPGraphQL\\WooCommerce\\Data\\Mutation\\Checkout_Mutation::update_session() cannot be called statically",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"checkout"
]
}
],
"data": {
"checkout": null
},
"extensions": {
"debug": []
}
}To Reproduce
Install the plugins, then try to send a valid checkout mutation.
Expected behavior
Checkout should be working.
Desktop (please complete the following information):
- OS: Arch Linux x86_64
- Browser Chromium
- Version 89.0.4389.114
Plugin Versions
- WooGraphQL Version: 0.6.1 or latest (tried on both)
- WPGraphQL Version: 1.2.4 or latest (tried on both)
- WordPress Version: 5.6.0 or latest (tried on both)
- WooCommerce Version: 5.0.0 or latest (tried on both)