-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Labels
Platform(Default)component/coredomain/frameworkResponsible for the framework-level code includes core, administration, storefront, and frontendsResponsible for the framework-level code includes core, administration, storefront, and frontendspriority/highItems that we should do soon.Items that we should do soon.
Milestone
Description
Shopware Version
6.7.8
Affected area / extension
Platform(Default)
Actual behaviour
When order status change happens this error shows.
You need to have webhooks active on order status change. In this Shopware instance we use our app that has installed webhooks during installation in its manifest.
It works fine with other previous versions.
Error details:
{
"errors": [
{
"code": "0",
"status": "500",
"title": "Internal Server Error",
"detail": "Warning: Undefined array key \u0022data\u0022",
"meta": {
"trace": [
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Hookable\/HookableBusinessEvent.php",
"line": 50,
"function": "checkPermissionsForDataType",
"class": "Shopware\\Core\\Framework\\Webhook\\Hookable\\HookableBusinessEvent",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Service\/WebhookManager.php",
"line": 321,
"function": "isAllowed",
"class": "Shopware\\Core\\Framework\\Webhook\\Hookable\\HookableBusinessEvent",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Service\/WebhookManager.php",
"line": 203,
"function": "isEventDispatchingAllowed",
"class": "Shopware\\Core\\Framework\\Webhook\\Service\\WebhookManager",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Service\/WebhookManager.php",
"line": 117,
"function": "callWebhooksSynchronous",
"class": "Shopware\\Core\\Framework\\Webhook\\Service\\WebhookManager",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Profiling\/Profiler.php",
"line": 67,
"function": "{closure:Shopware\\Core\\Framework\\Webhook\\Service\\WebhookManager::callWebhooks():117}",
"class": "Shopware\\Core\\Framework\\Webhook\\Service\\WebhookManager",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Service\/WebhookManager.php",
"line": 115,
"function": "trace",
"class": "Shopware\\Core\\Profiling\\Profiler",
"type": "::"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Service\/WebhookManager.php",
"line": 75,
"function": "callWebhooks",
"class": "Shopware\\Core\\Framework\\Webhook\\Service\\WebhookManager",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/WebhookDispatcher.php",
"line": 34,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Webhook\\Service\\WebhookManager",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Event\/NestedEventDispatcher.php",
"line": 31,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Webhook\\WebhookDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php",
"line": 126,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Event\\NestedEventDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Checkout\/Order\/Listener\/OrderStateChangeEventListener.php",
"line": 159,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Checkout\/Order\/Listener\/OrderStateChangeEventListener.php",
"line": 111,
"function": "dispatchEvent",
"class": "Shopware\\Core\\Checkout\\Order\\Listener\\OrderStateChangeEventListener",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php",
"line": 115,
"function": "onOrderStateChange",
"class": "Shopware\\Core\\Checkout\\Order\\Listener\\OrderStateChangeEventListener",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php",
"line": 206,
"function": "__invoke",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/event-dispatcher\/EventDispatcher.php",
"line": 56,
"function": "callListeners",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Content\/Flow\/Dispatching\/FlowDispatcher.php",
"line": 43,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\EventDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/WebhookDispatcher.php",
"line": 28,
"function": "dispatch",
"class": "Shopware\\Core\\Content\\Flow\\Dispatching\\FlowDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Event\/NestedEventDispatcher.php",
"line": 31,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Webhook\\WebhookDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/event-dispatcher\/Debug\/TraceableEventDispatcher.php",
"line": 126,
"function": "dispatch",
"class": "Shopware\\Core\\Framework\\Event\\NestedEventDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/System\/StateMachine\/StateMachineRegistry.php",
"line": 206,
"function": "dispatch",
"class": "Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Context.php",
"line": 201,
"function": "{closure:Shopware\\Core\\System\\StateMachine\\StateMachineRegistry::transition():115}",
"class": "Shopware\\Core\\System\\StateMachine\\StateMachineRegistry",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/System\/StateMachine\/StateMachineRegistry.php",
"line": 115,
"function": "scope",
"class": "Shopware\\Core\\Framework\\Context",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Checkout\/Order\/SalesChannel\/OrderService.php",
"line": 100,
"function": "transition",
"class": "Shopware\\Core\\System\\StateMachine\\StateMachineRegistry",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Checkout\/Order\/Api\/OrderActionController.php",
"line": 70,
"function": "orderStateTransition",
"class": "Shopware\\Core\\Checkout\\Order\\SalesChannel\\OrderService",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpKernel.php",
"line": 183,
"function": "orderStateTransition",
"class": "Shopware\\Core\\Checkout\\Order\\Api\\OrderActionController",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpKernel.php",
"line": 76,
"function": "handleRaw",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Adapter\/Kernel\/HttpKernel.php",
"line": 72,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpCache\/SubRequestHandler.php",
"line": 86,
"function": "handle",
"class": "Shopware\\Core\\Framework\\Adapter\\Kernel\\HttpKernel",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpCache\/HttpCache.php",
"line": 466,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\SubRequestHandler",
"type": "::"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpCache\/HttpCache.php",
"line": 268,
"function": "forward",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpCache\/HttpCache.php",
"line": 282,
"function": "pass",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/http-kernel\/HttpCache\/HttpCache.php",
"line": 202,
"function": "invalidate",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Adapter\/Kernel\/HttpCacheKernel.php",
"line": 61,
"function": "handle",
"class": "Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Kernel.php",
"line": 129,
"function": "handle",
"class": "Shopware\\Core\\Framework\\Adapter\\Kernel\\HttpCacheKernel",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/symfony\/runtime\/Runner\/Symfony\/HttpKernelRunner.php",
"line": 35,
"function": "handle",
"class": "Shopware\\Core\\Kernel",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/autoload_runtime.php",
"line": 32,
"function": "run",
"class": "Symfony\\Component\\Runtime\\Runner\\Symfony\\HttpKernelRunner",
"type": "-\u003E"
},
{
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/public\/index.php",
"line": 10,
"args": [
"\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/autoload_runtime.php"
],
"function": "require_once"
}
],
"file": "\/usr\/www\/users\/tscon\/shopware6-automation\/vendor\/shopware\/core\/Framework\/Webhook\/Hookable\/HookableBusinessEvent.php",
"line": 64
}
}
]
}
Expected behaviour
Webhook for order status change to be sent and no error to show to the customer in frontend.
How to reproduce
Install an app with webhooks for order status change.
You can install our app if you want to test:
https://store.shopware.com/de/trus502933614734/trusted-shops-easy-integration-fuer-shopware-6.html
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Platform(Default)component/coredomain/frameworkResponsible for the framework-level code includes core, administration, storefront, and frontendsResponsible for the framework-level code includes core, administration, storefront, and frontendspriority/highItems that we should do soon.Items that we should do soon.