Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

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.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Wordpress Social Share Plugin powered by Ultimatelysocial