Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [production-mode]

The tag has no usage guidance.

0
votes
1answer
25 views

Magento2 production mode error magento2.1

I got below error on my category pages and product pages after setting minify html to yes: Parse error: syntax error, unexpected ‘<‘, expecting end of file” magento2 production mode What should ...
0
votes
1answer
35 views

Magento 2 - Command returned non-zero exit code: when try to change to production mode

when i run php bin/magento deploy:mode:set production or php -d memory_limit=768M bin/magento deploy:mode:set production I received the following error, how can i fix it? Config "dev/debug/...
1
vote
0answers
20 views

Product page and category page disappeared

Developed on developer mode and everything is OK, just set production mode, home page and admin panel is OK but category page completely disappeared and shows a blank page and also product page is ...
0
votes
0answers
17 views

JS Errors after changing deploy mode developer to production

I simply change my application mode form developer to production. php bin/magento deploy:mode:set production Result- Deployment of static content complete Disabling maintenance mode Enabled ...
4
votes
2answers
171 views

Magento 2 Editing phtml files in Production Mode

I have a Magento 2 store in "production mode" My question is, If I want to change a phtml file, do I need to change to developer mode or is it enough to execute setup:static-content:deploy -f?
0
votes
0answers
35 views

Disabling maintenance mode Command returned non-zero exit code

I am a newbie in magneto I made a Magento custom extension but while uploading this into the Magento Marketplace, I am facing an issue it's Test Fail, Below is the test report Environment: PHP 7.1....
0
votes
1answer
25 views

Magento 2.3 : How to add code that will throw an error when developer mode is on not on Production mode

I would like to add code in try and catch block that will throw an error in case of developer mode. If deployment mode founds developer mode then it will throw an error in try and catch block. If ...
0
votes
0answers
14 views

Orders are not inserted in the sales_flat_order and sales_flat_invoice tables Magento 1.9

My website is already in production mode and worked fine for many days. Till last week everything is working fine. Suddenly, from 5 days orders are not showing up in the backend. When I checked the ...
0
votes
0answers
22 views

ConfigLoader\Compiled:load() performance issue in cron area

I have experiencing for a long time some performance issues related to ConfigLoader\Compiled:load() method that is called when Cron command is ran via bin/magento. Preconditions: Magento 2.2.6 ...
0
votes
0answers
55 views

HTTP 500 error after switching from developer mode to production mode

After switching to production mode, website is giving http 500 error. Admin side is opening but no pictures. What should i do?
0
votes
1answer
65 views

Cannot set Magento2 to Production Mode

I tried to put my website into Production mode. For this, I used the following command on SSH but it get stuck. php bin/magento deploy:mode:set production Please refer to the following screenshot.
0
votes
2answers
58 views

Do I have to be in developer mode?

How to add custom css file in magento2.2.6? I am in Production mode, using Luma Magento 2.2.6. Do I have to be in Developer mode to make the solution in the above link work? Before switching to ...
1
vote
0answers
49 views

Magento 2 how to set permission in production mode

I have successfully completed all issues in developer mode, and now I moved to production mode, every thing is working fine but when I am try to cache clear from admin panel , frontend permission are ...
0
votes
0answers
13 views

Set Default “Jobs” for setting developer mode

I noticed recently the "jobs" parameter for the CLI command bin/magento deploy:static:content. Setting this to 4 for me seems to really speed up the time this command takes however when setting ...
0
votes
0answers
56 views

Magento 2 shell shows production mode, but still in developer mode

I have a problem turning the webshop into production mode. When I change mode to production all seems fine and production mode is enabled without any problem in ssh. [admin@server public_html]$ php ...
0
votes
1answer
51 views

Errors just switching between dev and prod mode

Magento CE 2.2.6 PHP 7.1.24 in production mode, frontend was working with just few bugs but i have a spam of [2018-11-27 10:02:57] main.CRITICAL: The element 'header-wrapper' already has a child with ...
0
votes
2answers
37 views

Magento 2: Deploy Production mode with fresh install

I am working with MAGE2.2.6. It is a fresh install. Before I opened magento for the first time. I changed from default to Production mode, in the etc.php file. I also cleared my var/cash and var/...
0
votes
1answer
32 views

Developer to Production Cashe

I have been using MAGE for about 2 months now and I am a Neophyte to front and back end. I am looking for a little guidance in changing form "developer" to "production" mode. I don't use the CL, I use ...
2
votes
1answer
101 views

Magento 2: publish changes from development env to production

I have two environments for my store developed in Magento CE 2.2.5, one is for development use (where I run the store in developer mode), the other is the production environment (where the I use the ...
0
votes
0answers
94 views

getting issue in deploy after minify js & css in Magento 2.2.4

I have enabled minify js & css then run deploy command but getting error messgae during deploy: #0 /var/www/vhosts/example.com/httpdocs/vendor/tedivm/jshrink/src/JShrink/Minifier.php(247): ...
1
vote
1answer
56 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
251 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
58 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
57 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?
1
vote
3answers
181 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
63 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
21 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
148 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/...
2
votes
1answer
979 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
54 views

magento2.2.3 The attribute 'load_last' is not allowed

I have a Magento 2.2.3 based website and it was in default mode while I was building it and had no issues. I now changed to production mode recompiled, deployed and see this error message: ...
0
votes
0answers
100 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:...
0
votes
0answers
88 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
118 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
176 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
82 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
3k 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
3answers
702 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 ...
1
vote
2answers
1k 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
405 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
453 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
263 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
58 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
53 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
241 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....
1
vote
1answer
150 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
81 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
3
votes
2answers
109 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
392 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
755 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 ...
0
votes
1answer
533 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 ...