Skip to main content

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
0 votes
1 answer
87 views

Composer showing error during version upgrade from 2.3.6 to 2.4.7-p1

While upgrading Magento, I updated all plugin versions to be compatible with the new version and PHP 8.3. I also removed unnecessary plugins and added some from the 2.4.7-p1 composer as well. While ...
Haider Mohammed's user avatar
0 votes
0 answers
13 views

Suddenly getting composer errors when updating extension?

Magento 2.4.6-p5 Suddenly I am getting weird error messages when updating one of my extensions. It starts with Install of ramsey/collection failed ... and goes on and on. I am using composer 2.2 and ...
user4095519's user avatar
0 votes
3 answers
406 views

after upgrade magnento 2 version 2.3.4 to 2.4.6-p6

recently i was upgrade magento 2.4.3 to 2.4.6-p6 for upgrade i fired below cmd composer require magento/product-community-edition 2.4.6-p5 --no-update composer update --ignore-platform-reqs after ...
Bhagyesh Bhalodiya's user avatar
0 votes
0 answers
34 views

Magento 2 - Could not find package magento/project-enterprise-edition with version 2.4.4-p3

I had an issue as below Could not find package magento/project-enterprise-edition with version 2.4.4-p3 Which happen when I run below command to install the fresh project composer create-project --...
Mohd Farhan Bin Ramli's user avatar
0 votes
1 answer
36 views

"Vendor autoload is not found." ..while file exists and composer is installed

