You are here:Home»KB»Web Design»eCommerce»Magento»Please enter a valid URL. Protocol is required (http://, https:// or ftp://)
Monday, 18 June 2012 16:57

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

Written by

 

I am completely new to Magento.
I am trying to set it up on my wamp server.

But, during installation in the Web Access Options section under the Base URL, it gives a suggestion http://localhost/magento,
yet when clicking on continue it warns with :"Please enter a valid URL. Protocol is required (http://, https:// or ftp://)”.


 

Just disable your javascript using web developer toolbar in firefox

or for a permanent fix

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  

or

 

Open \app\design\install\default\default\template\install\config.phtml and remove the class ‘validate-url’ from the base url input textbox. The textbox name is ‘config[unsecure_base_url]‘.

For more detailed information, visit our magento development blog.

www.blog.ecommercesoftwaresolutionsonline.com/archives/1014/magento-please-enter-a-valid-url-protocol-is-required-http-https-or-ftp-issue-in-magento-installation.html

Read 1614 times