Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

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


Replace line no. #500 to #503 in \magento-1.4.2.0\js\prototype\validation.js file by code below:

[‘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;
}],

Comments are closed.