We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
90 views

Autoload error: Vendor autoload is not found. Please run 'composer install' under application root directory in Magento 2

I cloned one gitlab project into the local system in windows. When I am running the project it shows the error like this. Vendor autoload is not found. Please run 'composer install' under the ...
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/...
0
votes
2answers
142 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/...
2
votes
1answer
613 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 ...
0
votes
1answer
664 views

Why wont my extension update using composer?

I am trying to update Amasty Layered Navigation. Following their documentation it says to type in the command- composer update amasty/shopby When I do that it says Package "amasty/shopby" listed ...
2
votes
2answers
284 views

Is it safe to have composer in production?

Is it safe/ok to have composer in production on a server hosting Magento?
0
votes
2answers
367 views

Plugin class Magento\NewRelicReporting\Plugin\StatePlugin doesn't exist

I just update my Magento 2.2 core components using the command composer update -vvvv and then I got a lot of updates which caused this issue below when I tried to run php bin/magento setup:upgrade. ...
0
votes
0answers
25 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
3answers
48 views

How to deploy to production server customizations made in vendor folder?

So, We have 3 environments: development, staging and production. .gitignore file includes "vendor" folder and it has been working fine for us fine. Once We pull changes in Staging We would just run: ...
4
votes
5answers
7k views

Why I'm having errors after install an update from 2.1.0 to 2.1.2 with composer?

Errors after installing update from 2.1.0 to 2.1.2 PHP Warning: require(/var/www/vendor/composer/../../app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or ...
6
votes
1answer
982 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; ...
0
votes
1answer
776 views

How to use a library using composer in a Magento 2 module

At the moment I'm developing a module for Magento 2. I'm using a third party library ("twizo/lib-api-php") and installed it using composer. When I use a class from this library, Magento gives me the ...
0
votes
1answer
87 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
101 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....
1
vote
1answer
652 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-...
6
votes
3answers
489 views

how to install extension without composer

I want to install this extension in my project where i have integrated a new template :evincemage/module-trackorder . I tried with empty project(without template ) it works but with template it does '...
0
votes
0answers
15 views

composer installed.json emptying

My installed.json randomly gets empty what causes composer errors at magento page, It happens randomly, mostly after php bin/magento setup:upgrade command. The only solution I can fix it is composer ...
2
votes
2answers
124 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 ...
0
votes
0answers
22 views

I can not install anything via Setup Wizard

I'm using magento 2.2.6. I used to have an error on the ComponentDependencies in the readiness check. I passed that error, by removing the: "require-dev": { "phpunit/phpunit": "~6.2.0", ...
2
votes
1answer
56 views

Composer invalid Argument exception PHP requirement (7.2.10)

I'm trying to install a custom Magento2 module using composer. The module version is 2.4.0, here below my composer.json file: { "name": "fattura24/app-fatturazione", "description": "Module to ...
1
vote
0answers
53 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
1answer
31 views

how to open composer in/for cpanel.?

I am working on a magneto 2 site and everywhere I go there is written run this command and run that command but no explain how can I open that command line or composer. please explain
0
votes
1answer
37 views

setting up local environment from private git

I started a new project and am pretty new to Magento 2. The person gave me access to there personal git repo with there magento that they use fro production. They also gave a dump of the database. ...
0
votes
1answer
95 views

Errors Installing Data Migration 2.2.0 Tool with Composer

Running the different commands below and getting errors with each of them. How do I get the data migration tool to install? I also pasted in our composer.json file below. First Attempt This one ...
1
vote
2answers
309 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?
2
votes
2answers
1k views

Magento 2: Composer install for my own module

I'm have my own magento 2 module. It's allready uploaded on Gitlab. What i must do to install this module using composer require?
0
votes
1answer
40 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
21 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
100 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
504 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
266 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
26 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
65 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
34 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
84 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 ...
1
vote
2answers
453 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: ...
2
votes
2answers
83 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
2answers
2k views

PHP requirement incompatible with your PHP version | Composer module installation error

I try to install an extension using the composer: composer require magenest/module-worldpay-and-subscriptions:2.0.0 And get this: [InvalidArgumentException] Package magenest/module-worldpay-and-...
2
votes
1answer
32 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
49 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
58 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
48 views

How to install composer in magento

I am trying to install composer using "composer install" from my command terminal display error.
0
votes
1answer
109 views

How upgrade magento 2 via composer to alternative version PHP

Alternate version php 7.0.24 - my site. Native version PHP 5.2.6 - my server. Composer doesn't want to update magento (it defined version PHP 5.2.6). How to specify for the script an alternative ...
1
vote
1answer
56 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 -- --...
1
vote
1answer
2k views

Class 'Mpdf\Mpdf' not found

I am trying to install the magento2-pdf-generator2 extension, but I first need to install the mpdf library, I ran the composer require mpdf/mpdf command and then ran php bin/magento setup:upgrade and ...
2
votes
0answers
47 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
210 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
93 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
1answer
55 views

Magento 2: Error After Installing Sample Data using Composer

Im using Magento 2.1.8 and I already installed the sample data using composer but after running this commands setup:upgrade, setup:di:compile, indexer:reindex, cache:clean, cache:flush and changing ...
1
vote
2answers
2k views

Running composer with php7.0

I have a server where I have two versions of PHP installed (PHP-7.0 and PHP-7.1). I also have two sites one using magento2.1.5 (running PHP-7.0.18) and the other a Code Ignitor project(running PHP-7.1....