您的位置:首页 > 理论基础 > 计算机网络

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

2014-02-20 21:30 357 查看
安装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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