Skip to content
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

Closed
markshust opened this issue Aug 20, 2015 · 8 comments
Closed

Clear static content when enabling new module from CLI #1711

markshust opened this issue Aug 20, 2015 · 8 comments
Assignees
Labels
Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed

Comments

@markshust
Copy link
Contributor

when running module:enable:

root@1ade1c331026:/var/www/html# ./bin/magento module:enable Foo_Bar
The following modules have been enabled:
- Foo_Bar

To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully.
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.

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?

@vpelipenko vpelipenko added the PS label Aug 20, 2015
@mbrinton01 mbrinton01 self-assigned this Aug 20, 2015
@mbrinton01
Copy link

@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?

@markshust
Copy link
Contributor Author

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 Info instead of an Alert message type (and remove red background). Perhaps something along the lines of "Info: To clear generated static view files, use the --clear-static-content option. Some modules may require static assets to be cleared, please contact your module developer for more details".

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.

@mbrinton01
Copy link

Thank you for your feedback, I will review with the team and provide updates here.

@ghost
Copy link

ghost commented Aug 20, 2015

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?)

@markshust
Copy link
Contributor Author

Good point about the contacting vendor. Can probably leave that last line out.

@mbrinton01
Copy link

Tracking internally as MAGETWO-42025

@mbrinton01
Copy link

@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.

okorshenko pushed a commit that referenced this issue Nov 13, 2017
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
@magento-engcom-team magento-engcom-team added the Fixed in 2.4.x The issue has been fixed in 2.4-develop branch label Aug 19, 2020
@magento-engcom-team
Copy link
Contributor

Hi @markoshust. Thank you for your report.
The issue has been fixed in #29435 by @jmonteros422 in 2.4-develop branch
Related commit(s):

The fix will be available with the upcoming 2.4.1 release.

@magento-engcom-team magento-engcom-team added the Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed label Aug 19, 2020
magento-engcom-team added a commit that referenced this issue Aug 19, 2020
…log image helper init #29435

 - Merge Pull Request #29435 from jmonteros422/magento2-1:1711-use-product-model-instead-of-data-object-for-catalog-image-helper-init
 - Merged commits:
   1. 11d0a35
   2. 25133c5
   3. c72447f
   4. 73d032f
   5. 36427dc
magento-devops-reposync-svc pushed a commit that referenced this issue Sep 12, 2024
Merge 2.4-develop into AC-12085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fixed in 2.4.x The issue has been fixed in 2.4-develop branch Issue: Format is not valid Gate 1 Failed. Automatic verification of issue format is failed
Projects
None yet
Development

No branches or pull requests

4 participants