Magento 2.2 some JS files are not loading in production modeOverride Magento 2 JS file via requirejs-config.js not workingCSS and JS files not loading in Production modeProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:Magento2 css images deploy static files languageMagento 2 production mode not setNot able to set Magento 2.2.2 to production modeMagento 2 is not reading my requirejs-config.jsProduction mode won't geneate files inside var/view_processed folderMagento 2.1 not loading some js and css in production modeMagento 2 shell shows production mode, but still in developer mode
Why doesn't a const reference extend the life of a temporary object passed via a function?
"listening to me about as much as you're listening to this pole here"
Ideas for 3rd eye abilities
Shall I use personal or official e-mail account when registering to external websites for work purpose?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
How would photo IDs work for shapeshifters?
What is the meaning of "of trouble" in the following sentence?
Why do we use polarized capacitors?
How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?
Was there ever an axiom rendered a theorem?
Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore
Lied on resume at previous job
Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?
What is the offset in a seaplane's hull?
Is there a way to make member function NOT callable from constructor?
Does the average primeness of natural numbers tend to zero?
Extreme, but not acceptable situation and I can't start the work tomorrow morning
Is it wise to focus on putting odd beats on left when playing double bass drums?
Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?
What does "enim et" mean?
What's the difference between repeating elections every few years and repeating a referendum after a few years?
Could a US political party gain complete control over the government by removing checks & balances?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
How can I fix this gap between bookcases I made?
Magento 2.2 some JS files are not loading in production mode
Override Magento 2 JS file via requirejs-config.js not workingCSS and JS files not loading in Production modeProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:Magento2 css images deploy static files languageMagento 2 production mode not setNot able to set Magento 2.2.2 to production modeMagento 2 is not reading my requirejs-config.jsProduction mode won't geneate files inside var/view_processed folderMagento 2.1 not loading some js and css in production modeMagento 2 shell shows production mode, but still in developer mode
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode:
http://website.com/static/frontend/vendor/theme/en_US/jquery/ui.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/validate.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/jquery-storageapi.js
All the CSS and Fonts are loading properly in both production as well as developer mode.
Important:
I was not able to find these js files in developer mode when checked the network tab of inspector.
Can someone tell me where to look for errors?
Update 1:
I have checked and found that these js file errors are only found in default (pt_BR) Store. When I have checked it for other store(en_US) there were no errors and everything is working fine in this store.
Update 2:
When I have tried php bin/magento setup:static-content:deploy en_US pt_BR then these js file error occurred in both the stores.
P.S: There is nothing helpful in var logs.
multistore magento2.2.2 requirejs production-mode ui
add a comment |
In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode:
http://website.com/static/frontend/vendor/theme/en_US/jquery/ui.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/validate.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/jquery-storageapi.js
All the CSS and Fonts are loading properly in both production as well as developer mode.
Important:
I was not able to find these js files in developer mode when checked the network tab of inspector.
Can someone tell me where to look for errors?
Update 1:
I have checked and found that these js file errors are only found in default (pt_BR) Store. When I have checked it for other store(en_US) there were no errors and everything is working fine in this store.
Update 2:
When I have tried php bin/magento setup:static-content:deploy en_US pt_BR then these js file error occurred in both the stores.
P.S: There is nothing helpful in var logs.
multistore magento2.2.2 requirejs production-mode ui
I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.
– jafar pinjar
Aug 31 '18 at 17:05
@jafarpinjar Still default mode is same as developer. I need to enable production mode.
– Wasiq Shahrukh
Sep 3 '18 at 3:51
1
It is not possible to setdefaultMagento mode !productionordevelopper, a default one is just set by default when you install a Magento in the first time.
– PЯINCƏ
Sep 3 '18 at 7:45
add a comment |
In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode:
http://website.com/static/frontend/vendor/theme/en_US/jquery/ui.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/validate.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/jquery-storageapi.js
All the CSS and Fonts are loading properly in both production as well as developer mode.
Important:
I was not able to find these js files in developer mode when checked the network tab of inspector.
Can someone tell me where to look for errors?
Update 1:
I have checked and found that these js file errors are only found in default (pt_BR) Store. When I have checked it for other store(en_US) there were no errors and everything is working fine in this store.
Update 2:
When I have tried php bin/magento setup:static-content:deploy en_US pt_BR then these js file error occurred in both the stores.
P.S: There is nothing helpful in var logs.
multistore magento2.2.2 requirejs production-mode ui
In Magento 2.2.2 when setting website into production mode the following files are not loading, due to which my store switcher and other ui functions are not working in production mode:
http://website.com/static/frontend/vendor/theme/en_US/jquery/ui.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/validate.js
http://website.com/static/frontend/vendor/theme/en_US/jquery/jquery-storageapi.js
All the CSS and Fonts are loading properly in both production as well as developer mode.
Important:
I was not able to find these js files in developer mode when checked the network tab of inspector.
Can someone tell me where to look for errors?
Update 1:
I have checked and found that these js file errors are only found in default (pt_BR) Store. When I have checked it for other store(en_US) there were no errors and everything is working fine in this store.
Update 2:
When I have tried php bin/magento setup:static-content:deploy en_US pt_BR then these js file error occurred in both the stores.
P.S: There is nothing helpful in var logs.
multistore magento2.2.2 requirejs production-mode ui
multistore magento2.2.2 requirejs production-mode ui
edited Sep 4 '18 at 4:55
Wasiq Shahrukh
asked Aug 31 '18 at 13:24
Wasiq ShahrukhWasiq Shahrukh
3651223
3651223
I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.
– jafar pinjar
Aug 31 '18 at 17:05
@jafarpinjar Still default mode is same as developer. I need to enable production mode.
– Wasiq Shahrukh
Sep 3 '18 at 3:51
1
It is not possible to setdefaultMagento mode !productionordevelopper, a default one is just set by default when you install a Magento in the first time.
– PЯINCƏ
Sep 3 '18 at 7:45
add a comment |
I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.
– jafar pinjar
Aug 31 '18 at 17:05
@jafarpinjar Still default mode is same as developer. I need to enable production mode.
– Wasiq Shahrukh
Sep 3 '18 at 3:51
1
It is not possible to setdefaultMagento mode !productionordevelopper, a default one is just set by default when you install a Magento in the first time.
– PЯINCƏ
Sep 3 '18 at 7:45
I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.
– jafar pinjar
Aug 31 '18 at 17:05
I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.
– jafar pinjar
Aug 31 '18 at 17:05
@jafarpinjar Still default mode is same as developer. I need to enable production mode.
– Wasiq Shahrukh
Sep 3 '18 at 3:51
@jafarpinjar Still default mode is same as developer. I need to enable production mode.
– Wasiq Shahrukh
Sep 3 '18 at 3:51
1
1
It is not possible to set
default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.– PЯINCƏ
Sep 3 '18 at 7:45
It is not possible to set
default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.– PЯINCƏ
Sep 3 '18 at 7:45
add a comment |
2 Answers
2
active
oldest
votes
It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.
Try this:
Remove the content of the bellow folders except the
.htaccess
- var/cache
- var/page_cache
- var/view_preprocessed
- generated
- pub/static
php bin/magento setup:static-content:deploy -f
More informations in MAGENTO DEVDOCS
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
Try this :php bin/magento setup:static-content:deploy en_US -f
– PЯINCƏ
Sep 3 '18 at 9:19
Yes I have triedphp bin/magento setup:static-content:deploy en_US pt_BR -fbut still no change.
– Wasiq Shahrukh
Sep 3 '18 at 9:23
Your default config language isen_US?
– PЯINCƏ
Sep 3 '18 at 9:36
No, Default store language ispt_BRand I have just updated my question.
– Wasiq Shahrukh
Sep 3 '18 at 9:48
|
show 3 more comments
I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f240444%2fmagento-2-2-some-js-files-are-not-loading-in-production-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.
Try this:
Remove the content of the bellow folders except the
.htaccess
- var/cache
- var/page_cache
- var/view_preprocessed
- generated
- pub/static
php bin/magento setup:static-content:deploy -f
More informations in MAGENTO DEVDOCS
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
Try this :php bin/magento setup:static-content:deploy en_US -f
– PЯINCƏ
Sep 3 '18 at 9:19
Yes I have triedphp bin/magento setup:static-content:deploy en_US pt_BR -fbut still no change.
– Wasiq Shahrukh
Sep 3 '18 at 9:23
Your default config language isen_US?
– PЯINCƏ
Sep 3 '18 at 9:36
No, Default store language ispt_BRand I have just updated my question.
– Wasiq Shahrukh
Sep 3 '18 at 9:48
|
show 3 more comments
It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.
Try this:
Remove the content of the bellow folders except the
.htaccess
- var/cache
- var/page_cache
- var/view_preprocessed
- generated
- pub/static
php bin/magento setup:static-content:deploy -f
More informations in MAGENTO DEVDOCS
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
Try this :php bin/magento setup:static-content:deploy en_US -f
– PЯINCƏ
Sep 3 '18 at 9:19
Yes I have triedphp bin/magento setup:static-content:deploy en_US pt_BR -fbut still no change.
– Wasiq Shahrukh
Sep 3 '18 at 9:23
Your default config language isen_US?
– PЯINCƏ
Sep 3 '18 at 9:36
No, Default store language ispt_BRand I have just updated my question.
– Wasiq Shahrukh
Sep 3 '18 at 9:48
|
show 3 more comments
It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.
Try this:
Remove the content of the bellow folders except the
.htaccess
- var/cache
- var/page_cache
- var/view_preprocessed
- generated
- pub/static
php bin/magento setup:static-content:deploy -f
More informations in MAGENTO DEVDOCS
It is not possible to set default Magento mode ! production or developper, a default one is just set by default when you install a Magento in the first time.
Try this:
Remove the content of the bellow folders except the
.htaccess
- var/cache
- var/page_cache
- var/view_preprocessed
- generated
- pub/static
php bin/magento setup:static-content:deploy -f
More informations in MAGENTO DEVDOCS
answered Sep 3 '18 at 7:54
PЯINCƏPЯINCƏ
8,41431145
8,41431145
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
Try this :php bin/magento setup:static-content:deploy en_US -f
– PЯINCƏ
Sep 3 '18 at 9:19
Yes I have triedphp bin/magento setup:static-content:deploy en_US pt_BR -fbut still no change.
– Wasiq Shahrukh
Sep 3 '18 at 9:23
Your default config language isen_US?
– PЯINCƏ
Sep 3 '18 at 9:36
No, Default store language ispt_BRand I have just updated my question.
– Wasiq Shahrukh
Sep 3 '18 at 9:48
|
show 3 more comments
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
Try this :php bin/magento setup:static-content:deploy en_US -f
– PЯINCƏ
Sep 3 '18 at 9:19
Yes I have triedphp bin/magento setup:static-content:deploy en_US pt_BR -fbut still no change.
– Wasiq Shahrukh
Sep 3 '18 at 9:23
Your default config language isen_US?
– PЯINCƏ
Sep 3 '18 at 9:36
No, Default store language ispt_BRand I have just updated my question.
– Wasiq Shahrukh
Sep 3 '18 at 9:48
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
This still didn't worked for me. The 3 js files are still showing 404 in default store.
– Wasiq Shahrukh
Sep 3 '18 at 9:14
Try this :
php bin/magento setup:static-content:deploy en_US -f– PЯINCƏ
Sep 3 '18 at 9:19
Try this :
php bin/magento setup:static-content:deploy en_US -f– PЯINCƏ
Sep 3 '18 at 9:19
Yes I have tried
php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.– Wasiq Shahrukh
Sep 3 '18 at 9:23
Yes I have tried
php bin/magento setup:static-content:deploy en_US pt_BR -f but still no change.– Wasiq Shahrukh
Sep 3 '18 at 9:23
Your default config language is
en_US ?– PЯINCƏ
Sep 3 '18 at 9:36
Your default config language is
en_US ?– PЯINCƏ
Sep 3 '18 at 9:36
No, Default store language is
pt_BR and I have just updated my question.– Wasiq Shahrukh
Sep 3 '18 at 9:48
No, Default store language is
pt_BR and I have just updated my question.– Wasiq Shahrukh
Sep 3 '18 at 9:48
|
show 3 more comments
I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.
add a comment |
I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.
add a comment |
I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.
I have this problem too. en_GB is my default. Deploy static content for both en_US and en_GB and jquery.min & plugins.min both do not exist in pub/static.
answered 11 hours ago
Chris OliverChris Oliver
235
235
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f240444%2fmagento-2-2-some-js-files-are-not-loading-in-production-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I am also faced this issue and raised here, I am still looking for proper solution, but I solved it by setting mode as default, then everything works fine for me.
– jafar pinjar
Aug 31 '18 at 17:05
@jafarpinjar Still default mode is same as developer. I need to enable production mode.
– Wasiq Shahrukh
Sep 3 '18 at 3:51
1
It is not possible to set
defaultMagento mode !productionordevelopper, a default one is just set by default when you install a Magento in the first time.– PЯINCƏ
Sep 3 '18 at 7:45