Magento installation, validation(valid URL) problem/error

There is a validation problem arise when I try to install Magento in my localhost at the filed Base URL and showing message “Please enter a valid URL. Protocol is required(http://, https:// or ftp://)“.

Yes, everything is ok there, but to solve this problem you have to block/comment few lines of code

['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
}],

To

/*  ['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
}], */

at (line# 505) validation.js in YourSiteName\js\prototype\ folder. Just block/comment the above code and continue. 🙂

One thought on “Magento installation, validation(valid URL) problem/error

  1. Simply wish to say your article is as asnuindotg. The clearness for your post is just nice and i could suppose you’re a professional on this subject. Well along with your permission let me to snatch your feed to stay updated with forthcoming post. Thank you one million and please carry on the gratifying work.

Inspire Me :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s