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

Composer is a tool to manage dependencies in PHP. It supports fetching dependencies from different sources like Git, SVN, PEAR, the local filesystem, etc. and also offers automated autoloading support.

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 ...
6
votes
1answer
947 views

Error during upgrade to Magento 2.1 from 2.0.7

Since a couple of days i try to upgrade my "native" Magento 2.0.7 I use composer as suggested by documentation : composer require magento/product-community-edition 2.1.0 --no-update; composer update; ...
5
votes
1answer
3k views

Magento 2.2.0 - Upgrade / Migrate from Magento 2.1.9 to Magento 2.2.0 with Sample Data

Followed below commands to upgrade Magento 2.1.9 to 2.2.0 using terminal 1. composer require magento/product-community-edition 2.2.0 --no-update 2. composer require \ magento/module-bundle-...
3
votes
1answer
32 views

Magento 2.3.0 Shared Server Are Different PHP Version(s) An Issue

I’m trying to install Magento 2.3 with Composer, with php 72. I am hosted on a shared cloud server that has php 70 as the server version (what php -v returns). I can set the local version of php to ...
3
votes
1answer
104 views

How to make and install my module via composer with two private repositories in magento 2

Problem Description: I have created two private repositories in github under same user name. Each repository contains different modules. But while trying to install the package via composer throws ...
3
votes
1answer
312 views

composer connection refused

Context: magento 2.1.7 community-edition composer.phar 1.7.2 installed and setup on a development server then deployed on a production server (dictinct from the previous) All worked well, including ...
2
votes
1answer
24 views

Best Practice Magento 2 / Composer / Custom Module

Can you tell me what are the best practice when you create a custom module for a project. I would say to put the custom module related to the project in app/code/MyNamespace/MyModule and all Generic ...
2
votes
1answer
70 views

Changing from a git to a composer installation

I'm afraid, I've got a Magento 2 installation which has been done via git. I'm not a developer and would like to upgrade simply via composer update. Is it somehow possible to move or migrate from one ...
2
votes
1answer
586 views

Magento 2 deployment from Dev to Staging using Git

I have a local Dev environment and installed Magento 2 using composer I initialized the local /magneto2/ folder as a Git repo I added this .gitignore file to the root of my /magneto2/ folder I have a ...
2
votes
1answer
2k views

Error failed opening

Can someone tell me what I have to do to fix it ? local:/data/web/public/app/code/community:/data/web/public/app/code/core:/data/web/public/lib:.:/usr/share/php:/usr/share/pear') in /data/web/public/...
1
vote
1answer
33 views

Mismatched Magento version while using composer

