FriendsOfShopware / FroshProfiler

This plugin allows you to profile your Shopware 5 application
MIT License
157 stars 41 forks source link

SW 5.6 and dump: Argument 1 passed to Symfony\Component\VarDumper\Dumper\AbstractDumper::dump() must be an instance of Symfony\Component\VarDumper\Cloner\Data #109

Closed rofthedeep closed 5 years ago

rofthedeep commented 5 years ago

Hi :)

today I tried Shopware 5.6 and updated the Profiler, too.

With using dump('test'); in my code I'm getting the following error:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Symfony\Component\VarDumper\Dumper\AbstractDumper::dump() must be an instance of Symfony\Component\VarDumper\Cloner\Data, string given, called in /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php on line 55 and defined in /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:124
Stack trace:
#0 /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php(55): Symfony\Component\VarDumper\Dumper\AbstractDumper->dump('listing', true)
#1 /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Command/ServerDumpCommand.php(96): Symfony\Component\VarDumper\Command\Descriptor\CliDescriptor->describe(Object(Symfony\Component\Console\Style\SymfonyStyle), Object(Symfony\Component\VarDumper\Cloner\Data), Array, 475)
#2 /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Server/DumpServer.php(76): Symfony\Compon in /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Dumper/AbstractDumper.php on line 124

Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\VarDumper\Dumper\AbstractDumper::dump() must be an instance of Symfony\Component\VarDumper\Cloner\Data, string given, called in /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php on line 55 and defined in /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:124
Stack trace:
#0 /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Command/Descriptor/CliDescriptor.php(55): Symfony\Component\VarDumper\Dumper\AbstractDumper->dump('listing', true)
#1 /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Command/ServerDumpCommand.php(96): Symfony\Component\VarDumper\Command\Descriptor\CliDescriptor->describe(Object(Symfony\Component\Console\Style\SymfonyStyle), Object(Symfony\Component\VarDumper\Cloner\Data), Array, 475)
#2 /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Server/DumpServer.php(76): Symfony\Compon in /var/www/html/custom/plugins/FroshProfiler/vendor/symfony/var-dumper/Dumper/AbstractDumper.php on line 124
make: *** [dump] Error 255

I've started the profiler with the following command: php bin/console server:dump

Bildschirmfoto 2019-08-19 um 14 16 10

Bildschirmfoto 2019-08-19 um 14 16 39

Perhaps you've got an idea where this issue comes from?

Best, Tim

alandolsi commented 4 years ago

I have the same problem, do you have a solution?

shyim commented 4 years ago

Are you using the latest version?

alandolsi commented 4 years ago

yes and it worked yesterday already

shyim commented 4 years ago

Can you create a new issue with a description how to reproduce this?

alandolsi commented 4 years ago

ok