mirasvit / module-profiler

Magento 2 Profiler
https://mirasvit.com/
Open Software License 3.0
133 stars 36 forks source link

Magento 2.2 - PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Yaml\Dumper' not found in vendor/mirasvit/module-profiler/src/Profiler/Model/Storage.php:48 #22

Closed Tantuss closed 6 years ago

Tantuss commented 6 years ago

After the upgrade to Magento 2.2 the follow error is generated when the extension is enabled:

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Yaml\Dumper' not found in vendor/mirasvit/module-profiler/src/Profiler/Model/Storage.php:48 Stack trace:

0 vendor/mirasvit/module-profiler/src/Profiler/Model/Driver/Output/Html.php(39): Mirasvit\Profiler\Model\Storage->dump()

1 vendor/magento/framework/Profiler/Driver/Standard.php(195): Mirasvit\Profiler\Model\Driver\Output\Html->display(Object(Magento\Framework\Profiler\Driver\Standard\Stat))

2 [internal function]: Magento\Framework\Profiler\Driver\Standard->display()

3 {main}

thrown in vendor/mirasvit/module-profiler/src/Profiler/Model/Storage.php on line 48

kabadabra commented 6 years ago

run composer require symfony/yaml then try enable again

angelflo commented 6 years ago

Hi, Same problem here with last magento 2.2.1 installed. when I tried to run composer require symfony/yaml, I received error

composer require symfony/yaml Using version ^3.4 for symfony/yaml ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

yco85 commented 6 years ago

Hi, I had the same problem two days ago... No way... I had to install newly Magento 2 and instal the Mirasvit module as first module...

adrok commented 6 years ago

The temporary fix is install symfony/yaml from dev branch and then our module:

composer require symfony/yaml:dev-issue-814 composer require mirasvit/module-profiler

In next release we'll add own library to use yaml.

mrthao commented 6 years ago

Hi, I installed Mage ce2.2.1, then installed the Mirasvit module as first module, after I run " php -f bin/magento mirasvit:profiler:enable", I got error "PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Yaml\Dumper' not found..." Then I run "composer require symfony/yaml:dev-issue-814" but still get error "Installation failed, reverting ./composer.json to its original content."

ityetti commented 6 years ago

@adrok You have a small mistake. composer require symfony/yaml:dev-issue-8145 - You probably forgot 5, because the branch 814 is not in this repository https://github.com/symfony/yaml

@mrthao Please check my comment.

Triloworld commented 6 years ago

Confirm. Solution @ityetti work right now fine and no problem. Pleas add information about Varnish that need to be clear manually and it works like charm 👍

PascalBrouwers commented 5 years ago

Tried to install. Had the same problem again.

MurKit commented 5 years ago

Looks like this fix does not work on 1.0.7 https://github.com/mirasvit/module-profiler/pull/44 Still having this problem