Questions tagged [developer-mode]

Denotes question related to developer mode of magento 2

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Magento 2 Js Files only loading from correct url in developer mode

When the store is in developer mode everything works as it should. All the js files are properly linked in the network tab. It gets the file from: base_url/static/version1662993482/frontend/Smartwave/...
0 votes
0 answers
27 views

Problem With Loading Style In Version 2.4.3-p2 In Local

I Installed magento 2.4.3-p2 Open Source On Local With xampp Control Panel Magento 2 Works Well In Default Mode But When I Change Mode To developer Mode Style Doesn't Works Well And Show Me Below ...
  • 17
1 vote
1 answer
20 views

Cannot set developer mode on Magento using docker

I'm running the command bin/magento deploy:mode:set: developer inside a docker container. It's outputting the same error below for many files. The "/var/www/html/var/cache/mage--7/mage---...
0 votes
1 answer
27 views

How to add link in shopping method in frontend side in magento 2?

how to can add link in frontend side in Shipping Methods ,and that link can show in only one method not for all
0 votes
1 answer
49 views

Developer mode not working after upgrade to Magento 2.4.3

I've recently upgraded my local installation of Magento from 2.3 to 2.4.3. After doing this, several serious issues have arisen. I'm hoping somebody has experienced similar and found a way to solve ...
0 votes
0 answers
42 views

Why aren't factories/proxies/interceptors auto-generated when in Developer mode?

https://devdocs.magento.com/guides/v2.4/performance-best-practices/development-environment.html Do not run production commands in development mode: setup:di:compile generates auto-generated classes ...
  • 2,967
0 votes
0 answers
21 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 ...
0 votes
1 answer
124 views

Block is rendered, but toHtml() function is not called

Using Magento Commerce 2.3.5-p2. I'm changing the template of the layered navigation from a custom module like this: <referenceBlock name="catalog.navigation.renderer" ...
1 vote
2 answers
491 views

Element 'block', attribute 'display': The attribute 'display' is not allowed...... in magento 2

I am working with Magento 2.3.5 community edition. I am facing this issues Element 'block', attribute 'display': The attribute 'display' is not allowed in .. on magento frontend when I am in '...
  • 1,377
-1 votes
1 answer
575 views

Magento 2: Invalid block type: Magento\Checkout\Block\Cart\Shipping

2 exception(s): Exception #0 (Magento\Framework\Exception\LocalizedException): Invalid block type: Magento\Checkout\Block\Cart\Shipping Exception #1 (ReflectionException): Class EmergentMagento\...
0 votes
2 answers
33 views

Problem displaying custom favicon

I am encountering an issue when theming on Magento CLI 2.3.5-p1. I want to customize the favicon. During my first attempt I just drop a new icon on web folder and named it favicon.ico. It works but ...
0 votes
1 answer
214 views

Fatal error: Uncaught Error: Cannot instantiate abstract class Magento\Framework\Model\ResourceModel\AbstractResource in ....\Dynamic\Developer.php:50

I have faced below error after upgrade, deploy and compile commands. After logging from magento2 backend in dashboard it's throwing the error. here Developer mode is enabled. Fatal error: Uncaught ...
0 votes
2 answers
468 views

Magento 2.3 suddenly very slow on developer mode

I have been developing on a magento2 docker env (warden) environment for weeks with no problems. Development mainly on the frontend in developer mode, deactivating only the full_page, block_html and ...
  • 177
0 votes
2 answers
204 views

Magento 2.4.1 Developer Mode not working

i have installed Magento 2.4.1 via Docker and tried to change to developer mode. The problem is, that the developer option dont show up in the settings. I have tried: Setting Developer Mode in nginx ...
  • 113
0 votes
1 answer
79 views

How to add custom payment module development logs?

I am attempting to build a custom payment module but as far as I got I get the error message sh: -t not found when checking out a test order I saw this question but the link in the answer is broken, I ...
  • 113
0 votes
0 answers
23 views

Changing debug mode into magento 2.3 losses theme css content

My site was in production mode. i changed it to developer mode. i ran all the commands. Static content deploy command too. But site is looking weird now. Can you guys please suggest something. https://...
  • 720
0 votes
1 answer
57 views

Developer mode will not work

I upgrade to 2.3.4 but the composer failed on one module. After fixing this the developer site was missing the entire setup directory. I have copied this from the production site but now I cannot get ...
1 vote
1 answer
302 views

Magento 2: How to disable module programmatically on mode change to production?

I've created a custom module for developer mode only. So, I want to create functionality that disables module automatically when mode change from developer to production.
  • 101
0 votes
1 answer
116 views

Why I don't see any Magento projects in my Magento Cloud account?

I'm a new hired developer for a company that is using Magento CE as their CMS. I'm trying to set up a local development environment and it's telling me that I have to be authorized user on Magento ...
  • 117
