We’re rewarding the question askers & reputations are being recalculated! Read more.

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 ...
3
votes
3answers
250 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
0answers
21 views

In magento2, how to hide a ui-component fieldset when select a particular option in admin

In magento2, how to hide a ui-component fieldset when select a particular option in admin
2
votes
2answers
295 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 > ...
1
vote
1answer
56 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 ...
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,...
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 ...
0
votes
1answer
202 views

Magento 2 Module Observer Sequence order and Sales Order Event

We have two modules which fire the same event checkout_submit_all_after.But i need to give a preference for this , i tried giving sequence in module b but it won't work.For ex Module A and Module B ...
2
votes
1answer
145 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 ...
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
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
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
228 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
236 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
590 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
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 ...
0
votes
0answers
64 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
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 { ...
2
votes
0answers
397 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
103 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
425 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 ...
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 ...
0
votes
1answer
158 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 ...
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 ...
0
votes
1answer
92 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 ...
10
votes
1answer
926 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 ...
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 ...
1
vote
0answers
891 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 ...
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 ...
1
vote
1answer
964 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
87 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 ...
0
votes
1answer
93 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
0answers
93 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 ...
1
vote
2answers
618 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 ...
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 ...
0
votes
1answer
114 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
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(); $...
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 ...
0
votes
1answer
585 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
98 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-...
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 ...
0
votes
1answer
133 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 ...
0
votes
1answer
350 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
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 ...
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 ...
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. ./...
4
votes
2answers
901 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/...
-3
votes
1answer
465 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
611 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 ...
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 ...