Questions tagged [dependency]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
41 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
27 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,...
0
votes
1answer
66 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
2answers
196 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
49 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
107 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
54 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
48 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
34 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
352 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
324 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
177 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
552 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
225 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
94 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
363 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
139 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
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
82 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
822 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
862 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
76 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
124 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
90 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 ...
2
votes
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
886 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
536 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
93 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
107 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
558 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
342 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
361 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
127 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
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 ...
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
174 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
443 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
565 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
90 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
818 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
201 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
942 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
753 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). ...