Questions tagged [dependency]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
12
votes
1answer
2k views

system.xml dependencies across groups/fieldsets

The system.xml allows us to make the visibility of individual fields dependent on values from other fields. The goto article is of course from Alan Storm: In Depth Magento System Configuration It ...
11
votes
2answers
826 views

Magento 2 module dependencies

Is there a graph (or any other visual "thingy") to see how the core modules depend on each other in Magento 2? (Yes, I tried Google, but he doesn't want to tell me.)
10
votes
1answer
924 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 ...
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 ...
7
votes
1answer
91 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 ...
6
votes
2answers
944 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 ...
6
votes
2answers
2k 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 ...
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 ...
5
votes
1answer
2k 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 ...
5
votes
0answers
1k views

Magento 1.7 : Custom Option Validation Dependent on another Custom Option

I need help to apply validation on custom option, that is dependent on another custom option value. Here is the image, which describes what I actually want : Please suggest, I am using Custom ...
4
votes
2answers
898 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/...
4
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 ...
4
votes
1answer
980 views

The “Product Prices” and “Product Attributes” index depended on stock index?

I found that on a client server, the stock index run cause a heavy load and slow down the site, so I changed the stock index to manually. After I changed "stock status" index to manually mode, every ...
3
votes
3answers
249 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. ...
3
votes
1answer
181 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
2answers
3k views

OnePage Checkout - Hide Payment method depending on selected shipping method

I have a problem that is driving me nuts. What I'm trying to accomplish is the following: During checkout I want to have different payment methods available depending on which shipping method was ...
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 ...
3
votes
1answer
33 views

Magento2 : How to call shared package in another module composer.json Magento 2 Market place

My module A depends on B.I uploaded A in the marketplace and B as a shared package. I getting following an error while uploading an A module while submitting in the market place Installation failed,...
3
votes
3answers
869 views

Field dependency for category attributes

I add attributes in setup script, all is configured properly and attributes are added to a new tab called "MyGroup": $installer = $this; $installer->startSetup(); $installer->addAttribute('...
2
votes
2answers
5k 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 ...
2
votes
2answers
175 views

Best way to find dependencies magento

I just deactivate a custom module but magento is still looking for a file from that module and got this error: Warning: include() [function.include]: apc failed to locate Mage/Gomage/Navigation/Model/...
2
votes
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 ...
2
votes
1answer
784 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). ...
2
votes
1answer
1k views

Widget dependency doesn't work for chooser fields

I have one yes/no select field in a widget.xml If "yes" was selected then category select field should be visible. But category select field always visible instead. That's wrong. Here is my widget....
2
votes
2answers
291 views

Extension Installation Readiness Check Error Magento 2.3.1

There are several errors when I'm trying to install an extension (Slider Banner Module) for the first time. The picture below shows the error in the readiness check. I'm using GoDaddy > C-Panel > ...
2
votes
1answer
83 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 ...
2
votes
2answers
608 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 ...
2
votes
1answer
44 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
122 views

Module dependencies in lib/

In order to ease future Magento upgrades, I am working to extract custom modules and put each in the its own tidy git repository. However, many of these modules depend on Magento-agnostic code that ...
2
votes
1answer
232 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
55 views

Graceful degradation of module dependance

Short background: We're using a third party extension so send mail with Mandrill. This extension accomplishes this by overriding the method core/email_template::send(). I have to implement an e-mail ...
2
votes
0answers
396 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 ...
2
votes
1answer
589 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 [...
2
votes
1answer
144 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 ...
2
votes
0answers
378 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 ...
1
vote
1answer
3k views

Admin form fetch values from dropdown

I have created a custom admin module and in my Model/Nic.php, I have created below function public function toOptionArray() { $nicCollection = Mage::getModel('nic/nic')->getCollection(); $...
1
vote
1answer
842 views

How to use dependency in multiple dropdown?

my code: protected function _prepareForm() { $form = new Varien_Data_Form(); $this->setForm($form); $fieldset = $form->addFieldset("tuition_form", array("legend"=>Mage::helper("...
1
vote
1answer
999 views

“Mage_XmlConnect” requires module “Mage_Weee”

I wonder if anyone has any idea on how to fix the error below. There has been an error processing your request Module "Mage_XmlConnect" requires module "Mage_Weee". Trace: #0 /home/kokorugs/...
1
vote
1answer
49 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
2answers
2k views

Circular Dependency Error in magento2

In magento2.x I am using the helper and the model class files where I need certain functions from helper so I just created the object using DI and similary when I am trying to get the model object ...
1
vote
1answer
1k views

run observer function depend on payment method, how?

I want to run an observer function depend on payment method, how can I do this? public function CompleteOrder($observer) { ...... } Now I want to run this function only when payment method is ...
1
vote
1answer
54 views

Magento2: How to add dependency in composer for private Gitlab modules?

I'm installing a custom module in M2 using composer from my private Gitlab repo and it is working fine. After I've added the dependency of other modules(using composer require) in my custom module ...
1
vote
1answer
56 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 ...
1
vote
1answer
963 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
2answers
614 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 ...
1
vote
1answer
298 views

Trying to install an extension via Magento Connect Manager: Extension dependencies

I'm not an expert with Magento, but I'm trying to install an extension via Magento Connect Manager using the key, but when I click on "Install" after few seconds appears the message "Extension ...
1
vote
1answer
363 views

Magento Observer not firing in order when using <depends> [closed]

The problem I'm having is that when observing customer_save_after, I try and get the customer's newsletter subscription status, and it gets the value before the newsletter subscription status is saved....
1
vote
1answer
362 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 ...
1
vote
0answers
885 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 ...