New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabled Output of Magento_Review leads to LocalizedException #5663
Disabled Output of Magento_Review leads to LocalizedException #5663
Conversation
Thanks! This should hopefully fix #5323 |
We need this urgently please merge it ASAP |
Internal ticket - MAGETWO-56794 |
Need to implement this with all modules as DI still injects and .xml layouts still override when a module is disabled! php bin/magento module:disable needs to remove all functionality of the module as if it were uninstalled including setup_database version checks ! |
Is this going to be merged soon? |
Chaika-PR-2020-05-08-CE
If visiting
admin/catalog/product/edit
and if the output of moduleMagento_Review
is disabled, Magento saysAttention Something went wrong.
. Problem is a ajax request tohttp://hostname/admin/mui/index/render/key/foo/?namespace=review_listing&isAjax=true
that returns a500
status code with the following response:The problem is that Magento\Framework\View\Element\UiComponent\Config\DomMerger::getDom has an empty
domDocument
property. With enabled output of moduleMagento_Review
thedomDocument
property would have the content of review_listing.xml.This can happen, cause Magento\Framework\View\File\Collector\Decorator\ModuleOutput::getFiles is filtering files that are contained in modules with disabled output.
Magento\Review\Ui\DataProvider\Product\Form\Modifier\Review::modifyMeta should only modify the meta if the output of module
Magento_Review
is enabled to prevent the behavior from above.