magento / magento/m2-devtools

MinificationPlugin doesn't exist and Uncaught Error: Class

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
171
Forks
47
PR merge metrics
No merged PRs in 30d

Description

This issue is a:

  • Bug
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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the installed app/code/Magento_BundleConfig module and its composer.json registration, then trace the Magento\BundleConfig\Plugin\View\Asset\MinificationPlugin and Magento\BundleConfig\Model\FileManager references in the reported stack traces. Verify that the module's classes and plugins resolve after installation and compilation, with no corresponding admin or frontend class-not-found errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.