Questions tagged [production-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
74 views

Magento 2.2.5 : Runtime Exception during setup:di:compile

The issue started when I was attempting to enter production mode with php bin/magento deploy:mode:set production Upon researching the issue, I attempted to see if the error gave more information ...
0
votes
2answers
764 views

Magento 2.2 some JS files are not loading in production mode

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://...
1
vote
1answer
117 views

What are the correct file permission settings for magento 2.2 on a single-user production environment?

I am setting up a Magento 2.2.5 instance on a production environment (single-user / shared hosting). When it comes to file permissions, I found two documentation pages: https://devdocs.magento.com/...
0
votes
0answers
74 views

Site is not opening after setting production mode Magento2

I set mode as production, after that my website gone down, Is there any setting to be done? All css and js are showing 504 gateway error. What is the reason for it?
2
votes
3answers
1k views

Magento 2.1 not loading some js and css in production mode

I am working on mageno 2.1.10 and I have tried setting mod to production from development by using the following solutions: solution 1. php bin/magento deploy:mod:set production And it gave me the ...
2
votes
0answers
182 views

Ignore specific path when running setup:di:compile in Magento 2.2.2

Is there a additional command to add to setup:di:compile command to ignore a specific path compilation? In Magento 2 this could be done with additional parameter --exclude-pattern, but in Magento 2.2 ...
1
vote
0answers
27 views

Magento2.1.8 ltrim() error broke production site

Live production site went down suddenly. I created a custom cron job to enable/disable products in the site and the job ran successfully. 3 people placed order and suddenly the Live site went down and ...
0
votes
1answer
310 views

JS doesn't load when change mode from development to production in Magento 2.1.9

Website working properly in developer mode when I am changing mode from development to production. JS doesn't load after change mode of production. Below Error: GET https://example.com/pub/static/...
5
votes
1answer
4k views

Magento 2: js-translation.json 404 (Not Found) on production mode

After switching to the production mode, an error appeared in the console : pub/static/adminhtml/Magento/backend/en_US/js-translation.json 404 (Not Found) pub/static/adminhtml/Magento/backend/en_US/js-...
0
votes
0answers
223 views

Magento 2 custom theme setup:static-content:deploy en_GB on production mode does not work!

I've been doing this for while and having to end up either going to developer mode then production to push e.g css changes or run setup:upgrade then setup:static-content:deploy en_GB && cache:...
1
vote
1answer
246 views

Magento 2 Autoprefixer in production mode

Magento 2 comes with a preinstalled autoprefixer for Grunt. But is it possible to use the autoprefixer in the production mode too? I have a lot of CSS which does not work without the vendor prefixes ...
1
vote
1answer
353 views

Change to Production mode the Theme something error

Change to Production mode the Theme something error but developer mode is working , how can i do? please help! thank you! my command: php bin/magento deploy:mode:set production -s --skip-compilation ...
3
votes
0answers
465 views

Production mode won't geneate files inside var/view_processed folder

When I open the frontend and backend I always got an error like this: "Warning: include(/var/www/test.com/var/view_preprocessed/html/vendor/magento/module-theme/view/base/templates/root.phtml): ...
0
votes
1answer
126 views

Custom Theme is ignored after move to production server [duplicate]

I recently moved my Magento 2.2.3 site to production server (different server, url and path). However, the custom theme seems to be ignored. If I enter the site, it shows the following error in the ...
2
votes
2answers
4k views

Refused to execute script from '<URL>' after moving from dev to production

When moved to production, with enabled js file bundling, i start to get these types of errors in browser console: Refused to execute script from 'http://ultra.com/static/frontend/RocketTeam/ultra/...
2
votes
2answers
2k views

Magento2: What is the reason why I can't reindex in Production?

I wonder why Magento 2 disable reindex in Admin GUI area when production mode is enabled. Every time our clients uploaded new catalog products from import, we need to reindex via command line. This ...
3
votes
2answers
3k views

Magento 2.2 set/Deploy Production mode stuck at 'Static content deployment'

I have configured my magento 2.2.3 in server and checked the mode. It was "default". Then I tried to change the mode to production with this command, php bin/magento deploy:mode:set production After ...
1
vote
0answers
667 views

Not able to set Magento 2.2.2 to production mode

I am done with all the work of my website but now when I try to set it to production mode, it abruptly terminates in shell without giving any error details in log file. At least I was not able to ...
0
votes
3answers
785 views

Magento 2 production mode not set

In Magento 2, when I went to change my store mode from Developer to Production from cmd(putty), it will return one error message Command return non-zero exit code : So how can I fixed it and if ...
0
votes
2answers
554 views

Magento2 css images deploy static files language

I'm trying to customize a theme with a child theme. When I add a new class in the css with background image it works like a charm in development both EN and FR (my 2 languages). I use the setup:static-...
0
votes
1answer
63 views

When I switch from Developer Mode to Production my all of my css doesnt load

When I switch from Developer Mode to Production my all of my css doesnt load. It looks as if its only loading mobile menus.
1
vote
0answers
104 views

How to debug error “Unable to get content for …”?

How to find error in this file? I can't find error and fix it. I has moved to production mode and merge all js/css file.
0
votes
0answers
365 views

Magento2: Error when change developer mode to production (Magento 2.1.7)

D:\xampp\htdocs\site> php bin/magento deploy:mode:set production Enabled maintenance mode Starting compilation Compilation was started. %message% 0/7 [>---------------------------] 0% 1 sec 44....
2
votes
1answer
349 views

Magento 2 styling issues after switch from default to production mode

I thought I should switch to production mode from default mode as I got closer to launching my site. As soon as I did that, the formatting of my front-end and admin section got really messed up. The ...
0
votes
1answer
99 views

Problem after I changed developer mode

after I change from default to developer mode my homepage is look like this what is my mistake ? please help me
2
votes
2answers
153 views

Is there anything wrong with keeping Magento 2 in Developer Mode?

Anytime I switch to production mode, the system does not display the product images on the product pages. The wheel just keeps rotating. This only happens in production mode. I have compiled, flushed, ...
3
votes
0answers
470 views

Production-mode to developer-mode error

After the development of Magento 2 store, I push my site on production mode and perform all the speedup tweak's like merge JS/CSS etc.. After this, my site is working very well without any JavaScript ...
0
votes
2answers
1k views

Magento 2 error when run php bin/magento setup:di:compile

I am using magento 2.1.5 when i change developer to production mode got the error like this Enabled maintenance mode Starting compilation Something went wrong while compiling generated code. See ...
2
votes
1answer
707 views

Magento won't create minified JS files

I switched my Site to production mode and enabled JavaScript minification, bundling and concatenating in the backend, expecting Magento to correctly create the .min.js files - It won't, though. First ...
2
votes
0answers
180 views

Magento 2 : New Order Email Template CSS Not Working in Production Mode

I am facing issue in sales new order email template. I am working with my custom theme. Problem is there, new order email template CSS working in developer mode correctly but same template not working ...
2
votes
0answers
151 views

Magento 2 from developer to production mode e-mail / mail

Magento 2.1.2 If i change from developer to production mode the order email layout is little confused. Can help me somebody to fix that? developer mode: production mode:
0
votes
1answer
66 views

Permission file error when save options in admin panel

I have a problem with the Magento administrator, when I try to save any changes that are inside Content > Settings or Content > Blocks I get the following error and could not correct it. I ...
2
votes
2answers
517 views

M2 – Mixed up languages in production mode

Site is a clean Magento 2.1.5 install. It’s a multistore setup with 4 languages: Dutch, French, German and English. Products are imported via csv. All working smoothly. Running my site in developer ...
3
votes
1answer
7k views

Problem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:

I have a Magento 2 store which throws an error when entering production mode. bin/magento deploy:mode:set production Runs most the way until hitting deploy static content: Something went wrong ...
1
vote
2answers
973 views

CSS and JS files not loading in Production mode

I am changing my site to Production mode but CSS,JS is not loading after changing to production mode. Group product has very odd issue. Display in Developer mode but not in Production mode.
1
vote
3answers
1k views

Production mode is not working

Changing site to production mode display below error on command terminal in (red color): Enabled maintenance mode Starting compilation Compilation was started. ..... ..... Generated code and ...
0
votes
1answer
404 views

Warning in production mode stops execution

I'm facing a weird issue. I had to override the Magento_contact Post Controller. Just adding a field on the contact form and the redirect after form is submitted, something easy, and all goes okay on ...
7
votes
1answer
19k views

How to switch developer mode to production mode in magento 2? [duplicate]

When I run:sudo php bin/magento deploy:mode:set production Then i received Command returned non-zero exit code: /usr/bin/php7.0 -f /var/www/html/magento/bin/magento setup:di:compile
1
vote
2answers
1k views

The configuration parameter “componentType” is a required for “swatch_image” component

I get a report error when I try to edit my theme configuration in "Content -> Design -> Configuration When I click on Edit over my Theme I See a error sended to Report, and in teh report the follow ...
12
votes
1answer
10k views

Magento 2.x PHP memory_limit requirements

I noticed that Magento 2.1 manual recommends memory_limit=2G in php.ini. That is a crazy amount of memory, isn't that memory allowed per HTTP request? I doubt there is any hosting provider that ...
0
votes
0answers
130 views

Can we set production mode from localhost in Magento 2

I am trying to set production Mode from my localhost, but it is throwing error. Can we set Production Mode from localhost? and let us know the precautions before setting the production mode?
1
vote
1answer
968 views

magento2 developer mode issue

In Magento 2 after clearing all files: Remove pub/static Remove var/cache Remove var/composer_home Remove var/generation Remove var/page_cache Remove var/view_preprocessed when enabling developer ...
1
vote
1answer
381 views

I am getting error while changing developer mode to production mode in magento 2

The detail of error is below: Enabled maintenance mode Starting compilation Something went wrong while compiling generated code. See the error log for details. Command returned non-zero ...
12
votes
1answer
3k views

Get Magento 2 mode programatically

What's the best way to get the current mode Magento 2 is running with code? In my case it's for a headless Magento, but I can see a number of cases where this might be required.
2
votes
2answers
893 views

Magento 2: Need to Upload Module Without Disturbing Live Site

My Magento 2 Website is already live. In local, i have developed module which contains JS/CSS/Email/etc... Need to upload on Live. But LIVE website should not affect, as there are So many users ...
0
votes
1answer
999 views

M2 - Cannot change deploy mode to Production

I am trying to set the deploy mode on an M2 instance to Production from Developer. On my local environment however I keep getting the error message: Command returned non-zero exit code: '/...
8
votes
2answers
11k views

Magento 2 : What are difference between developer and production mode?

What are the different facility we have between developer and production mode of Magento 2.x ?
16
votes
2answers
18k views

Magento 2 error: We're sorry, an error has occurred while generating this email

I am getting below error in magento 2 local system. We're sorry, an error has occurred while generating this email.

1
2