-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Clear static content when enabling new module from CLI #1711
Comments
@markoshust decision was made to make this optional by default, please see the following issue for background: #1108. Do you think the alert message could be improved? |
Thank you, I was looking for related ticket on this as I was sure there was one but I couldn't find it. The responses in that ticket make sense. Right now, the "Alert" seems like a critical issue (I believe it's highlighted in red with CLI so it seems like a Fatal message). The "Failure to clear static view files might cause display issues in the Admin and storefront." also seems like a critical issue. I don't think it's exactly clear when this should be cleared, and when it doesn't need to be cleared. I think improving the message makes sense, and perhaps change it to an I'm not sure if that verbiage is correct, but I think it might make sense to change it from critical/alert message to more of a passive info message. |
Thank you for your feedback, I will review with the team and provide updates here. |
Suggest a minor tweak: "Info: Use the optional --clear-static-content option to clear generated static view files. Some modules might require static files to be cleared. Contact your module vendor for more details". (Although to be realistic, is anyone going to stop and contact the module vendor?) |
Good point about the contacting vendor. Can probably leave that last line out. |
Tracking internally as MAGETWO-42025 |
@markoshust this has been completed but not yet pushed to GitHub repo. Closing the issue - feel free to re-open if you don't see it in the near future or have more questions. |
Public Pull Requests #11952 11832: Create order (on Customer edit page) - not working from admin environment by @RomaKis #12141 Fix js error when disable/enable wysiwyg editor by @vovayatsyuk #12130 [Backport 2.2] MAGETWO-71697: Fix possible bug when saving address with empty street line #10582 by @vovayatsyuk #12173 8022: Uncaught Error: Call to a member function addItem() on array in app/code/Magento/Sales/Model/Order/Shipment.php(backport to 2.2) by @RomaKis #12001 11532: Duplicate Simple Product Throws Error: Undefined offset: 0 in SaveHandler.php on line 122 by @RomaKis #12077 10628: Color attribute swatches are not visible if sorting is enabled by @RomaKis #12035 Fix newsletter subscriptions between stores by @sbaixauli #11274 Fix #10477 Check cart rule subselect conditions against quote item children too by @marinagociu Fixed Public Issues #11832 Create order (on Customer edit page) - not working from admin environment #8022 Uncaught Error: Call to a member function addItem() on array in app/code/Magento/Sales/Model/Order/Shipment.php #11532 Duplicate Simple Product Throws Error: Undefined offset: 0 in SaveHandler.php on line 122 #10628 Color attribute swatches are not visible if sorting is enabled #10014 Newsletter subscriptions status not isolated between multi stores #10477 Cart price rule has failed if use dropdown attribute
Hi @markoshust. Thank you for your report.
The fix will be available with the upcoming 2.4.1 release. |
Merge 2.4-develop into AC-12085
when running module:enable:
The alert message seems problematic:
Alert: Generated static view files were not cleared. You can clear them using the --clear-static-content option. Failure to clear static view files might cause display issues in the Admin and storefront.
If there are issues if the
--clear-static-content
param isn't passed in, shouldn't it be the default option when enabling a module?The text was updated successfully, but these errors were encountered: