Failed to resolve "magento-community" host error when installing Magento modules

I tried installing Module Creator using magento-community/Netz98_ModuleCreator and I get the error Couldn't resolve host 'magento-community' .

Then I used the site to download the extension and install it that way, and I get this error for this Netz98_ModuleCreator-1.0.0.tgz .

CONNECT ERROR: package file is invalid
Invalid version should look like this: xxx
Invalid URL Invalid Channel URL Stability
Empty authors section Empty package contents

Please, help!

+8
magento
source share
3 answers

Starting with Magento 1.5.0, you must use the optional Magento Connect 2.0 key.

The developer of this extension only made it compatible with Magento 1.3. You can download the extension package (.tgz archive), extract it, and manually put the files into an instance of Magento. Use package.xml to locate the file.

+15
source share

Installation instructions for the creator of the Magento module:

1) Log in to the magento admin panel

2) Go to System-> Magento Connect-> Magento Connect Mmanager

3) Go to Settings-> Preferred state: β†’ change stability to beta

4) Go to Extensions-> Install New Extensions-> use this key: - http://connect20.magentocommerce.com/community/Netz98_ModuleCreator- > click install-> click ready to install

5) After a successful installation, go to the favourate file manager go to the path: app / code / core / mage / captcha / model / observer.php

and change

 public function checkUserLoginBackend($observer) { $formId = 'backend_login';        $captchaModel = Mage::helper('captcha')->getCaptcha($formId);        $loginParams = Mage::app()->getRequest()->getPost('login');        $login = array_key_exists('username', $loginParams) ? $loginParams['username'] : null;        if ($captchaModel->isRequired($login)) {            if (!$captchaModel->isCorrect($this->_getCaptchaString(Mage::app()->getRequest(), $formId))) {                $captchaModel->logAttempt($login);                Mage::throwException(Mage::helper('captcha')->__('Incorrect CAPTCHA.'));            }        }        $captchaModel->logAttempt($login);        return $this;    } 

TO

 public function checkUserLoginBackend($observer)    {        $formId = 'backend_login';        $captchaModel = Mage::helper('captcha')->getCaptcha($formId);        $login = Mage::app()->getRequest()->getPost('username');        if ($captchaModel->isRequired($login)) {            if (!$captchaModel->isCorrect($this->_getCaptchaString(Mage::app()->getRequest(), $formId))) {                $captchaModel->logAttempt($login);                Mage::throwException(Mage::helper('captcha')->__('Incorrect CAPTCHA.'));            }        }        $captchaModel->logAttempt($login);        return $this;    } 

6) If you are using linux / unix

Go to terminal-> go to project folder magento-> type chmod 777 -R / var / www / your-project-folder /

7) open the url in the browser and add / moduleCreator after it

8) Done. Now you can create a module.

Good luck.

0
source share

The solution to this problem is very simple, but sometimes it takes time to get to this point. That's why I am providing a simple solution here so that it can work for the community.

If you want to install the extension using the connection manager, for example. "community/Test_Extension" .

You will need to write this as follows: http://connect20.magentocommerce.com/community/Test_Extension

But when you try to set this community/Test_Extension , it will give you the opportunity to not resolve problems with the host name.

0
source share

All Articles