阳朔高铁站到西街多久:[magento]Please enter a valid URL. Protocol is required (http://, https:// or ftp://)

来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 01:29:10

安装magento时遇到“

Please enter a valid URL. Protocol is required (http://, https:// or ftp://)

”这个问题,谢谢Jerome的回答,想法挺活跃的,就是不知道是不是像他说的那样“it works like a cake !!! ”,haha..

 

I came across with the same problem. Let me share how i over came it.

1. Go to js\prototype and open the file “validation.js”. (FYI : All the validation takes place through this script on both front end and back end)

2. Find this line and remove it / Comment it

[’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)
}],

3. Now continue your installation it works like a cake !!!

4. After your installation, Don’t forget to add it / uncomment it for validation of URLs in future

If you have any difficulties with this kindly let me know !!!

Wish You a Happy and Great New year 2011 with Magento

REGARDS,
Jerome Denis D
http://haijerome.wordpress.com
haijerome@gmail.com
+919846219974
Magento Consultation | Magento customization