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

来源:互联网 发布:遵义广电网络客服电话 编辑:程序博客网 时间:2024/06/05 07:56

安装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 grin


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

0 0
原创粉丝点击