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.

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
2answers
21 views

How to disable all optional modules in Magento 2.3?

I want to disable all third-party modules and Magento's optional modules, for example, DHL, Klarna, Temando, Vertex, etc. I disabled via admin panel and CLI There is a different way to exclude them?
0
votes
1answer
35 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
0answers
28 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
1answer
58 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
0answers
70 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 ...
1
vote
2answers
23 views

is it possible to add Magento 2 keys after the installation

I installed Magento 2 without using composer, because I encountered issues and the hosting company helped me with the installation and did not use composer. Is it possible to add my private and ...
2
votes
1answer
31 views

Magento 2. How can I properly extend vendor/composer/installed.json?

I assume that installed.json contains all the dependencies needed for Magento. How can I properly extend vendor/composer/installed.json? Context: Magento has a hard dependency on one of the ...
2
votes
1answer
29 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
0answers
31 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
1answer
32 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/...
1
vote
2answers
32 views

Stop composer replacing the .htacces file

When updating Magento 2 via Composer, the .htaccess file in the Magento root directory gets overwritten with the default repository version. Therefore losing my customisations, which I have to go in ...
2
votes
1answer
25 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
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
2answers
51 views

Installing extension via Composer

I have tried to install the extension via Composer and successfully installed. After installing, I can see the extension menu in the admin panel. However, I can't see any files in the app/code ...
2
votes
3answers
30 views

How to install composer in magento

I am trying to install composer using "composer install" from my command terminal display error.
1
vote
1answer
42 views

Magento 2 upgrade 2.3

Currently trying to upgrade to the newest magento 2.3 using a script. https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html Whenever I type: php -f pre_composer_update_2.3.php -- --...
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
1answer
64 views

How to solve upgrading Magento 2.1.1 to Magento 2.1.17?

I am faced issue when I upgrade Magento 2.1.1 to Magento 2.1.17 I changed some values in composer.json "magento/product-community-edition": "2.1.1", =>"magento/product-community-edition": "2.1.17"...
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
1answer
221 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 ...
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 ...
0
votes
1answer
339 views

how to upgrade from magento 2.3.0 to 2.3.1 steps (composer) [duplicate]

I want to upgrade my magento to the latest version. what are the steps to upgrade from Magento 2.3.0 to Magento 2.3.1 via composer?
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 ...
0
votes
2answers
38 views

extension not remove via composer

i have disable extension after i can remove extension via composer like this way php bin/magento module:disable <ExtensionProvider_ExtensionName> --clear-static-content php bin/magento setup:...
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 ...
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
2answers
35 views

Composer merge conflicts

We have a develop branch. Every new feature gets created on a branch that runs off the develop branch. Then a pull request is made to the develop branch. This triggers our CI/CD and slowly but ...
2
votes
2answers
51 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 ...
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 ...
3
votes
1answer
107 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 ...
1
vote
3answers
139 views

Composer install issue in Magento 2.3?

I have one issue when I run composer install command. How to solve this issue. Thanks.
1
vote
1answer
33 views

How to make my module available in github (via composer.json) in magento 2

I wish to make my module available in github repository and then i wish to install it to my local using composer.json. How is this possible? Please provide me a solution, to install my module using ...
2
votes
1answer
462 views

Error composer 1.8.4 on magento 2.3.0 CE

I got this warning : Warning: Unsupported declare 'strict_types' in /home/SITE_NAME/public_html/vendor/magento/inventory-composer-installer/src/Plugin.php on line 6 And this error : Parse error: ...
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 ...
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 ./...
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://...
2
votes
2answers
259 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
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
2answers
114 views

M2 - Uninstall language pack

I installed a language pack using composer. $ composer require mageplaza/magento-2-german-language-pack:dev-master $ php bin/magento cache:flush Now when I try to uninstall again, using this command:...
0
votes
1answer
122 views

Magento 2.2.7: how to run composer update command under Ampps/Xampp php version instead to base php

I am using LAMP on which I have PHP 7.2 I install Ampps on which I have PHP 7.1 How I have to run composer update command? If I run it gave me PHP version error (definitely it will give 2.2.7 don't ...
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 ...
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 ...
0
votes
1answer
43 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
1answer
33 views

How to mention the magento version compatibility in composer.json

I am creating a module in Magento 2. Now I am writing composer.json. Here I write supporting PHP version "require": { "php": "~5.6.0|^7.0.0", }, How do I write my module will be supported by ...