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.

158 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
688 views

Composer Problem. Could not find a matching version of package <name>. Check the package spelling, your versi

I have big problem ;/ And dnt know how i make this... i write composer require searchanise/search-autocomplete and Could not find a matching version of package searchanise/search-autocomplete....
1
vote
0answers
23 views

Source Key should be specified

We are in the process of moving our Magento site to a new hosting platform. After moving all of the files and making some changes to the template XML, the frontend of the site is now working as ...
1
vote
0answers
71 views

Source class for generation not found

I am using a composer library in my custom module. The link for the library is here. This library in turn uses https://github.com/tightenco/collect The {Vendor}/{Module}/composer.json is { "name":...
1
vote
0answers
344 views

Composer command not running magento2

I am trying to run the following command - composer require ebizmarts/mailchimp-lib But I am getting following error on command line - [UnexpectedValueException] ...
1
vote
0answers
18 views

Invalid crendetials when runing composer require magento 2 extension

I got this error when running this command composer require my extension from marketplace :
1
vote
0answers
37 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" "...
1
vote
0answers
102 views

Use Mage::app('admin') in Composer post scripts

I am creating a post-update-cmd script in which I call some functions. The file is lib\Vendor\Module\CustomClass.php This is the command: "post-update-cmd": [ Vendor \\ Module \\ CustomClass :: ...
1
vote
3answers
836 views

Outdated Amazon_core after composer update (Magento 2.2.4)

I am getting this error: Amazon_Core db schema version: defined in codebase - 2.0.12, currently installed - 2.0.4 and Amazon_Core db data version: defined in codebase - 2.0.12, currently installed -...
1
vote
0answers
29 views
1
vote
0answers
29 views

Using Composer on Shared Host

I have just recently started dabbling in the idea of upgrading from Magento 1.9.x to 2.2.x now. Working with installing Mangento and now having to use Composer, I am attempting to run simple commands ...
1
vote
0answers
201 views

How to prevent composer to remove bin/magento?

When I use composer to add a package, it deletes a bunch of packages, and it deletes the bin/magento . How to prevent composer to delete bin/magento ? How can I have everything working like before ...
1
vote
0answers
33 views

How to run composer.patch on Magento 2.1

I am trying to run this patch PATCH_MDVA-4538_EE_2.1.4_v2.composer.patch when I simply run the patch command it hangs. Is there a composer.patch command that I need to do?
1
vote
1answer
650 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
370 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
0answers
230 views

Validate Custom Extension Magento 2.x using validate_m2_package.php

I created a custom module but trying to convert it to extension. I am trying to validate my extension with this tool https://github.com/magento/marketplace-tools . What i tried:: File structure of ...
1
vote
0answers
42 views

Check Component Dependency magento 2.1.10

I am using Magento 2.1.10. While trying to install an extension. I am getting the following error. Also I am using php version 7.0.6, but PHP version Check is showing 5.6.25. Also earlier I tried to ...
1
vote
1answer
197 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
499 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
2answers
442 views

Magento 2 Composer Error While Installing Tawk.to extension

I'm trying to install Tawk.to chat in my Magento 2.1.9 shopping site hosted on a cPanel shared server environment. And I downloaded the extension files following the guidelines are given here: ...
1
vote
0answers
89 views

Magento 2: Install module from multiple repositories

Today I've stumbled into a fairly intriguing issue. At the moment I'm building a module for a client and possibly I'll use it for future clients. Now, I would like to keep the core code in a ...
1
vote
1answer
643 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
373 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
0answers
47 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 ...
1
vote
0answers
35 views

new adminhtml theme does not show in deploy list

Using Magento 2.1.1, I would like to deploy a new adminhtml theme in cli. magento setup:static-content:deploy --theme Tc/theme. Result: [InvalidArgumentException] Tc/theme argument has invalid ...
1
vote
1answer
135 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
0answers
82 views

Magento 2 installation to use Extensions

i know is a bit boring ... How I have to install magento 2 that I can simple use the Extension Manager? If I try to use the Extension Manager I get these errors: Check Updater Application ...
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
0answers
143 views

Unable to install any extension on Magento 2.1.0 website

I have a site running on Magento 2.1.0. The site was up and running for a few weeks with no issues, we were able to install a few extensions with no problems. Suddenly, we are unable to install any ...
1
vote
0answers
17 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/...
1
vote
1answer
106 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
0answers
402 views

Composer autoload doesn't work

This is a follow up question from this question. I want to override a Zend class using composer autoload. It used to work, but not anymore. This is content of my composer.json file: { "name": "...
1
vote
1answer
54 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
5answers
1k views

Magento 2 - No Theme after installation

I had "magento 2" installed with composer. the installation is running correctly. Now, when I look at the backend or the frontend no Theme appears. What could be wrong? I have also tried it with the ...
1
vote
1answer
811 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
48 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 ...
1
vote
0answers
120 views

Magento 2 composer update with sample data removes uploaded images?

After running a composer update from 2.0.0 to 2.0.1 on a Magento 2 store that was set up with sample data, any images that were uploaded via an import to pub/media/import and assigned in pub/media/...
1
vote
0answers
194 views

Capistrano & Magento - Previewing new deploy and manually update symlink

I am using a Capistrano deployment workflow for a Magento project. On deploy Capistrano builds this Magento project on the server using https://github.com/Cotya/magento-composer-installer. The issue ...
1
vote
1answer
75 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 ...
0
votes
0answers
13 views

Magento 2.3.2 EE Composer Install Could Not Resolve

I am using Magento version 2.3.2 EE. I am trying to run the "composer install" step (I have not modified the composer.json file in any way) and I'm seeing the following error: $ composer install ...
0
votes
0answers
19 views

How to resolve this Composer Update problem?

Please have a look on the screen shot below and let me know: What's the concrete problem here (it is not clear to me)? How to sort it out? Is there any way to do this update ignoring these ...
0
votes
0answers
14 views

Own module in bitbucket - different branch for 2.2.x and 2.3.x. How to install with composer?

i have own module in bitbucket (written at the time when was magento 2.2.x) which is overwriting magento-catalog ImageBuilder.php file. Now after testing this with 2.3.x i found, that it isnt working....
0
votes
0answers
20 views

Magento 2.3: InvalidAgumentException: Composer could not find the config file

I have a problem with Magento, I use X-debug for trying to debug Magento and I have the following Exception: Exception Has ocurred. InvalidArgumentException: Composer could not find the config ...
0
votes
0answers
19 views

Magento 2 Composer is not working for installing third party module on local server

I have a setup of Magento2.3.2 version and I need installation of some third party module with composer but when I try to install the module it throws below error. Installation failed, reverting ./...
0
votes
1answer
31 views

Magento 2 root composer.json file content?

What should the content be in the Magento 2 root folder composer.json file AFTER Magento is installed? When I add a new module, should I add this to the existing list (require, etc)? Should all the ...
0
votes
1answer
18 views

Magento update version

I'm currently running a Magento store version 2.3.0 and trying to upgrade it to version 2.3.2. If I try to update on the Magento admin I receive the message bad credentials after entering the access ...
0
votes
0answers
36 views

Invalid credentials for magento/module-store

After creating my auth.json file and adding the credentials: { "http-basic": { "repo.magento.com": { "username": "publickey", "password": "privatekey" } } } and doing a ...
0
votes
1answer
11 views

Installing Zend_Barcode

I'm not having any luck getting Zend_Barcode to work in Magento 2. Zend_PDF is working, and I notice that it has a class in: /vendor/zendframework1/library/Zend/ but Zend_Barcode does not. I've ...
0
votes
0answers
24 views

Composer Error When try to Update or Upgrade Magento 2.2

I have in my system installed Centos 7 and php-fpm with some version of PHP 7, when I try to use composer update I get this message I would like to know how to fix that problem
0
votes
1answer
61 views

Product page fails to render

When you click on a product page, it only shows a one image. Looking at the stack trace, it looks like there is some PHP error. I think when I patched to 2.3.2, maybe something didn't updated? How ...
0
votes
1answer
74 views

Magento 2 upgrade killed process

I want to upgrade Magento 2.1.7 to Magento 2.3.2 and I follow below commands sudo composer require magento/product-community-edition=2.3.2 --no-update sudo composer require --dev phpunit/phpunit:~6.2....