Home » Interview Question » Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2

Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2

Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2

When you install Magento on your local machine some time you stuck at "Web access option" steps where over application base url "http://localhost/magento/" is not recognize from magento and given a validation error "Please enter a valid URL. Protocol is required (http://, https:// or ftp://)".To sove these problem we have two Methods.

base_url_install_error

Method 1: Find the "localhost" in your base url Replace Localhost with your local ip address(IPv4 loopback address) 127.0.0.1 Now Click on the submit button and complete your magento installation.

Method 2 :If you have istall firebug on your browser inspact the Base url field in firebug or Press F12 and inspect the Base field, you have seen a class is aplay on base url field class="required-entry validate-url input-text" remove the "validate-url" class name in firebug. Now click on countinue or submit button.You have successfuly install Magneto in your local Machine.

Or you can remove this class manually from magento phtl file

  1. Go to \app\design\install\default\default\template\install\config.phtml and open file in your editor.
  2. Find label for="base_url" and remove "validate-url" from this field.
  3. Now click on countinue or submit button.You have successfuly install Magneto in your local Machine.
, , , ,

One thought on “Please enter a valid URL. Protocol is required (http://, https:// or ftp://) in Magento 1.9.2

  1. Juan says:

    Thanks bro. Works fine for me ;)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">