magento-2-smtp icon indicating copy to clipboard operation
magento-2-smtp copied to clipboard

composer exception M2.4.3

Open sugosol opened this issue 4 years ago • 4 comments
trafficstars

Preconditions (*)

  1. magento 2.4.3 open source

Steps to reproduce (*)

  1. composer require mageplaza/module-smtp

Expected result (*)

  1. module installed

Actual result (*)

Installation failed, reverting ./composer.json to its original content. [Exception]
Higher matching version 4.5.3 of mageplaza/module-smtp was found in public repository packagist.org than 1.7.0 in private https://repo.magento.com. Public package might've been taken over by a malicious entity,
please investigate and update package requirement to match the version from the private repository

sugosol avatar Sep 03 '21 14:09 sugosol

Hi,

Sorry for the late reply. We will check this out, but to be able to install the SMTP module quickly please try to install the module manually by installing the SMTP module in the app/code/Mageplaza directory. Then run the setup and deploy commands to activate the module.

Try it and let me know the results. Thank you!

HuyPhuc98 avatar Sep 13 '21 11:09 HuyPhuc98

Setting composer.json from:

"repositories": { "0": { "type": "composer", "url": "https://repo.magento.org/" }, ...

to

"repositories": { "0": { "type": "composer", "url": "https://repo.packagist.org/" }, "1": { "type": "composer", "url": "https://repo.magento.com/" }, ...

solved problem

sugosol avatar Oct 08 '21 13:10 sugosol

Hi,

I've experienced exactly the same issue. Changing composer.json did work, but I don't think it's a good idea having this issue alive. Should you update Marketplace version? Remove it?

paugnu avatar Nov 12 '21 05:11 paugnu

I agree with @paugnu. Either update the market place extension or just remove it from the market place. Changing Magento core files to overcome this issue is a bad idea. Thank you!

uandiweb avatar Dec 09 '21 19:12 uandiweb