magento / m2-devtools

Helpful in-browser debugging/inspection tools for the Magento 2 Front-End
Open Software License 3.0
172 stars 48 forks source link

MinificationPlugin doesn't exist and Uncaught Error: Class #61

Open bst2002git opened 5 years ago

bst2002git commented 5 years ago

This issue is a:

Environment

Question Answer
Magento version 2.3.3
Browser + version Firefox/70.0
node.js version (node -v) v10.17.0
npm version (npm -v) 6.11.3

Description

installed module under app/code/Magento_BundleConfig

Adminbackend:

1 exception(s): Exception #0 (InvalidArgumentException): Plugin class Magento\BundleConfig\Plugin\View\Asset\MinificationPlugin doesn't exist

Exception #0 (InvalidArgumentException): Plugin class Magento\BundleConfig\Plugin\View\Asset\MinificationPlugin doesn't exist

#1 Magento\Framework\Interception\PluginList\PluginList->getNext() called at [generated/code/Magento/Framework/View/Asset/Minification/Interceptor.php:22]
#2 Magento\Framework\View\Asset\Minification\Interceptor->isEnabled() called at [vendor/magento/module-require-js/Block/Html/Head/Config.php:80]
#3 Magento\RequireJs\Block\Html\Head\Config->_prepareLayout() called at [vendor/magento/framework/View/Element/AbstractBlock.php:283]
#4 Magento\Framework\View\Element\AbstractBlock->setLayout() called at [vendor/magento/framework/View/Layout/Generator/Block.php:149]
#5 Magento\Framework\View\Layout\Generator\Block->process() called at [vendor/magento/framework/View/Layout/GeneratorPool.php:81]
#6 Magento\Framework\View\Layout\GeneratorPool->process() called at [vendor/magento/framework/View/Layout.php:343]
#7 Magento\Framework\View\Layout->generateElements() called at [vendor/magento/framework/View/Layout/Builder.php:129]
#8 Magento\Framework\View\Layout\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Page/Builder.php:55]
#9 Magento\Framework\View\Page\Builder->generateLayoutBlocks() called at [vendor/magento/framework/View/Layout/Builder.php:65]
#10 Magento\Framework\View\Layout\Builder->build() called at [vendor/magento/framework/View/Page/Config.php:224]
#11 Magento\Framework\View\Page\Config->build() called at [vendor/magento/framework/View/Page/Config.php:237]
#12 Magento\Framework\View\Page\Config->publicBuild() called at [vendor/magento/framework/View/Result/Page.php:242]
#13 Magento\Framework\View\Result\Page->render() called at [vendor/magento/framework/View/Result/Layout.php:171]
#14 Magento\Framework\View\Result\Layout->renderResult() called at [generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php:24]
#15 Magento\Backend\Model\View\Result\Page\Interceptor->renderResult() called at [vendor/magento/framework/App/Http.php:141]
#16 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#17 Magento\Framework\App\Bootstrap->run() called at [index.php:39]

frontend nginx error_log:

2019/11/21 17:42:22 [error] 15711#15711: *95731 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'Magento\BundleConfig\Model\FileManager' not found in web/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:116 Stack trace:

0 web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\BundleC...', Array)

1 web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\BundleC...')

2 web/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Magento\BundleC...')

3 web/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Compiled->create('Magento\BundleC...', Array)

4 web/vendor/magento/framework/View/Element/BlockFactory.php(46): Magento\Frame" while reading response header from upstream, client: 10.202.0.164, server: mag3devel.fangocur.at, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php5-fpm/web2124.sock:", host: "devel.shop"

Expected result:

Possible solutions:

Do install with composer: edit composer.json (main porject composer.json): .... "minimum-stability": "alpha", "prefer-stable": true, "repositories": { "0": { "type": "composer", "url": "https://repo.magento.com/" }, .... "magento/module-bundle-config": { "type": "vcs", "url": "https://github.com/magento/m2-devtools.git" } }, "extra": { "magento-force": "override" } ...

composer require --dev -vvv magento/module-bundle-config:dev-master