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.

4
votes
0answers
77 views

Module version in composer.json

I'm running the static tests on one of my modules and on magento version 2.3 it reports an inconsistency: Version must not be specified in the root and package composer JSON files in Git Failed ...
3
votes
0answers
478 views

Magento 2 InvalidArgumentException Could not find a matching version of package

I am trying to install the module using the composer in Magento 2. I have created a module and publish on the GIT repository and also added the GIT repository URL at packagist. Module GIT URL: ...
3
votes
0answers
434 views

Could not install B2B extension for magento 2.2.0-EE

I have installed Magento-EE-2.2.0 with sample data. After installation, i tried to install B2B extension using composer composer require magento/extension-b2b Used the following reference site ...
3
votes
0answers
154 views

Publishing extension to Marketplace

I'm trying to publish extension to the magento marketplace. I receive an error when i press submit button on magento's web from: Can't connect to package repository i have added my GitHub ...
3
votes
0answers
231 views

How to upgrade new version of module code by using composer in Magento 2 from third party repository

We have installed third party modules successfully using command composer update by Adding below repository to composer.json "repositories": { "0": { "type": "composer", "url": "...
3
votes
0answers
306 views

Composer\Downloader\TransportException

Invalid credentials for https://repo.magento.com/archives/magento/module-sales-archive/magento-module-sales-archive-100.1.1.0.zip I've successfully configured Composer credentials with my Magento Key ...
3
votes
0answers
117 views

Validating composer.json in magento giving me the following error

Updating through the command line and with market place took 1) Once you have packaged your extension in .zip file move it to a directory. 2) Download the validation script and extract it to the ...
2
votes
0answers
34 views

Magento2: How to install an external package without composer?

I have some packages installed under the vendor dir. Now, I need a way to take one of them out & place it somewhere else that'll allow editing the files (same as moving a Magento module to app/...
2
votes
0answers
42 views

why deployVeniaSampleData.sh runs out of memory

Trying to run the Venia sample data deploy script bash deployVeniaSampleData.sh --yes but keeps getting mmap() failed: [12] Cannot allocate memory PHP Fatal error: Out of memory (allocated ...
2
votes
0answers
57 views

Magento 2.3.1 JSON.parse: unterminated string at line 2 column 1009

I am unable to set payment method in Magento 2.3.1. As soon as I click on the payment method button all JavaScript functions are killed. open error log nothing to show, but browser console point me ...
2
votes
0answers
39 views

NGINX 404 error despite Magento Installation complete on CentOS 7 terminal

I am trying to load the /admin part of my development build of the website. I am unsure what could be the cause of this. Using this command: (Some of these details are intentionally not in line with ...
2
votes
0answers
73 views

Can't upgrade to Magento Commerce 2.2.3

Trying to upgrade Magento Commerce (EE) to 2.2.3 from 2.2.2 using composer, however, the package doesn't seem to be available in repo.magento.com - anyone else had this problem? Tried a lot of ...
2
votes
0answers
283 views

Custom theme installed via composer require not showing in setup:static-content:deploy or admin panel

I've created my own custom theme and uploaded it to my private package repository. This works fine and downloads my folder into vendor/<vendor>/theme-my-theme I run: php bin/magento setup:...
2
votes
0answers
369 views

Magento2 Compile command ends at Repositories code generation 1/7

Magento v2.1.7 CE PHP 7.0 Permissions double checked When I run compile command through cli, it ends at step 2 as seen in the image below. I found that it might be due to a wrong auth.json in ...
2
votes
0answers
85 views

Choosing Magento 2 branches, using patches or fixing bugs in custom modules?

I recently ran into a pretty annoying bug with Magento 2.1.6, which made it impossible to save categories with a lot of products (performance issue). I soon discovered that the solution was quite easy,...
2
votes
0answers
136 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 git@github.com:myvendor/my-cli.git composer require myvendor/cli:dev-master To work well I ever ...
2
votes
0answers
2k views

Invalid argument supplied for foreach() magento version 2.1.3

php bin/magento setup:upgrade [Exception] Warning: Invalid argument supplied for foreach() in G:\workspace1\magento2- alexa\vendor\magento\module-store\Model\Config\Processor\Fallback.php ...
2
votes
0answers
1k views

Installing Data-Migration-Tool with Composer: git not found error

when I try to install the Data-Migration-Tool with Composer: composer config repositories.data-migration-tool git https://github.com/magento/data-migration-tool composer require magento/data-...
1
vote
0answers
31 views

Directory / folder path?

I am Trying to upgrade from 2.3.0 -> 2.3.1 This issue began as I'm trying to add my logo to the top of emails and have been told the upgrade has a fix to the bug. i am used the luma theme. Error ...
1
vote
0answers
22 views

Magento2 error while extension installation in create backup step

In my magento2 store I want to install the extension. I have tried this via composer as well as admin extension manager. Every time the process failed in Backup stage after generating the 4Gb of data ...
1
vote
0answers
13 views

How magento2 extension available in composer

We have planning to submit a magento2 extension into Magento marketplace. Currently extension hosted in GitHub private repository. After successful approval from "Magento marketplace" (Marketing ...
1
vote
0answers
70 views

Magento 2.3 Composer stuck while downloading https://repo.magento.com/packages.json

I have a problem since about 24 hours I guess. When I try to download Magento 2 with composer I stuck after logging with my user-credentials. The credentials are ok, it pass and go through the next ...
1
vote
0answers
85 views

Magento Server is at 100% CPU after installing Extension

I just installed a new Extension via Composer: $ composer require mageworx/module-advancedproductoptions This is the output: Using version ^2.16 for mageworx/module-advancedproductoptions ./...
1
vote
0answers
32 views

install magento on virtualbox from bitbucket

After I clone magento files from bitbucket, i try to run composer install but it gives me this error, "[RuntimeException] Failed to execute git clone --no-checkout "ssh://git@stash.studio.com:7 ...
1
vote
0answers
16 views

Validate composer requirements from modules in app/code

Is there a way to validate the version constraints from modules in app/code during updates?
1
vote
0answers
21 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
0answers
38 views

Magento 2.1.9 to 2.2.0 composer update problem

Basically i want to update my store from 2.1.9 to 2.2.0. But when i run composer update i'm getting this error: - magento/product-community-edition 2.2.0 requires zendframework/zend-stdlib ^2.7.7 -&...
1
vote
0answers
418 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
22 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
55 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
252 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
36 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
80 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
0answers
367 views

Setup page not getting loaded after install

I have been trying to install magento 2, When i am trying to access the setup page from url, but the url is not accessible it says This page isn’t working xx.xx.xxx.xxx is currently unable to ...
1
vote
0answers
29 views
1
vote
0answers
27 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
173 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
0answers
188 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
41 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
0answers
81 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
0answers
46 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
0answers
81 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
142 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
0answers
365 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
0answers
119 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/...