I currently have Magento running on Ubuntu Xampp, and attempted to run composer on a theme file, which prompted me to install a load of PHP extensions. I did this (7.2 for all of them, same as system ...
1
vote
1answer
614 views

Could not find package 2.2.3

When updating from 2.2.2 to 2.2.3 with composer require magento/product-community-edition 2.2.3 --no-update I get this error: [InvalidArgumentException] Could not find package magento/product-...
1
vote
1answer
314 views

Magento 2 error - Model/View/Page/Config/RendererFactory.php on line 64

I have a very annoying error on my production site which occurs once a day. My site goes down with the error below and I have to refresh cache to resolve the problem. It's Magento 2.1.7 with ...
1
vote
1answer
48 views

magento 2.2 composer checking pubkeys fail

when i run a composer diagnose i get some errors, first of al i have to update my current composer version. But more of my concern is the FAIL on pubkeys. Wich keys are this? The magento ...
1
vote
1answer
192 views

Magento 2.1.10 Composer Sample Data Install Issues

I have Magento 2.2.0 setup with sample data. I am trying to setup Magento 2.1.10 with Sample Data for reference. However, when running: php bin/magento sampledata:deploy I get: Loading composer ...
1
vote
1answer
445 views

Magento 2.2.1 composer upgrade issue amazon pay

I tried to upgrade Magento 2.2.0 to version 2.2.1 via composer however i received framework error about amazon pay conflict (my amazon pay version is 1.1.4). I'm aware i need to update amazon pay to ...
1
vote
1answer
523 views

Upgrade Magento 2 via composer not working

I try to upgrade Magento 2.1.6 to Magento 2.1.9. To do this I ran this command: composer require magento/product-community-edition 2.1.9 --no-update after this I ran : composer update and I ...
1
vote
1answer
329 views

magento 2, I need to add dompdf Library Without using composer in my extension

I have created an extension for HTML to PSD by using dompdf Library. I had tried to using composer and it's working fine. But I need this Library in my custom extension. When any user add extension ...
1
vote
1answer
128 views

How to add js libraries to Magento 2 extension via composer?

I'm wondering is there a way to add third-party js libraries to Magento 2 via Composer? The main idea of this is to separate our modules from those dependencies and to have them required via Composer ...
1
vote
1answer
94 views

Install sample data using Composer - Command prompt hangs when asked for password

I'm trying to install Magento2 using composer but when i'm prompted to add my private key the command prompt hangs, not letting me enter my private key.
1
vote
1answer
48 views

Download depended package after installing module

I am developing QrCode Extension in Magento2 which is depended [bacon-qr-code] library so I need to download [bacon-qr-code] library using composer.In Magento2 in root composer.json if I add the "...
1
vote
1answer
795 views

Magento 2 .gitignore template in combination with Deploybot and Git workflow

I installed Magento 2 using composer locally (on my local Dev environment using MAMP). I added my custom theme and did all my frontend work on my local Dev site. I want my code and changes to be ...
1
vote
1answer
47 views

Howto install Magento2 Testframework as dev requirement

until now, I developed my Magento2 Modules in the app/code directory of a running magento2 instance. This is pretty easy and you can run your tests without having much to think about. after reading ...
0
votes
1answer
31 views

Magento 2 - Upgrade Path

I just wanted to find out if the there is a upgrade path to follow when upgrading a Magento 2 store via composer? Example: if I want to upgrade my magento 2 store from v2.0.18 open source to v2.3.1 ...
0
votes
1answer
44 views

Magento 2.3.1 Composer Fatal error when installing Ext

Trying to install anything on Magento 2.3.0 & 2.3.1 using Composer I get the following error. Does anyone know how to fix this? Fatal error: Uncaught TypeError: Return value of Magento\...
0
votes
1answer
215 views

Magento 2.3 Upgrade issue

I'm trying to upgrade to Magento 2.3.1 and I'm running into a problem. I was on PHP 7.1.3 and noticed in the system requirements that it requires 7.1.3 and 7.2.X. We've upgraded the server PHP version ...
0
votes
1answer
59 views

Download failed, retrying… Downloading https://repo.magento.com/archives/magento/magento2-base/magento-magento2-base-2.3.0.0.zip

I need to say, its really hard and sadly magento typically that nothing works out of the box as it should if you follow offical step-by-step tutorials. Since a few hours or better days I try to ...
0
votes
0answers
19 views

The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly Error

When I try to complete the checkout by paying with Hosted Payment Form (mastercard module) I get an error 400 Bad request. I was reading the exception.log file and I found an error that says the ...
0
votes
0answers
11 views

Magento2 symfony/finder not found and unable to update

I have a plugin I am trying to install and when I run the composer install on the command line I get a error that says Updating symfony/finder (v3.4.22 => v3.4.28): Update failed (Could ...
0
votes
0answers
23 views

How to fix “There are no commands define in the namespace” error?

I have upgraded the Magento version from 2.2.6 to 2.3.0 via composer. I have tried running the command php bin/magento setup:upgrade but it says the below error There are no commands defined in the ...
0
votes
0answers
63 views

Magento 2.3.1 Composer Fatal error installing anything

After thing to install a few other extensions, I'm getting the Fatal error message with anything when using Composer. I have installed a fresh copy of Magento 2.3.1 and I'm trying to install the data ...
0
votes
0answers
30 views

Fatal error: Uncaught Error: Class 'Cm_Cache_Backend_File' not found

Going through an upgrade from 2.2.6 to 2.3.1 and i have this populating on the frontend. Additionally, on command line if i try to run an upgrade or pretty much anything even php bin/magento list i ...
0
votes
0answers
16 views

Magento 2 Install Composer and Setup Upgrade in 1 step: how do we get the package name?

I am reading through the Magento guide and understand the steps. However it appears to me that many -if not all - of the steps are the same everytime. https://devdocs.magento.com/guides/v2.3/comp-mgr/...
0
votes
0answers
14 views

Changing from Magento2 github install to composer install

We have installed Magento2 using GitHub but later we realized that we should be installing it with the composer from Magento. Will it be an issue if we switch it to the composer as we have done a lot ...
0
votes
0answers
24 views

Difference between Magento Composer install and release install

What are the differences between the various Magento installs? I installed it using the released code from github(v2.3.0.zip) and I installed it using composer create-project --repository=https://...
0
votes
0answers
24 views

Convert from Cloud Enterprise to Enterprise issue

I passed my site from cloud to another server (with same files and some fixes on removing fastly) the site was up and no issues . It was magento/magento-cloud-metapackage v 2.2.6 . Now i want to ...
0
votes
0answers
9 views

WordPress with composer alongside M2

I would like to add a WordPress blog to our magento2 site. WordPress is not officially available as a composer package. I can create my own package - that's not an issue. How would I go about ...
0
votes
0answers
20 views

Wrong version in composer outdated

When I run composer outdated I receive the information below: Why does it not show that 2.3.x is available? Is it because I started the project with Magento 2.1.x? Even when I moved to 2.2.x, it was ...
0
votes
0answers
29 views

How to load vendor files in custom extension

Im making a custom extension - how do I load custom vendor files ? Do I add them to my extension composer file or the global Magento one ? I asking because I cant load Yaml. In my extension ...
0
votes
0answers
128 views

Magento 2 - Install Mirasvit Profiler (Missing symfony/yaml)

I am running Magento 2.2.6 and it's a slow instance so I wanted to try out the Mirasvit profiler. However, when I try to enable it, I get an error about yaml not being installed. I dug through the ...
0
votes
0answers
18 views

Create Composer mapping files

I would like to automatically generate the mapping of my module files to the composer.json file. Is there an executable? "extra": { "map": [ ... ] }
0
votes
0answers
245 views

Magento 2: Invalid credentials for … aborting

I was trying to use composer install with my project, and this message show up, please help. Thanks :) Or please tell me how to ignore a package in composer install, i've try composer remove magento/...
0
votes
0answers
75 views

Magento 2 - Web Upgrade Fails on Component Dependency Checks

I have a Magento 2 site on version 2.1.8 and I am attempting to upgrade to 2.2.5 with the Web Setup Wizard. When I run the readiness check, it fails on Component Dependency. My composer.json file ...
0
votes
0answers
111 views

Magento 2: error 500 and issue with a Composer

I have an error 500 "site is currently unable to handle this request"., and this is what logs are writing: [Wed Jul 25 07:21:16.343013 2018] [php7:warn] [pid 396] [client 176.125.35.8:44830] PHP ...
0
votes
0answers
83 views

Magento 2 : Installing magento 2 code standards with code sniffer in ubuntu

Can anybody please tell me how do i install Magento 2 code standards in Ubuntu form scratch? I am trying to install Composer and Code sniffer 3.0 but getting alot of errors.
0
votes
0answers
22 views

Composer modules located on multiple Market Place accounts

I have a Magento 2 website were Composer was used to install all the modules. Now, I have multiple Magento Market Place accounts that hold different modules, so they are NOT located in one account. ...
0
votes
0answers
57 views

Magento2 - Install module from vcs with composer - autoload error

I have module stored in bitbucket and I want to be able to install it with composer. This is my composer file. "name": "VENDOR/MODULENAME", "description": "description", "require": { "...
0
votes
0answers
60 views

Upgrading to 2.2.3 /bin is then empty

I want to upgrade from 2.2.2 to 2.2.3 and I ran the following commands composer require magento/product-community-edition 2.2.3 --no-update composer update Then when I try to do php bin/magento ...
0
votes
0answers
382 views

Check Component Dependency

I am getting this component dependency error I have referred also referred other question regarding the same but could not find suitable problem solving answer. Are there any general checkpoints(...
0
votes
0answers
370 views

Magento2. composer.json require module:version

Can anybody just give me complete example how to require in composer.json some existing magento module (for some my personal extension). And dependency should work in any magento 2.x.x version. For ...