cancel
Showing results for 
Search instead for 
Did you mean: 

production mode not working

production mode not working

Him
 i have 2 problom :
1)
I have tried to reprocedure the issue with production mode as you mentioned above in our end, however, all errors which we saw, are related to Luma theme. here're screenshot https://prnt.sc/limudf
2) on developer mode the error is indicating the problem with jquery cookie of Magento: https://prnt.sc/lio9yt
require-cookie.js:1 Failed to load resource: the server responded with a status of 409 ()
main.js:37 Error: Script error for: Magento_Cookie/js/require-cookie
http://requirejs.org/docs/errors.html#scripterror
    at makeError (d107af78e82a6e5e49c7f00b8396a7fe.js:16)
    at HTMLScriptElement.onScriptError (d107af78e82a6e5e49c7f00b8396a7fe.js:114)
 
5 REPLIES 5

Re: production mode not working

Hello @decornmore,

 

Please run below command in magento root directory

chmod -Rf 777 ./pub

--
If my answer is useful, please Accept as Solution & give Kudos

Re: production mode not working

The given URL and the commands for the full permission for the folder pub. This is we already set many time and confirmed it.

Re: production mode not working

GET https://babybeddingdesign.r.worldssl.net/pub/static/frontend/Smartwave/porto/en_US/Magento_Cookie/js/require-cookie.js net::ERR_ABORTED 404

main.js:37 Error: Script error for: Magento_Cookie/js/require-cookie
http://requirejs.org/docs/errors.html#scripterror
    at makeError (d107af78e82a6e5e49c7f00b8396a7fe.js:16)
    at HTMLScriptElement.onScriptError (d107af78e82a6e5e49c7f00b8396a7fe.js:114)

please help me solve this problem as I test it also on the default theme and I get the same error! magento is full of bugs. from the day, I move t Magento 2 I have the only problem. I am so sorry I got Magento 2!

 

 

Re: production mode not working

Hello @decornmore,

 

Please check this error 

GET https://babybeddingdesign.r.worldssl.net/pub/static/frontend/Smartwave/porto/en_US/Magento_Cookie/js/require-cookie.js net::ERR_ABORTED 404

Which indicates file isn't at that location so There will be an issue while generating. There is two issue for it. 

  1. Permission issue
  2. Ownership issue of file

 

Please fix above issue then issue will be resolved.

 

--
If my answer is useful, please Accept as Solution & give Kudos

 

Re: production mode not working


@gelanivishal wrote:

Hello @decornmore,

 

Please check this error 

GET https://babybeddingdesign.r.worldssl.net/pub/static/frontend/Smartwave/porto/en_US/Magento_Cookie/js/require-cookie.js net::ERR_ABORTED 404

Which indicates file isn't at that location so There will be an issue while generating. There is two issue for it. 

  1. Permission issue
  2. Ownership issue of file

 

Please fix above issue then issue will be resolved.

 

--
If my answer is useful, please Accept as Solution & give Kudos

 


i try but not solve the problem.