# Symfony Console error Message: must be an instance of

**URL:** https://forum.shopware.com/t/symfony-console-error-message-must-be-an-instance-of/60705
**Category:** Installation / Einstieg
**Created:** [28. Juli 2019 um 11:39 UTC](https://forum.shopware.com/t/symfony-console-error-message-must-be-an-instance-of/60705 "2019-07-28T11:39:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sndo](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sndo](https://forum.shopware.com/u/sndo)
#### Post date: [28. Juli 2019 um 11:39 UTC](https://forum.shopware.com/t/symfony-console-error-message-must-be-an-instance-of/60705/1 "2019-07-28T11:39:56Z")

</div>

Irgendwie stehe ich auf dem Schlauch.

bei jedem Aufruf der console kommt folgende Fehlermeldung:

> Return value of Shopware\Core\Framework\Event\BusinessEventDispatcher::dispatch() must be an instance of Shopware\Core\Framework\Event\object, instance of Symfony\Component\Console\Event\ConsoleErrorEvent returned&nbsp;

&nbsp;

Hier der vollständige Aufruf:

```
 [~/public_html/stage]# bin/console --help
11:21:52 ERROR [console] Error thrown while running command "list". Message: "Return value of Shopware\Core\Framework\Event\BusinessEventDispatcher::dispatch() must be an instance of Shopware\Core\Framework\Event\object, instance of Symfony\Component\Console\Event\ConsoleCommandEvent returned" ["exception" => TypeError { …},"command" => "list","message" => "Return value of Shopware\Core\Framework\Event\BusinessEventDispatcher::dispatch() must be an instance of Shopware\Core\Framework\Event\object, instance of Symfony\Component\Console\Event\ConsoleCommandEvent returned"]

In BusinessEventDispatcher.php line 49:
                                                                                                                                                                                                                         
  Return value of Shopware\Core\Framework\Event\BusinessEventDispatcher::dispatch() must be an instance of Shopware\Core\Framework\Event\object, instance of Symfony\Component\Console\Event\ConsoleErrorEvent returned  
                                                                                                                                                                                                                         

help [--format FORMAT] [--raw] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] []

```

&nbsp;

Was mache ich falsch?

&nbsp;

Danke für die Unterstützung.

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [28. Juli 2019 um 11:42 UTC](https://forum.shopware.com/t/symfony-console-error-message-must-be-an-instance-of/60705/2 "2019-07-28T11:42:40Z")

</div>

Du brauchst PHP 7.2

---

<div class="post-metadata">

### Author: ![sndo](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sndo](https://forum.shopware.com/u/sndo)
#### Post date: [28. Juli 2019 um 11:52 UTC](https://forum.shopware.com/t/symfony-console-error-message-must-be-an-instance-of/60705/3 "2019-07-28T11:52:14Z")

</div>

Danke für den Tip

```
kiwitaan@s001 [~/public_html/stage]# php -v
PHP 7.1.30 (cli) (built: May 30 2019 14:54:57) ( NTS )

```

Die PHP Version auf dem Directory habe ich auf 7.3.6 eingestellt. Shopware läuft auch darauf. Nur in der shell ist es noch auf 7.1.

---

<div class="post-metadata">

### Author: ![sndo](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sndo](https://forum.shopware.com/u/sndo)
#### Post date: [28. Juli 2019 um 12:14 UTC](https://forum.shopware.com/t/symfony-console-error-message-must-be-an-instance-of/60705/4 "2019-07-28T12:14:29Z")

</div>

kaum macht man es richtig geht es:

&nbsp;

```
kiwitaan@s001 [~/public_html/stage]# php -v
PHP 7.3.6 (cli) (built: May 31 2019 03:35:10) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.3.5, Copyright (c) 2002-2019, by ionCube Ltd.
    with Zend OPcache v7.3.6, Copyright (c) 1999-2018, by Zend Technologies
kiwitaan@s001 [~/public_html/stage]# bin/console --help
Description:
  Lists commands

Usage:
  list [options] [--] []

Arguments:
  namespace The namespace name

Options:
      --raw To output raw command list
      --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]

Help:
  The list command lists all commands:
  
    php bin/console list
  
  You can also display the commands for a specific namespace:
  
    php bin/console list test
  
  You can also output the information in other formats by using the --format option:
  
    php bin/console list --format=xml
  
  It's also possible to get raw list of commands (useful for embedding command runner):
  
    php bin/console list --raw

```

&nbsp;
