All Questions
57 questions
1
vote
1
answer
803
views
Module doesn't work when placed in `app/code`
i'm editing a Magento 2 module. If i install the module via composer require, then run all the necessary commands, the module works.
If i manually copy the module files from vendor/{vendorname}/{...
2
votes
2
answers
2k
views
Magento2: How to create a patch for custom module composer.json?
I want to know that can we create patch for some changes in composer.json of custom module. I am talking about custom module composer not magento composer. Its just like changes but instead of any php ...
0
votes
2
answers
202
views
Magento installing different modules to those stated in composer.json
I have successfully updated to 2.4.3 and in doing so have upgraded a number of modules. For some reason, however, Magento is ignoring the module versions stated in the composer:
Two modules for ...
0
votes
1
answer
790
views
Magento 2 Setup Custom Module Download Using Composer
GitHub Link -> https://github.com/mahesh-code-work/Module-Learn/
I create one small basic module and try to install using composer.
How to set up the whole setting and what is the right way to do ...
0
votes
1
answer
246
views
magento2 custom module installation from git using composer
how to install my custom module on another magento2 project from git using composer
I tried with composer config ->this works fine.
when I run composer require its shows an error
[RuntimeException] ...
0
votes
2
answers
101
views
How to configure Magento 2 to have personal/private develpment extensions just for myself
I have several development tools which I personally use like:
https://github.com/ho-nl/magento2-Ho_Templatehints
https://github.com/mage2tv/magento-cache-clean
Is it possible to somehow configure ...
0
votes
1
answer
39
views
magento cli error after module installation by composer
i use magetno 2.2.3 . the bin/magento cli is working fine until I add a module by composer require [module name] --ignore-platform-reqs.after that it gives me a long term error :
so how should I ...
0
votes
1
answer
134
views
enabling module error in vendor after installing with composer by CLI
I add a module with composer and then try to enable it by writing the command php bin/magento module:enable SR_UnicodeUrl
but I get a long error in response that starts with this phrase
Unknown ...
0
votes
4
answers
473
views
Not able to install Google Pay module(unboundcommerce/module-googlepay)
As per the requirement I need to integrate Google Pay in my Magento 2 site. But I am getting an error added below.
Command
php -dmemory_limit=6G vendor/bin/composer require unboundcommerce/module-...
0
votes
1
answer
59
views
Is there an easy way to convert Magento module name to composer names and vice versa?
I am in a process where I want to compare two columns in my spreadsheet. The problem is one column has Magento module names (like Magento_Swatches). The other one has composer names (like magento/...
0
votes
1
answer
810
views
Module not found after composer require
im using a fresh magento install from Ionos 1&1 (CentOS 8), and just after doing composer require, I test if the module installed correctly, but it says it cant be found. Here is the output:
[root@...
0
votes
1
answer
827
views
Magento 2 cannot update module with composer
I'm trying to update a module from Mageworx , currently I have the version 2.31.0, it's "mageworx/module-seosuiteultimate": "^2.30", there is not something like an specific module ...
3
votes
4
answers
2k
views
Magento 2.3.5 we found conflicting component dependencies
I have tried every possible solution I could find on the internet.
From increasing the MEMLIMIT in the php.ini to 2G to removing the required tags in composer.json and so on.
This is a Vanilla ...
0
votes
0
answers
377
views
can not install module with artifacts
I am trying to install new module using artifacts and composer. It returns an error at the end
> ([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/...
0
votes
1
answer
544
views
Magento 2 - Autoload error Module 'Iazel_RegenProductUrl'
After update composer
Please help me, I get this error.
Module 'Iazel_RegenProductUrl' from '/var/www/vhosts/exm.com/httpdocs/app/code/Iazel/RegenProductUrl' has been already defined in '/var/www/...
2
votes
2
answers
856
views
Magento 2: How to install custom module in app/code folder only using composer.json file?
I'm trying to install my custom module using composer.json file and after run
composer update command my custom module installed successfully in magento2.
Actually I want to install my custom module ...
2
votes
1
answer
332
views
Why module go to vendor directory if install using composer Magento2?
Can anyone please tell me the reason why module go to Vendor directory when install using composer?
Please refer me a link for this reason.
In my custom extension, I am using this code in my ...
0
votes
2
answers
2k
views
Upgrade Magento vendor module(dependency|library) to a newer version
Magento uses multiple "external" dependencies|libraries for example one of them is dotmailer-magento2-extension. This specific module is at version 3.1.1 as it can be seen here vendor/dotmailer/...
3
votes
2
answers
444
views
Magento 2 : How to override a custom module which install via composer?
I have installed one custom module using composer as usually that module was installed in vendor directory is there any way to override phtml file in the same module like name but on app/code
module ...
6
votes
2
answers
2k
views
When would you place a module in the app/code folder versus another location?
When would you place a module in the app/code folder versus another
location?
If I add new module in app/code folder with composer.json and another module in vendor folder using composer
What ...
0
votes
1
answer
91
views
including dependency in magento
I was trying to publish one extension to magento marketplace
Things are a fork of tinypng and I can see the dependency of tinypng module is automatically pulled by composer, but where they are ...
2
votes
0
answers
168
views
How can I add a 3rd party dependency in a custom module?
I'm building a module which requires a 3rd party library, how can I make the 3rd party library available to the module without without adding it to the composer.json magento root file?
I added it ...
1
vote
0
answers
44
views
Problem with CLI installing module
Im trying to install sitemap module for Magento 2 and i got this message via cli, i make some changes in composer.json
{
"name": "mageplaza/module-sitemap",
"minimum-stability":"dev"
"...
0
votes
1
answer
73
views
What is the Composer.Json file and what is it used for?
I would like to know what the composer.json file is actually used for when I create a new module.
I know it's an optional file that can be created when I create a new module so why include it?
...
3
votes
3
answers
2k
views
Magento2 Delete config row while Extension Uninstall
I have created a custom module which is being installed via composer.
When I run the command - php bin/magento module:uninstall Vendor_Faq
It is removing all the corresponding tables which I wrote ...
0
votes
1
answer
75
views
How to copy phpunit test xml file of a module under dev/tests/unit/ with composer installation in Magento 2?
I wrote a module including phpunit test xml file. I want to automatically copy that xml file under dev/tests/unit/ after composer update.
The composer.json of the module looks like
{
"name": "...
2
votes
3
answers
782
views
Installation issue in magento marketplace 'page doesn't contain HIT in cache header.'
I have developed customer module in magento. When i am trying to submit in marketplace its keep giving the same error even after trying so many solutions.
Installation issue:
http://magento.dev/gear....
1
vote
2
answers
3k
views
Magento 2 composer "module-wishlist" error
I'm trying to update my magento version to 2.2 (from 2.1.7) but had a "Content Dependency" error, but have narrowed down the issue a module, the "module-wishlist-sample-data" magento module.
When I ...
5
votes
2
answers
4k
views
How to install modules in app/code with composer in Magento 2
How can I force composer to install modules in app/code instead of vendor directory in Magento 2?
I have few modules they strictly need to be install in app/code, but when I update them with ...
11
votes
3
answers
9k
views
ReflectionException error on Magento 2
I tried to install MailChimp module for Magento 2.
After I put all the files in the app/code/[vendor]/[module] and I run php bin/magento setup:upgrade, I received this error:
[ReflectionException]...
1
vote
0
answers
54
views
Why can Magento 2 only uninstall composer packages
When you run bin/magento module:uninstall Vendor_Module -r and Vendor_Module happens te be a module that's not installed by Composer, Magento will not perform an uninstall.
Why did Magento add this ...
2
votes
0
answers
178
views
Magento 2 : Why my module is on the vendor and app folder?
I use these commands to install my dependencies today:
composer config repositories.myvendor_cli vcs [email protected]:myvendor/my-cli.git
composer require myvendor/cli:dev-master
To work well I ever ...
1
vote
1
answer
163
views
How can I prepare my Github's extension to install using Composer?
Using the question below I've installed extensions hosted on private and public repositories using composer, but I need to create my custom extension now.
How to install an extension on a private ...
0
votes
1
answer
1k
views
How to install an extension on a private Github using Composer?
I'd like to know how to install extensions on my Magento 2.1 using Github / Bitbucket / Gitlab with public and private repositories.
Thanks.
3
votes
1
answer
58
views
Can we create single composer file for more then 1 module
I am creating one module which will contain more then 1 module in it. Is it possible to create single composer file for more then 1 module?
Please let me know is it possible or not. If yes, then it ...
0
votes
1
answer
239
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 ...
4
votes
2
answers
4k
views
Magento 2: Composer install for my own module
I'm have my own magento 2 module. It's allready uploaded on Gitlab.
What i must do to install this module using composer require?
1
vote
0
answers
19
views
How change folder when get code Module in github via composer in magento2?
I have create a module in github. When i run composer require namespace/modulename dev-develop in root magento2 folder. It get source to vendor/namespace/modulename folder.
I want put code to app/...
2
votes
1
answer
60
views
How to auto get Module A when install Module B in magento2?
For example I have two modules, Demo and Base. I want that when Module Demo gets installed, module Base is automatically fetched from Github and installed.
I think it is related to composer.
Edited
...
3
votes
1
answer
2k
views
Magento2 - Moving or extending a module from vendor to app folder
I have an extension Magestore_Bannerslider, which the previous developer installed using composer for magento2, The module is installed and working properly. The code is in the vendor folder
I need ...
6
votes
1
answer
301
views
How to install module-sample-scss in Magento 2
I'm trying to install this module (magento/module-sample-scss) in Magento 2 with composer as described here, but with no success.
If I run this from the Magento root folder:
$ composer require ...
2
votes
1
answer
3k
views
Cannot see new custom Module in Magento 2.1.2
I am new to Magento, and I am trying to do add my very first module. I tried to follow two tutorials that show how to create a "Hello World" module, which basically shows a 'Hello World!' message on ...
3
votes
1
answer
1k
views
How to deploy public PHP files in Magento 2 extension?
I need to deploy a publicly accessible PHP file as part of a Magento 2 extension. Obviously this is not intended, as usually all requests should be routed through index.php, but in this case it's ...
2
votes
1
answer
231
views
Uninstall meta package with related extensions
I created 2 (but planning to create 999 :) ) extensions and a meta package for it.
The meta package extension contains only composer.json`
{
"name": "sergei/module-main",
"version": "1.0.0",
...
4
votes
1
answer
744
views
Deploy content of pub folder using composer when installing a new Magento 2 module
There are many modules that require to copy some files and folder inside the magento's "pub" folder. As our entire modules operations and infrastructure is based on composer, this manual (non-composer)...
0
votes
1
answer
891
views
bin/magento sampledata:reset tries to read nonexistent composer.json
I want to update a Magento installation with sample data from 2.0.2 to 2.0.7, so I am following the instructions here to update the sample data.
When running
bin/magento sampledata:reset
I get the ...
3
votes
1
answer
156
views
Minimal Magento2 installation a CMS framework
Just want to setup Magento2 as a minimal CMS framework for an internal project, I am only interested in the following modules:
Backend
Authentication
ACL
ORM
API
I tried to define the magento ...
0
votes
1
answer
46
views
Module developement update composer config [duplicate]
During module developement (module is palced in app/code) after adding new package to composer.json, how can i make magento to install that package ?
9
votes
2
answers
5k
views
Magento2: How to include third pary module through composer.json in custom module
I created a custom module, this module depends on thirt party module(tecnickcom/tcpdf), I added this library in my custom module composer.json file
{
"name": "packagename/mymodule",
"description": "N/...
9
votes
1
answer
1k
views
Magento2: different kind of composer.json files
In Magento2 I see different vendors follow different composer.json formats given below to name their modules.
1st:
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"Amit\\...