cancel
Showing results for 
Search instead for 
Did you mean: 

trouble installing Magento extension

trouble installing Magento extension

I am getting the following error message when Installing an extension.

 

Sorry, I am very new to Magento. Where do i find the referenced php files below? Also, any idea how to fix this error?

 

I do not have any SSL certificate installed at this point.

 

We found conflicting component dependencies. 

Command "require" failed:
In RemoteFilesystem.php line 559:

The "https://repo.magento.com/packages.json" file could not be downloaded:
allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in
the server configuration by allow_url_fopen=0
failed to open stream: no suitable wrapper could be found)

5 REPLIES 5

Re: trouble installing Magento extension

Hi @funloveralways,

You doesn't need for ssl.

You need to enable allow_url_fopen on your php server.

allow_url_fopen=1;
For more  info : https://stackoverflow.com/a/17573587

and restart php then try.

I hope it will help you!

Re: trouble installing Magento extension

Hi,

 

I applied your suggested changes and restarted PHP, still getting the same error message.

 

What am I doing wrong here?

 

allow_url_fopen = On
allow_url_include = Off
display_errors = Off
enable_dl = Off
file_uploads = On
max_execution_time = 30
max_input_time = 60
max_input_vars = 1000
memory_limit = 756M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php73"
upload_max_filesize = 2M
zlib.output_compression = Off

Re: trouble installing Magento extension

Hi @funloveralways 

Can you share the steps which you followed?

and also the screenshot of the error.

Re: trouble installing Magento extension

Hi,


Well basically I did the following:

 

1. My server is with Godaddy, its a VPS Server with C-Panel and WHM

2. I did somehting different this time.

 

a) I used C-Panel MUlti PHP INI Ediotr.

b.) Selected PHP version 7.3 only.

c) Enabled allow_url_fopen=1;

d) Apply

 

restarted PHP.

 

Now I am getting a different error message.

 

Check Component Dependency

We found conflicting component dependencies. Hide detail

 

For additional assistance, see component dependency help .

 

here is the composer.jason code

 

{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"require": {
"magento/product-community-edition": "2.3.3"
},
"require-dev": {
"allure-framework/allure-phpunit": "~1.2.0",
"friendsofphp/php-cs-fixer": "~2.14.0",
"lusitanian/oauth": "~0.8.10",
"magento/magento-coding-standard": "~3.0.0",
"magento/magento2-functional-testing-framework": "2.4.5",
"pdepend/pdepend": "2.5.2",
"phpmd/phpmd": "@stable",
"phpunit/phpunit": "~6.5.0",
"sebastian/phpcpd": "~3.0.0",
"squizlabs/php_codesniffer": "~3.4.0"
},
"conflict": {
"gene/bluefoot": "*"
},
"autoload": {
"psr-4": {
"Magento\\Framework\\": "lib/internal/Magento/Framework/",
"Magento\\Setup\\": "setup/src/Magento/Setup/",
"Magento\\": "app/code/Magento/",
"Zend\\Mvc\\Controller\\": "setup/src/Zend/Mvc/Controller/"
},
"psr-0": {
"": [
"app/code/",
"generated/code/"
]
},
"files": [
"app/etc/NonComposerComponentRegistration.php"
],
"exclude-from-classmap": [
"**/dev/**",
"**/update/**",
"**/Test/**"
]
},
"autoload-dev": {
"psr-4": {
"Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
"Magento\\Tools\\": "dev/tools/Magento/Tools/",
"Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
"Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
"Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
}
},
"version": "2.3.3",
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://repo.magento.com/"
}
],
"extra": {
"magento-force": "override"
}
}

Re: trouble installing Magento extension

Please note I am running multiple versions of HHP, as I need them for an old software.


Do you think that might be the issue?