Magento installation problem in localhost – [validate-url] – Please enter a valid URL. Protocol is required…

Comment line no. #501 in \magento-1.4.2.0\js\prototype\validation.js file by code below:
like below i did

['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)
return true;
}],

it will works :)

2 comments

add comment
watch99 (4 years ago)

it work!!

Sudhir Tiwari Sudhir Tiwari (4 years ago)

Yeah… Guys u can just register to the site so you can post your comments for other developer who were stuck on any points.

Leave Comment

*