Magento 2 Problem with arguments in di.xml Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?When exactly to use php bin/magento setup:upgradeMagento 2 setup:upgrade to update modules breaks layout and have to redeployM2 - Cannot change deploy mode to ProductionMagento 2 di.xml merging with argumentsProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:Module database install debugging in Magento 2.2Fatal error after upgrade from 2.1.8 to 2.2.0Magento 2.3 Static Content Deployment problem & missing css fileMagento 2: Errors displaying on setting devolper modeconnection “developer” is not defined

Noise in Eigenvalues plot

Improvising over quartal voicings

Any stored/leased 737s that could substitute for grounded MAXs?

What helicopter has the most rotor blades?

The test team as an enemy of development? And how can this be avoided?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

Problem with display of presentation

Fit odd number of triplets in a measure?

Why does BitLocker not use RSA?

.bashrc alias for a command with fixed second parameter

How to make an animal which can only breed for a certain number of generations?

Why are current probes so expensive?

Dinosaur Word Search, Letter Solve, and Unscramble

Did John Wesley plagiarize Matthew Henry...?

How does TikZ render an arc?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

What does Sonny Burch mean by, "S.H.I.E.L.D. and HYDRA don't even exist anymore"?

How to make triangles with rounded sides and corners? (squircle with 3 sides)

How do you cope with tons of web fonts when copying and pasting from web pages?

Keep at all times, the minus sign above aligned with minus sign below

Is there a spell that can create a permanent fire?

New Order #6: Easter Egg

How can I list files in reverse time order by a command and pass them as arguments to another command?

By what mechanism was the 2017 UK General Election called?



Magento 2 Problem with arguments in di.xml



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?When exactly to use php bin/magento setup:upgradeMagento 2 setup:upgrade to update modules breaks layout and have to redeployM2 - Cannot change deploy mode to ProductionMagento 2 di.xml merging with argumentsProblem Setting Production Mode - Deploying Static Content - Command returned non-zero exit code:Module database install debugging in Magento 2.2Fatal error after upgrade from 2.1.8 to 2.2.0Magento 2.3 Static Content Deployment problem & missing css fileMagento 2: Errors displaying on setting devolper modeconnection “developer” is not defined



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















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 run bin/magento setup:upgrade. Then when I open the front page, which uses this module, I get the error for this module:




(BadMethodCallException): Missing required argument




I was lead to believe that developer mode setup:di:compile is not necessary, but I'd like to have this confirmed. It seems to me a little strange, cause unless I run setup:di:compile this error keeps propping up.










share|improve this question
























  • " lead to believe that in developermode setup:di:compile is not necessary" this is true. you might have to delete the "generated" folder tho.

    – Philipp Sander
    Apr 17 at 14:17












  • why do you think "bin/magento setup:upgrade" will solve your problem?

    – Philipp Sander
    Apr 17 at 14:17











  • Can you please share the code of di.xml and respencted class here.

    – Dhiren Vasoya
    Apr 17 at 14:24

















1















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 run bin/magento setup:upgrade. Then when I open the front page, which uses this module, I get the error for this module:




(BadMethodCallException): Missing required argument




I was lead to believe that developer mode setup:di:compile is not necessary, but I'd like to have this confirmed. It seems to me a little strange, cause unless I run setup:di:compile this error keeps propping up.










share|improve this question
























  • " lead to believe that in developermode setup:di:compile is not necessary" this is true. you might have to delete the "generated" folder tho.

    – Philipp Sander
    Apr 17 at 14:17












  • why do you think "bin/magento setup:upgrade" will solve your problem?

    – Philipp Sander
    Apr 17 at 14:17











  • Can you please share the code of di.xml and respencted class here.

    – Dhiren Vasoya
    Apr 17 at 14:24













1












1








1








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 run bin/magento setup:upgrade. Then when I open the front page, which uses this module, I get the error for this module:




(BadMethodCallException): Missing required argument




I was lead to believe that developer mode setup:di:compile is not necessary, but I'd like to have this confirmed. It seems to me a little strange, cause unless I run setup:di:compile this error keeps propping up.










share|improve this question
















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 run bin/magento setup:upgrade. Then when I open the front page, which uses this module, I get the error for this module:




(BadMethodCallException): Missing required argument




I was lead to believe that developer mode setup:di:compile is not necessary, but I'd like to have this confirmed. It seems to me a little strange, cause unless I run setup:di:compile this error keeps propping up.







magento2 exception developer-mode setup-di-compile






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 17 at 15:37









ARUNPRABAKARAN M

524114




524114










asked Apr 17 at 14:07









Jo-AnneJo-Anne

1314




1314












  • " lead to believe that in developermode setup:di:compile is not necessary" this is true. you might have to delete the "generated" folder tho.

    – Philipp Sander
    Apr 17 at 14:17












  • why do you think "bin/magento setup:upgrade" will solve your problem?

    – Philipp Sander
    Apr 17 at 14:17











  • Can you please share the code of di.xml and respencted class here.

    – Dhiren Vasoya
    Apr 17 at 14:24

















  • " lead to believe that in developermode setup:di:compile is not necessary" this is true. you might have to delete the "generated" folder tho.

    – Philipp Sander
    Apr 17 at 14:17












  • why do you think "bin/magento setup:upgrade" will solve your problem?

    – Philipp Sander
    Apr 17 at 14:17











  • Can you please share the code of di.xml and respencted class here.

    – Dhiren Vasoya
    Apr 17 at 14:24
















" lead to believe that in developermode setup:di:compile is not necessary" this is true. you might have to delete the "generated" folder tho.

– Philipp Sander
Apr 17 at 14:17






" lead to believe that in developermode setup:di:compile is not necessary" this is true. you might have to delete the "generated" folder tho.

– Philipp Sander
Apr 17 at 14:17














why do you think "bin/magento setup:upgrade" will solve your problem?

– Philipp Sander
Apr 17 at 14:17





why do you think "bin/magento setup:upgrade" will solve your problem?

– Philipp Sander
Apr 17 at 14:17













Can you please share the code of di.xml and respencted class here.

– Dhiren Vasoya
Apr 17 at 14:24





Can you please share the code of di.xml and respencted class here.

– Dhiren Vasoya
Apr 17 at 14:24










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270519%2fmagento-2-problem-with-arguments-in-di-xml%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f270519%2fmagento-2-problem-with-arguments-in-di-xml%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Sum ergo cogito? 1 nng

419 nièngy_Soadمي 19bal1.5o_g

Queiggey Chernihivv 9NnOo i Zw X QqKk LpB