Questions tagged [production-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

Element 'item': This element is not expected. Expected is ( argument ) when in developer mode

I am getting this error: Element 'item': This element is not expected. Expected is ( argument ) when run command like: php bin/magento cache:flush. I try to get back production mode but still get the ...
it's me's user avatar
0 votes
2 answers
60 views

Maintance Mode: How to show the content of my 503.phtml page istead of exceptions

1 exception(s): Exception #0 (Exception): Unable to proceed: the maintenance mode is enabled. Exception #0 (Exception): Unable to proceed: the maintenance mode is enabled. <pre>#1 Magento\...
Abdullah Orabi's user avatar
0 votes
2 answers
74 views

What do I do with these Test modules being populated in a Live Production Environment?

I always thought that if I ran composer install --no-dev that test modules in the Dev directory would not be populated but after finding a payment with that processed with "fake payment method&...
user3685048's user avatar
2 votes
2 answers
555 views

Magento Cloud filesystem is readonly

I'm working on a Magento Cloud project after a other developers left it and I'm having a hard time figuring out the development cycle. I can change files on a branch and commit the changes, causing a ...
gmb11's user avatar
  • 21
0 votes
1 answer
548 views

Magento 2.4.3 not generating *.min.js files

i am working a magento 2.4.3 the config (dev/js/minify_files) is set to 1. When i try to run the command bin/magento setup:static-content:deploy The script exit with the following error Error happened ...
ibrar ahmad's user avatar
0 votes
1 answer
239 views

magento 2 admin showing error but no message

I have recently switched my magento 2.4.3-p1 instance to production mode but now it is showing an error in admin panel but with no text. No js error in console no error in log files. Do anyone have ...
Charanjeet Singh's user avatar
0 votes
0 answers
38 views

Magento 2.4.3 - site becomes unstable / unresponsive when in production mode

Have recently updated site from M2.3.5 to M2.4.3 While in developer mode, the site is responsive and stable. If I switch to production mode, then after a period of time it becomes unresponsive and ...
freestate's user avatar
0 votes
1 answer
1k views

Magento 2.4: How to add the locale for a website using config.php?

Our Magento website is hosted on Commerce cloud and I have created the multi website but since the commerce cloud is in production mode, I'm not able to update the locale using admin settings. I get ...
Tim's user avatar
  • 13
0 votes
2 answers
68 views

Homepage not working on production

Everything works fine in development mode. But when I switch to production everything except homepage works. The only thing shown is this: An error has happened during the application run. See ...
Mr. Kovalski's user avatar
0 votes
1 answer
936 views

Update files when in production mode

When the Magento2 site is in production mode and I want to modify some html/phtml/php/js files how can I update the edited files while remaining in production mode? For the moment I have done this: $ ...
Jackom's user avatar
  • 473
0 votes
1 answer
352 views

Magento 2 Production mode still showing Developer Tab

On one of my Magento 2 websites I noticed while in Production mode, the Developer tab is still showing in Stores > Settings -> Configuration > Advanced. The store seems to be running fine but ...
Paul Donnelly's user avatar
0 votes
1 answer
641 views

Change js file in production mode

I changed this file app/design/frontend/VENDOR/THEME/web/mage/validation.js But changes are not reflected; I'm in production mode I deployed static content with bin/magento setup:static-content:...
tarek fellah's user avatar
2 votes
1 answer
86 views

It is possible to deploy only one file using deploy command?

In production mode when I change the design of some particular block or page then I am only working on one or two files like js and CSS. To apply that one change I need to deploy the whole theme. Can ...
Bhavesh Prajapati's user avatar
3 votes
1 answer
3k views

How to enable asynchronous indexing in production mode?

I want to enable the asynchronous indexing, but the option is inside the Admin menu below, which is available just in developer mode. Stores > Settings > Configuration > Advanced > ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
532 views

Magento 2.3 requirejs-config.js is empty on production mode

After setting Magento 2 to production mode, Magento generated all the static files in pub/static/frontend/Vendor/theme/en_US except for the requirejs-config.min.js file, the file exists but its empty ...
Kames Guen's user avatar
0 votes
3 answers
324 views

Magento 2.3.4 - Best practice to do update magento files and modules without affect the website in Production Mode

If i update any modules or disable extensions my website showing an error message, i do following all the commands then coming back to normal, rm -rf var/di/* var/generation/* var/cache/* var/log/* ...
zus's user avatar
  • 155
2 votes
1 answer
1k views

Magento CLI 2.4.0 - ErrorHandler is turning PHP errors into exceptions in production mode

Preface: I prefer to develop in developer mode, have Magento catch all PHP E_NOTICE|E_WARNING|etc. errors, throw exception on them, and get these issues cleaned up before committing my code. The issue ...
Darren Felton's user avatar
1 vote
1 answer
140 views

Magento Command Line steps for updating code files on server in Production

What are the steps to add a module on Production Store Site for Magento. Do I switch to maintenance mode from Production then run the php bin/magento setup:upgrade and other commands then turn off ...
Jonathan's user avatar
  • 113
0 votes
3 answers
322 views

Magento 2.4 Production mode issue

After upgrade Magento 2.3 to 2.4 and it gives me below error. main.CRITICAL: ParseError: syntax error, unexpected end of file in /var/www/html/magento24/var/view_preprocessed/pub/static/vendor/magento/...
MK Patel's user avatar
  • 422
0 votes
1 answer
747 views

Magento 2 - Can't compile theme in production mode anymore | Unable to retrieve deployment version of static files from the file system

I get this error when trying to execute grunt refresh or grunt exec:all. [2020-08-17 05:25:31] report.CRITICAL: Can not load static content version. [] [] [2020-08-17 05:25:31] report.ERROR: Unable to ...
Black's user avatar
  • 3,280
0 votes
3 answers
201 views

Magento 2.3.2 compilation error

I have a website in Magento 2.3.2. This morning the website was in production mode. I added a custom module (I don't think is related to this problem) run bin/magento setup:upgrade, bin/magento c:f, ...
fmineo's user avatar
  • 219
1 vote
3 answers
1k views

Magento 2: Showing error on production mode

I'm facing an issue like errors are show on PRODUCTION mode, how can this be possible. Anyone have any idea how can this be resolved?
Mandar Parbate's user avatar
0 votes
1 answer
467 views

How to detect if the store is using developer mode via browser?

I usually do some store audits even without ssh access, and I'd like to be more precise checking if the store is using developer mode just browsing through the browser console. How could I check if ...
Rafael Corrêa Gomes's user avatar
1 vote
2 answers
3k views

Check if Magento is running in production mode

I am creating a custom store implementation and I need to check if the store is in production mode or not via code. What is the fastest way to achieve this?
Alfredo Lanzetta's user avatar
1 vote
1 answer
190 views

Magento 2.2.5 Product details blank page while switching to Production mode

My magento site when setting to Prod mode displays blank Product detail page. The page is perfect in developer mode though. Screenshot: https://prnt.sc/qmt3db I ran the following while changing the ...
abhisekG's user avatar
  • 121
2 votes
3 answers
1k views

Magento 2: Command returned non-zero exit code during submission on marketplace

I have submitted a module to the marketplace, I have tested it by all cases. I have switched to production mode but I am not getting any errors. However, I am getting a failure on submission with the ...
SyncTechnolab's user avatar
1 vote
0 answers
399 views

Swagger redirecting to login when going from Production mode to Developer

When I tried to set my production mode instance to developer mode I can not get swagger to load. If I go to mystore.com/swagger it will redirect to the login page. Deploy mode is set to developer. I ...
Logic4Life's user avatar
1 vote
1 answer
47 views

js files are automatically deleted - adminhtml/web/js/components/use-parent-settings

In my M 2.2.6 I can not enter the Category section of dashboard, the spining is turn around. When I check the console, some of JS has 404 error In - adminhtml/web/js/components/use-parent-...
ozan yeni's user avatar
0 votes
1 answer
30 views

Assigning different BASE_URL for developer mode only

I that possible? I want to do this to set up a configuration like this: https://mystore.mydomain.com/ for production (with Varnish cache) https://mystore.mydomain.com:5001/ for development (...
W.M.'s user avatar
  • 101
0 votes
3 answers
2k views

Magento 2.3.2 Production mode not working

i have run production command but not working php bin/magento deploy:mode:set production when I run deploy command php bin/magento setup:static-content:deploy -f and Below type Error showing ...
Rakesh Donga's user avatar
  • 5,334
1 vote
0 answers
59 views

Magento 2.3: cache issue - changes are uploading with long delay

We have got installed Magento 2.3 on our production server. Whenever we do changes to css file or other Magento files it takes ages to reflect the page on the live website. The brutal method to get ...
senga777's user avatar
3 votes
0 answers
175 views

After Production mode and JS minification, 404 error for all JS files

I have enabled JS minification and Merging while in developer mode. Then i enabled production mode. Cleared cache and ran below commands: php bin/magento setup:upgrade php bin/magento indexer:...
Khushbu's user avatar
  • 825
0 votes
1 answer
193 views

Issue when setting mode from Developer to Production

My Magento 2 webshop (oplader.com) is having CSS/JS issues when setting the mode to production. It gives the following error in the console: The resource from “https://www.oplader.com/%3Clink%20href=...
Hugo Gerritsen's user avatar
-1 votes
2 answers
3k views

Set production mode magento 2.3

I want to switch to production mode but I can not find information about the exact commands that I have to use. I know that I must use this command: php bin/magento deploy:mode:set production But, ...
Despotars's user avatar
  • 475
0 votes
2 answers
366 views

During setup:di:compile getting error:- Source class "\PHPExcel_IO" for "PHPExcel_IOFactory" generation does not exist

When i'm running "setup:di:compile" or setting mode to "production" from "default" then getting following error:- Please help me to resolve this problem immediately. ------Update@Start--------------...
Wakar Ahamad's user avatar
0 votes
2 answers
881 views

deploy:mode:set production taking too much time

I did a php bin/magento deploy:mode:set production on magento 2 snappy 4000 vps, it's taking about 3h and still not done. Is it normal? 4 GB RAM 2 Cores CPU 165 GB Disk Space 2 TB Bandwidth Aren't ...
Lynob's user avatar
  • 805
0 votes
0 answers
313 views

Magento 2.3.0 After change production mode minify js and minify css not working it admin side

I have tried all commands on our Magento 2.3.0 website but I am getting issue after changing to production mode. So if anyone is facing this type of error, please reply to me the proper solution. ...
Rv Singh's user avatar
  • 1,617
0 votes
2 answers
741 views

Magento2.3.0 :When merge and minify js and css after set production mode not working my admin panel and frontend css lacking

I am using Magento2.3.0 community version When merge and minify js and css after set production mode not working my admin panel and front end css lacking if any one know what is actual issue reply me ...
Rv Singh's user avatar
  • 1,617
3 votes
0 answers
301 views

Magento 2 caches keep disabling themselves [duplicate]

During deployments we sometimes have the problem, that all the caches disable themselves, for no apparent reason. During deployment, we basically execute the following commands: bin/magento ...
fritzmg's user avatar
  • 747
0 votes
1 answer
167 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 ...
MGPM's user avatar
  • 741
1 vote
1 answer
1k 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/...
Mage Explorer's user avatar
1 vote
0 answers
54 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 ...
MGPM's user avatar
  • 741
6 votes
2 answers
2k 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?
Make UP's user avatar
  • 123
0 votes
0 answers
256 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....
user1426897's user avatar
0 votes
1 answer
402 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 ...
Softec's user avatar
  • 2,065
0 votes
0 answers
276 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?
Ümit Tengiz's user avatar
0 votes
1 answer
873 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.
kaizen's user avatar
  • 103
0 votes
2 answers
372 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 ...
Starkemp315's user avatar
1 vote
0 answers
105 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 ...
Chala Chalapathi's user avatar
0 votes
0 answers
277 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 ...
M2Newbie's user avatar