I am currently getting the; Autoload error Vendor autoload is not found. Please run 'composer install' under application root directory. Error when trying to load the frontend of my website (fresh ...
ne0nlight's user avatar
  • 209
0 votes
1 answer
63 views

Magento 2.4.6 cweagans module not applying patches

I have installed "cweagans" module and added patch configurations to composer.json file but when I run "composer install" it's not applying the patch and it's not giving any error. ...
GCS's user avatar
  • 11
0 votes
1 answer
306 views

Magento 2.4.6 Localhost Install Windows 11

I am having issues installing Magento2 on my local machine. I have been following this tutorial but I run into the same issue where my localhost/magento2/pub/ page doesn't display content. I have been ...
Kage Dev's user avatar
1 vote
2 answers
224 views

update magento issue

I'm trying to update my Magento but has some issues with the composer. When I try to use composer2 update, I get this: composer update Loading composer repositories with package information ...
Jan-petter Havna's user avatar
1 vote
3 answers
243 views

Facing issue in composer.json file for an extension

I have mentioned in my one of extension in composer.json. Could anyone tell what does it mean. I think it means that the php version should be greater than 7.4.0 but less than 8.2.0 but when i ...
Tisha Jhanwar's user avatar
1 vote
1 answer
135 views

unable to install composer for Magento 2.4.6 setup throws socket error in windows

While Installing the composer throws the following error The PHP exe file you specified did not run correctly: C:\xampp\php\php.exe The php.ini used by your command-line PHP is: C:\xampp\php\php.ini ...
Jaisa's user avatar
  • 2,626
1 vote
0 answers
67 views

URL change for source and dist in composer.lock

I have updated the magento version from 2.4.2 to 2.4.3 so when i checked the composer.lock file so it changed the all URLs for github. Please help me on this why this issue occuer.
Kushal Dani's user avatar
  • 2,134
0 votes
1 answer
44 views

Magento 2 manual Installation

Whenever we install magento by downloading magento zip(Manually), Magento core modules are stored in app/code/magento folder. How magento update works when we want to upgrade older versions to new ...
user3411's user avatar
  • 134
0 votes
1 answer
587 views

Magento2 file could not be downloaded: Failed to open stream: Network is unreachable

The "http://repo.packagist.org/p/paypal/module-braintree-graph-ql%245690cb72028a8444b0f87c92557cb7e772f5e673c323118e1a18304afae1eb14.json" file could not be downloaded: Failed to open ...
Arjun's user avatar
  • 3,586
0 votes
2 answers
474 views

Error updating Magento 2.3.0 to 2.4.6 using Composer - Command 'require-commerce' not defined

I am trying to update my Magento 2.3.0 installation to the latest version Magento 2.4.6 using Composer. However, when running the command: composer require-commerce magento/product-community-edition 2....
Aniket Singh's user avatar
1 vote
2 answers
88 views

How to install Mailchimp in magento 2.4.5

I am trying to install MailChimp in the following way but unfortunately, it did not work for me. composer require mailchimp/mc-magento2 composer require mailchimp/mc-magento2:103.4.53
kiran's user avatar
  • 597
1 vote
1 answer
239 views

Could not apply patch! Skipping

Facing a strange issue when applying patch with composer install (I have added correct patch file path in composer.json). When running "composer install" it is throwing error "Could not ...
Parbat Singh's user avatar
0 votes
1 answer
1k views

update 2.3.4 > 2.4.x, composer update: composer-root-update-plugin, it could not be found in any version

Hi i am try to update magento from 2.3.4 to 2.4.x. I am followed those guides: https://www.codextblog.com/magento-2/upgrade-magento-version-2-3-x-2-4-0/ https://www.mgt-commerce.com/tutorial/how-to-...
Hector Solutions's user avatar
1 vote
3 answers
2k views

magento 2.4.5-p2 to 2.4.6 composer update error

magento 2.4.5-p2 to 2.4.6 composer update error Problem 1 - symfony/config[v4.0.0, ..., v4.4.8] require php ^7.1.3 -> your php version (8.1.18) does not satisfy that requirement. - Root composer....
matinict's user avatar
  • 1,559
0 votes
1 answer
53 views

How to Upload metapackage in marketplace?

I'm trying to upload a theme on Marketplace. I have uploaded dependent module packages in shared packages section and my main theme package in the theme section. Theme should call other shared modules....
Mehreen's user avatar
  • 11
3 votes
2 answers
1k views

magento 2.4.6 installation failed due to Plugin initialization failed (require(app/etc/NonComposerComponentRegistration.php): Failed to open stream

PHP version: 8.1 composer: 2.2.0 Trying to fresh installed Magento open source 2.4.6 using the below command composer create-project --repository-url=https://repo.magento.com/ magento/project-...
Amit Bera's user avatar
  • 77.6k
0 votes
1 answer
1k views

Could not apply patch! Skipping. The error was: Cannot apply patch patches/composer/filename.patch

I have downloaded magento2 site from server, and now I am installing it in my localhost. During composer install command I am facing this error Could not apply patch! Skipping. The error was: Cannot ...
Sanaullah Ahmad's user avatar
0 votes
1 answer
528 views

Magento 2.4.5 | GraphQL endpoint returns 404 | module-graph-ql packages not installed

I'm facing an issue where my 2.4.5 https://<magentostore>/graphql endpoint is returning a 404. After some research it seems that none of the Magento GraphQl packages are installed by composer. ...
Leander Matse's user avatar
0 votes
1 answer
61 views

Composer Patch for Third-Party module fixes

I'm running into a scenario where I need to create a new model to fix some issues with a third-party package and modify a few files. I have created a composer patch to modify the files but not sure, ...
user8305827's user avatar
0 votes
2 answers
239 views

Is it recommended to include composer.lock file in magento 2 extension?

Is it recommended to include composer.lock file in magento 2 extension? I have a situation where our module is dependent on third-party dependencies. Sometimes we need to ask the merchants to run ...
Mehar's user avatar
  • 205
0 votes
2 answers
103 views

marketplace.magento.com extension install

I've been messing around with magento 2 for some time now and especially composer. find out what all the command lines are. downloading extensions and unpacking them in the right folder also works ...
joel's user avatar
  • 13
1 vote
2 answers
3k views

Errors in composer when trying to install extensions via composer

Magento ver. 2.4.5-p1 Smartwave Porto theme I am trying to install the 'Multiple Shipping Flat Rates' extension from Mageplaza as per a recommendation here: Easiest way to add a second flat rate ...
Allysin's user avatar
  • 260
0 votes
1 answer
139 views

Proper ways to upgrade a module in the Magento Cloud

I was wondering what the proper steps are to upgrade a third-party vendor module. This is what I have done: Removed the old version and added the new version in the composer.json file. Pushed to ...
Milan Chandro's user avatar
0 votes
1 answer
61 views

How to install Magento Shared Packages?

I have a magento extension Vendorname/module1-core I have now uploaded a shared packaged which is approved vendorname/module1-extension moodule1 extension has a require section with "...
Rohan Dmello's user avatar
0 votes
1 answer
603 views

Magento 2.4.6 on Nexcess - Address Validation Error

I updated my Magento site to CE 2.4.6 (from CE 2.4.5-p1) running on Nexcess. I've shipped to this address before so I know it's valid and the shipping lookup works. It fails when I click "Next&...
Mike L-SJC's user avatar
0 votes
1 answer
52 views

How to prevent your custom .gitignore file to be overridden?

Running composer install I have my .editorconfig and .gitignore overriding. Is there any way to avoid it?
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
568 views

magento2 cloud composer.lock file not updated

I am trying to push code from my local to staging and getting the below error. Shouldn't on deploy magento update the composer.lock file based on what's in my json composer file? I am not getting how ...
Jayreis's user avatar
  • 725
0 votes
3 answers
1k views

How to install magento 2.4.5-p1 latest version on LAMP using Composer with sample data?

How to install Magento 2.4.5-p1 latest version on LAMP using Composer with the sample data?
Jitendra Patel's user avatar
0 votes
1 answer
191 views

Error after upgrading Magento 2.4.3 to 2.4.5 match

syntax error, unexpected token "match", expecting variable#0 /httpdocs/vendor/composer/ClassLoader.php(432): Composer\Autoload\ClassLoader::Composer\Autoload\{closure}() #1 [internal ...
Daniel Miguel Martínez's user avatar
1 vote
0 answers
318 views

Class Zend\Console\Response does not exist After Magento 2 upgrade

After upgrade from Magento 2.4.2 to 2.4.4, and run bin/magento setup:di:compile I got this error Class Zend\Console\Response does not exist This is my composer.json file { "name": "...
tarek fellah's user avatar
0 votes
1 answer
60 views

How to upgrade Magento in live site?

I am working Magento2.3.4 in live site. I'd like to upgrade Magento2.4.5. so I cloned live site in subdomain. In this case, how can I upgrade Magento? I want to test in subdomain and then put in live ...
Bohdan V.'s user avatar
2 votes
3 answers
3k views

Upgrading from Magen2.3.4 to 2.4.5

I am using Magento 2.3.4 now. I want try to Magento 2.4.5. But I don't upgrade Magento. when run command in cpanel terminal, show error like this. $ composer require magento/product-community-edition ...
Bohdan V.'s user avatar
0 votes
1 answer
301 views

Magento 2 while upgrading an error of requires facebook/php-business-sdk but these conflict

We are using Magento 2 We are able to install Facebook Business SDK installation via composer but when we are trying to install facebook-for-magento2(https://marketplace.magento.com/facebook-facebook-...
sumeet bajaj's user avatar
  • 1,316
1 vote
1 answer
1k views

Magento 2 error: MiBsyntax error, unexpected ')', expecting variable in vendor/composer/ClassLoader.php(428)

I am a bigginer in magento 2 I came across with this error when hit sudo php bin/magento setup:di:compile Looks like the issue is inside the ClassLoader.php file so i remove the classLoader.php and ...
HamzaKhalid273's user avatar
1 vote
0 answers
37 views

Composer installs Extensions to /vendor but Magento path is /app/code Fails to Load

I installed a magento extension via composer require I can see the files in /vendor but when I click on the extension from the admin panel it gives me an Exception that the Class does not exist as the ...
user109839's user avatar
1 vote
1 answer
75 views

Composer versioning (what does each number means?)

I realy didn't find any answer on simple queastion what doues each number(example: 1.0.0) in version means? I can imagine that minor major ones, like if our packege became 1.0.1 so some minor changes ...
Dmytro Hural's user avatar
0 votes
0 answers
1k views

Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in

Below is the error I get in store frontend. Warning: require(vendor/autoload.php): Failed to open stream: No such file or directory in /home/magento/web/mymagentostorename.com/public_html/poms/libs/...
CodeForGood's user avatar
0 votes
1 answer
1k views

Your requirements could not be resolved to an installable set of packages reponse

During installing Magento using Composer i get: Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.4....
magentoissuer's user avatar
0 votes
1 answer
262 views

Composer Install fails with Checksum on live search

I have a Cloud project that we have been working on for a few months. This was initially installed via composer and has been running fine for a while. Recently I had to reinstall the vendor folder and ...
Typhado's user avatar
  • 702
1 vote
3 answers
3k views

Composer update created error: require(vendor/magento/composer-root-update-plugin/registration.php): failed to open stream: No such file or directory

I have updated Composer to 2.4.4 as a prerequisite to updating Magento to 2.4.5, however now I'm getting errors in SSH when trying to run any other command and HTTP on a page execution: SSH: In ...
myshadowself's user avatar
0 votes
1 answer
181 views

create Magento package in packagist

I am trying to require my package newly setup in packagist and github in a magento local projet when I run command. composer require anasstouaticoder/magento2-module-instantconfigurationcopy but I am ...
lazy_coder's user avatar
1 vote
1 answer
1k views

Composer issue when updating magento version to 2.4.5-p1

When I run composer require magento/product-enterprise-edition=2.4.5-p1 -W I got the following error Problem 1 - magento/product-community-edition 2.4.5-p1 requires magento/module-catalog 104.0.5-...
LolKek's user avatar
  • 176
0 votes
1 answer
198 views

Risks of updating composer from 1.10.24 to 2.1.0 on a Magento 2 instance

I want to update Magento from 2.4.1 to 2.4.4-p2 and I need to do other updates first, including updating the Composer from 1.10.24 (current version) to at least 2.1.0. The issue is that my production ...
user avatar
1 vote
1 answer
510 views

Magento 2 composer update removes pub/media and all other important folders

After running composer update, composer starts upgrading and downloading. After that the update of packages are marked red "Update of name/module_name failed". And all my important folders ...
JuanPachanga's user avatar
1 vote
1 answer
735 views

Module doesn't work when placed in `app/code`

i'm editing a Magento 2 module. If i install the module via composer require, then run all the necessary commands, the module works. If i manually copy the module files from vendor/{vendorname}/{...
aetonsi's user avatar
  • 113
5 votes
2 answers
3k views

Updating from 2.3.5 to 2.4.4 gives magento/framework 102.0.5 requires php ~7.1.3||~7.2.0||~7.3.0 error

Magento 2.3.5 I am trying to update from Magento 2.3.5 to Magento 2.4.4-p2. The commands I executed are: composer require magento/product-community-edition=2.4.4-p2 --no-update --use-default-magento-...
user4095519's user avatar

1
2 3 4 5
15