1 vote
0 answers
237 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 ...
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-...
0 votes
1 answer
29 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 (...
  • 101
1 vote
1 answer
48 views

Do indexes work in developer mode?

Are index tables relevant when developer mode is on? If so which ones?
  • 178
0 votes
1 answer
50 views

Developer mode enable js merging

I searched for an answer, but I didn't find one. I like to enable js merging and compressing in Magento 2 developer mode. Is this possible? I enabled them in admin, but the merging is not working
1 vote
0 answers
568 views

Element 'referenceContainer': This element is not expected. Expected is one of ( action, arguments, block, container, referenceBlock, uiComponent )

I am getting this error on home page 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'referenceContainer': This element is not expected. Expected is one of ( ...
  • 706
1 vote
1 answer
134 views

Magento 2: developer mode breaks magento command line

Right after installing magento, (2.3.2), I run bin/magento deploy:mode:set developer to enable developer mode. I remember when I had done before without setting this flag, the instance worked fine. ...
  • 175
0 votes
1 answer
2k views

Magento 2 - unable to retrieve deployment of static files from the file system storeview

When I'm in production mode, if i run the command php bin magento setup: upgrade static files are generated only for the en_US language. While for the other store views, it_IT and es_ES I get ...
0 votes
2 answers
174 views

Magento 2 - Site not loading properly in Developer mode

I am working on M2 and I've set M2 developer mode. My site home page works fine but the other pages are not loading. They just show errors and warnings on inner pages. Screenshot:
1 vote
0 answers
551 views

Magento 2 Parent's theme styles are not loading in the child theme

I have create a child theme that extends from magento-luma theme by following the steps below: app/design/frontend/Company/parent/registration.php <?php \Magento\Framework\Component\...
0 votes
1 answer
84 views

Best way to work on Magento 2

We have dedicated server Magneto 2 and we don't have cPanel or Plesk interface. We have staging and Live websites. Please suggest what is the best way of working with Magneto 2. I feel Our ...
2 votes
1 answer
422 views

Magento2: Difference between Developer and Default mode?

What is the main difference between these two modes Default and Development. And why by-default Magento2 mode is default ?
0 votes
2 answers
90 views

Magento 2 changing from production to developer I get error Element 'remove': This element is not expected

Magento ver. 2.2.7 Template: Techno Themevast: https://themeforest.net/item/techno-store-electronic-magento-2-theme/22239747 In developer mode everything was working. I switched to production and it ...
  • 117
0 votes
1 answer
125 views

Magento 2.3.1 : Validation exception in developer mode

When switching from production mode to developer in Magento 2.3.1 the enclosed exception occurs. I have tried to find a solution for 2 days. From what I've read this is probably caused by a .xml file ...
1 vote
0 answers
22 views

I changed to developer mode, but i dont have developer options in backend PLEASE HELP

I have version 2.2.7 with nginx I changed from Production Mode to Developer Mode. But developer settings are not available. I cleaned the cache. I removed all folder with: sudo rm -rf pub/static ...
  • 11
5 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?
  • 113
0 votes
1 answer
193 views

Magento 2: Problem when enable developer mode

I have a problem when i enable developer mode: This is my default.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/...
4 votes
3 answers
1k views

Magento 2 developer mode doesn't generates Interceptors

If a class has plugins and the deploy mode is set to developer the ObjectManager is supposed to generate an Interceptor of the class as needed. That's what happens when running bin/magento setup:di:...
  • 1,988
1 vote
0 answers
271 views

Magento 2 Problem with arguments in di.xml

The problem is this: I have a module, which passes arguments from di.xml to a class. Deploy mode is a developer. When I make changes in any arbitrary module or install a new module, and subsequently ...
  • 43
1 vote
1 answer
45 views

When I switch the mode default to developer of magento2.2.3 then got this error Element 'count': This element is not expected

Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'count': This element is not expected. Expected is ( argument ). Line: 1077
0 votes
1 answer
309 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 ...
  • 1,805
2 votes
1 answer
1k views

how to add onclick method in magento2 admin custom module page?

my edit.php file in magento admin custom module $this->addButton( 'approve', [ 'label' => __('Approve'), 'onclick' => 'deleteConfirm('...
  • 1,047
0 votes
3 answers
2k views

Magento 2.3.0 does not change the language

I hope you can help me because no solution I find on the internet works. Change the user's language to Spanish And in the local configuration also to Spanish. Clean cache but I can not get it to be ...
  • 1
0 votes
0 answers
251 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
2 answers
263 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 ...
0 votes
0 answers
210 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
1 answer
777 views

What If I disable developer mode in magento 1.9

I want to know what will happen if I disable developer mode in magento 1.9 by setting in index.php file if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } to ...
3 votes
2 answers
525 views

turing back to developer-mode error magento2

I don't know how to fix this and I have an idea what might caused it. Here is what happened I went on production mode. On production mode everything works fine. But when I try to go back to developer ...
0 votes
1 answer
160 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
1 answer
56 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 ...
0 votes
2 answers
105 views

M2 can't activate developer mode

After activating developer mode the fronend an backend delivers a white page. Edit: I can switch to Production Mode but not back to Developer Mode. 1 exception(s): Exception #0 (Magento\Framework\...