39

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

While installing Magento, I am facing error for web validation in Magento 1.9.2

Vinh VO
  • 705
  • 1
  • 7
  • 28
DoYouLoveMe
  • 447
  • 1
  • 5
  • 10

8 Answers8

78

Resolve this issue by the following methods (from good to worse):

1) Inspect the url field and delete the class 'validate-url' to stop validation from the field and proceed the process. have a good Luck guys.

OR

2) just mark the "Skip Base URL Validation Before the Next Step" checkbox.

OR

3) use 127.0.0.1 instead of localhost like http://127.0.0.1/magento192/

Hassan Ali Shahzad
  • 2,439
  • 29
  • 32
51

We need to disable URL validation here.

Quick solution:

  1. Inspect "Base URL" input in firebug
  2. Remove "validate-url" from the list of classes
  3. Click "continue"
Binod Kalathil
  • 1,939
  • 1
  • 30
  • 43
  • 2
    Thanks! The same goes for Chrome - inspect the Base URL input box element, remove the class from the list of classes. – hajamie Nov 09 '15 at 13:22
10

While installing Magento in the local server, in the configuration section, you may be asked to enter the base url. But the installation wizard will not accept the local server url. It is because

Magento won’t consider the local server url as a valid url.

For this you need to remove the validation for the particular section.

Open \app\design\install\default\default\template\install\config.phtml

Find the textbox where the base url is entered. It will be around line no 85 with name ‘config[unsecure_base_url]‘ Remove ‘validate-url’ from its class and save the file.

OR

Use Ip of your localhost,

http://127.0.0.1/magento/

Wasim Khan
  • 1,177
  • 12
  • 13
10

There is also a "Skip URL validation" box down below, if you check it, you can ignore the validation. But for some strange reason you still have to write a "correct" address, as mentioned in other answers, meaning 127.0.0.1 instead of localhost.

gvlasov
  • 18,638
  • 21
  • 74
  • 110
5
Open \app\design\install\default\default\template\install\config.phtml

Find the textbox where the base url is entered. It will be around line no 85 with name config[unsecure_base_url]

Remove validate-url from its class and save the file.

Now you can continue the installation

It will work (Niraj)

LPs
  • 16,045
  • 8
  • 30
  • 61
Niraj
  • 51
  • 1
  • 1
3

For this you need to remove the validation for the particular section. Open app\design\install\default\default\template\install\config.phtml Find the textbox where the base url is entered. It will be around line no 50 and 94 with name ‘config[unsecure_base_url]‘ Remove 'validate-url' from its class and save the file. Working fine Please enter a valid URL. Protocol is required (http://, https:// or ftp://)

Pankaj Upadhyay
  • 2,114
  • 21
  • 22
0

use 127.0.0.1 instead of localhost is working fine

fahim
  • 40
  • 11
-2

NO much need to do all this.. you just need to go to web access checkbox options and see the base url checkbox text saying this simply::: check this option if url can not verify automatically.

check it and go on...