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.

1
vote
2answers
31 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
22 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
28 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
48 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
28 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
29 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
34 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
31 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
45 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
152 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
31 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
225 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
17 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
35 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
28 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
36 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
32 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
46 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
13 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
64 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
108 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
31 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
311 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
50 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
51 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
68 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
22 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
152 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
23 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
90 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
114 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
25 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
75 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
39 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 ...
1
vote
0answers
14 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
19 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 ...
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
18 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 ...
1
vote
2answers
386 views

Magento 2.3 composer install issue

I am tring to install to get vendor files in magento 2.3 instance using composer.But i am getting following log: dealsouq@dcwsrv2401:~/public_html$ composer install Loading composer ...
1
vote
2answers
113 views

Magento Twitter Bootstrap 4 composer conflict

When I try and install Magento via composer I'm running into some kind of conflict with twitter bootstrap. If I remove the bootstrap dependency("twbs/bootstrap": "4.1.0") everything install correctly. ...
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 ...
1
vote
0answers
36 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 -&...
0
votes
0answers
111 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 ...
1
vote
1answer
307 views

Cron not working and Cron log showing Fatal error: Allowed memory size of 33554432 bytes exhausted

I have getting this error in magento 2. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 28672 bytes) in /home/www/public_html/website.com/vendor/composer/composer/...
3
votes
1answer
255 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 ...
0
votes
1answer
331 views

Magento 2.2.4 Composer Patch Failed: “1 out of 1 hunk ignored”

Applying patch to v2.2.4 for Github issue 14968, but I keep getting hunk fails error. After looking Looking here: SUPEE-9767 - Hunk #1 FAILED at 225. 1 out of 1 hunk FAILED I believe the problem is ...
0
votes
1answer
138 views

Copy files from /vendor/* to another server? Mailchimp installation without composer

My shared hosting doesn't allow me to use composer install (php memory limit error). So I had to install to my clone magento2 on xampp server. http://wiki.ebizmarts.com/installation-guide-m4m2 below ...