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 [dependency]

The tag has no usage guidance.

1
vote
1answer
34 views

Magento 2 : toggle whole group in system.xml based on field in another group

I have created two groups in system.xml. I need to show/hide group 2 depending on the "Module Enable" field in group 1. But when I use the following code it hides both the sections and does not save ...
2
votes
1answer
52 views

Magento 2 : Set dependency between two dropdown in ui form

I want to set dependency in UI form. For ex : When I select first drop-down value then only display second drop-down. How to do this ?
2
votes
1answer
33 views

Disable Magento RSS module - Magento 2

I have been disabling modules that we don't require and as anyone who has tried this knows some cannot simply be disabled because of dependencies. There are a number of modules we have absolutely no ...
0
votes
0answers
27 views

Trying to remove theme

We've had endless headaches with a theme we purchased when we first launched our site so we are trying to finally migrate away from it, but it's not letting go easily. Whenever I am trying to begin ...
1
vote
1answer
26 views

Magento 1.9 Extend Model, Load It Before Parent

Class Test1/Module1/Model/A { protectedfunction doSomething(){ //behaviour //behaviour //behaviour } } Class Test2/Module2/Model/B extends Test1/Module1/Model/A { ...
1
vote
1answer
339 views

dependency error upgrading from 2.2.7 to 2.3.0

I have been trying to update my site to 2.3 and I am getting the error posted below when I use CLI with command composer update. I have also tried to use the online system upgrade tool and get the ...
2
votes
0answers
256 views

Magento 2 Admin Ui form fieldset dependency

I have created a UI form in admin. I have one select field which has some options.For some values I want to hide a fieldset in the form. How can I achieve it. Referred this link magento 2.1 How do ...
0
votes
1answer
109 views

how to use dependency multiple field in admin edit section magento 2.0

my code is in below here how can i set 'gateway_title' and 'gateway_title2' this tow fields depends on 'gateway_is_active' filed both of those two filed have be depended. $fieldset->addField( ...
2
votes
1answer
472 views

Failed Check Component Dependency 2.2.5

How do I get Fix this Error? Check Component Dependency We found conflicting component dependencies. Hide detail Command "update" failed: Loading composer repositories with package information [...
3
votes
2answers
198 views

Magento 2.2.4 : Different group dependency not working

I'm using magento 2.2.4. In system configuration, I want to do apply dependency. But, both groups and fields are different. It's working in same group. But, I can't get output for different group. ...
0
votes
1answer
87 views

Fresh Magento 2.1.14, Readiness Check fail with conflicting component dependencies

My Magento is 2.1.14, fresh new. I am trying to install my first extension (Stripe payment extension), and this error occur. =========================================== Check Component Dependency We ...
0
votes
1answer
286 views

Magento2: dependency injection issue in passing parameter to constructor

I have faced this issue many times, but unable to understand why? what is the (logic/concept/approach) behind injecting any object. i have injected few parameter to my save controller, before adding ...
0
votes
1answer
123 views

Conditionally enable event observers in Magento 1.9

I am using multiple event observers in Magento 1.9 From there, I want to conditionally execute other observers. For example, defining the configuration in system.xml to enable or disable execution ...
6
votes
2answers
1k views

Dependecy error Magento 2 ('sectionLoadUrl' error)

I've asked a similar question before, but because of some research, it would not have been relevant anymore. So here a more comprehensive explanation of my problem. My scenario I want the cart page ...
0
votes
1answer
69 views

Component Manager Readiness Check Errors

When trying to install any extension in component manager, I end up with a bunch of errors during the readiness check. My biggest issue is:"Your PHP version is . The required PHP version is ." My php ...
5
votes
1answer
1k views

Ui-component form (Adding drop down field)in magento 2

I need to create backend admin form which contains two dropdown fields.But One is dependent on other. One dropdown contains attributes like brand,color etc.. The second one contains associate options ...
1
vote
0answers
748 views

In Magento2 For Ui component Form select Field,Dependency with another Field [duplicate]

On Magento2 For UI Component Form select Field should be having dependency on another value on the selection on ex: IF there is Field name: Field1 dropdown on selecting option then it should display a ...
1
vote
1answer
734 views

Magento2 Dependent select fields filtering

I can use the country and state fields in admin form by just pasting the form xml explained here ui_component form state/region field update after country select (M 2.1) Now My question is that I am ...
1
vote
0answers
65 views

magento 2 multiple values drop down dependencies?

in magento 2 i have a drop down with the options 1, 2, 3, 4, 5, 6 when we if '1' Test-1 and Custom-1 text fields want to show. as well if i choose '2' Test-2 and Custom-2 text fields want to show ...
2
votes
1answer
108 views

Magento 2 admin end drop down dependencies?

In Magento 2 at admin end from my custom module I have two options 1) Level and 2) Segment in the drop down. As well I have another multiselect dropdowns like Levels and segments Now if i choose ...
0
votes
1answer
84 views

isModuleOutputEnabled | Resolving module conflict

I had two modules extending same core helper class and causing a conflict: class Amasty_Methods_Helper_Payment_Data extends Mage_Payment_Helper_Data and class ...
1
vote
2answers
4k views

Magento2 - override 3rd party module layout file in custom theme

We have a custom theme with some layout / template overrides Now we have installed a 3rd party module, which is overriding one of layout files in our custom theme. So, only module's override is being ...
10
votes
1answer
850 views

Admin config: show field depending on selected multiselect values

I want to display fields based on selected multiselect input ... following code just works, if only one value is selected. If I select more then one value it shows only one field (first selected from ...
0
votes
1answer
491 views

Change behavior of modules <depends> node - any downsides?

Current sitution: If one of you extensions depends on another, that isn't active or not installed it breaks page load and you'll see error report page. <?xml version="1.0"?> <config> ...
1
vote
0answers
87 views

Simple environment check script

Is there a simple standalone PHP script that I can just put on a server and see if it meets the system requirements for Magento 2 to run? For Magento 1 there is one going around by the name of magento-...
0
votes
1answer
96 views

Magento 2 : Where Put External Dependency?

I'm developing module to call REST API and I want to use an external package via composer. In which composer.json I should put dependency? In composer.json in root directory or composer.json in module ...
1
vote
2answers
501 views

Error with Dependency Injection in widget

I'm a new Magento 2 developer that's trying to create a widget with a picture in it and I've been following some tutorials to get started. I'm having some trouble though with dependency injection in ...
0
votes
1answer
338 views

Incorrect dependency error when run setup:di:compile command in magento 2.1.x

I have run command bin/magento setup:di:compile in my Magento 2.1.x. I got below error. Solwin\ProductAttachment\Controller\Adminhtml\Attachment Incorrect dependency in class Solwin\...
2
votes
0answers
345 views

Magento 2: Ajax call to customer edit form for dependent dropdown

I have created two attribute for customer as "Restaurant" and "Stores". Currently I am getting data from their respective model collection through InstallData.php in customer add/edit form. Now I want ...
0
votes
1answer
124 views

No Magento Error / Exception on checkDependencies()

On my Ubuntu server VM, remotly debugged with Xdebug & Netbeans I search for a long time why no product images get viewed. Afte I debug all the processing, I found the mistake. I don't have GD2 ...
1
vote
0answers
92 views

Magento v. 2.1.4 Readiness Check Fails at Component Dependancy

No other information is given. (Or, if it is, I do not know where to look for it.) I have a clean Magento install, no theme, no extensions, nothing. I am on a shared server so direct php.ini edits ...
18
votes
2answers
4k views

What's a hard dependency and what's a soft dependency?

In Magento 2 (any stable version) you can run this command bin/magento info:dependencies:show-modules and you will get a csv file in the root of your application called modules-dependencies.csv with ...
3
votes
1answer
172 views

<depends/> node real purpose

In How to disable Magento 2 reviews , we tried to disable the module Magento_Review through the module:disable command But if you do that, in 2.1, you will have multiples errors of dependency. ./...
-3
votes
1answer
415 views

Is it recommended to use object manager by passing into constructor as a dependency? [duplicate]

As of my observation, core team used the object manager as added Example flow taken from module-cms public function __construct( //..... \Magento\Framework\...
2
votes
2answers
524 views

Check if all module dependencies are met

I recently disabled some modules and after an upgrade I feel that new dependencies got introduced (when disabling and re-enabling a custom module I got errors). Is there a command to check if the ...
7
votes
1answer
89 views

Magento module:uninstall orphans any dependencies (required modules)

I have some modules that are dependent on a core module. When I use the command composer require stti/module-catalogbook Magento installs 2 modules.. Stti_Catalogbook and Stti_Catalogcore. If i ...
5
votes
2answers
2k views

Circular dependency: Magento\Customer\Model\Session depends on Magento\Customer\Model\Url and vice versa

Magento2 shows this error: Circular dependency: Magento\Customer\Model\Session depends on Magento\Customer\Model\Url and vice versa. I have cleared var/cache and var/generation directory. But it ...
1
vote
1answer
2k views

Magento 2 Conflicting component dependencies (Fooman)

I have a problem while trying to update to Magento 2.1 I'm running 2.0.6 currently, and have updated to this version before without a problem. Now I'm getting a dependencie error We found ...
4
votes
2answers
764 views

Failing the dependencies check

I'm running the static tests for one of my magento 2 modules php bin/magento dev:tests:run static and I get the following errors. Data set: [ROOT]/app/code/Sample/News/Block/Adminhtml/Author/Edit/...
1
vote
2answers
1k views

Magento 2 - Two dependencies in one field form?

It is possible to add 2 depedencies to 1 field? Like this? ->addFieldMap($field_to_evaluate->getHtmlId(), $field_to_evaluate->getName()) ->addFieldMap($field_to_show->getHtmlId(), $...
0
votes
1answer
192 views

Magento 2 - where is method declaration of $this->getAddress() in Magento\Directory\Helper\Data line146

where is method declaration of $this->getAddress() in https://github.com/magento/magento2/blob/develop/app/code/Magento/Directory/Helper/Data.php#L146 public function getRegionCollection() { if (...
3
votes
1answer
1k views

Magento 2 module still working after dependent module is getting disabled

I'm trying to make a depend module A to module B using tag in module's config file. But if I disabling module B, module A is still working. How one can fully define dependency in Magento 2? In ...
6
votes
2answers
938 views

Can the NPM fiasco happen to Magento 2?

As some of you may know, a huge fiasco happened a month ago with NPM As of now, Magento 2 composer.json file includes a lot of external resources (details on the Magento 2 GitHub) What if one of ...
7
votes
6answers
3k views

How to make the fields of the fieldset multidependable?

I have a fieldset in the admin panel with one parent select (has 5 options) and 2 fields, which should be displayed in case the parent value select will be 3, 4 or 5. I have not found the examples of ...
2
votes
1answer
43 views

My three modules use same observer use but my third module should run same observer in last

How to set order of same observer in my three modules? My each three modules declares same observer. My first test1_module1 module use sales_convert_quote_item_to_order_item observer My second ...
2
votes
1answer
708 views

How to set priority for two custom module in magento

I have created two custom module in magento and use sales_order_place_after event in both module. For example first module is Custom_Guest(community) and second is Assel_Sms (local). ...
0
votes
1answer
5k views

Should addon of any extension use <depends> tag in addon registration file(package1_module2.xml)?

One package1_Module1 extension is created and I want to make its addon of package1_Module1. <depends> <Package1_Module1/> </depends> this above code need in `app/etc/modules/...
0
votes
1answer
393 views

Custom Module depends on a specific version of another module?

Let's say I have 2 modules Foo_BarA and Foo_BarB. We could declare Foo_BarB's dependency on Foo_BarA in app/etc/modules/Foo_BarB.xml like this: <config> <modules> <Foo_BarB> ...
3
votes
1answer
2k views

Magento 2 preference not working in di.xml

I have a custom module where I'd like to extend the Base Handler <preference for="Magento\Framework\Logger\Handler\Base" type="Custom\Foo\Handler\DefaultHandler" /> Strangewise this does not ...
0
votes
1answer
30 views

Execute only second package observer

I have two packages installed in magento. First,Package1_Test1 second,Package2_Test2. I have created one observer in Package1_Test1 path: community/Package1/Test1/etc/config.xml <...