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

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

  1. OCM 21/12/2010 at 5:09 AM

    The Magento Amazon Cloud e-commerce platform puts the control in the hands of the company, rather than a web design and development firm. Get the help you need to go through the process of making your website look and function professionally.

  2. Suresh 12/01/2011 at 10:49 PM

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

  3. rodrigo simoni 15/02/2011 at 8:40 AM

    Man, I love you!

  4. Dharmishtha 01/03/2011 at 5:13 PM

    Hi,
    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://)”.

  5. gabi fabio 02/03/2011 at 3:43 AM

    Merci j’ai failli abandonner,
    ceci dit avec prestashop ça se passe bien mieux

  6. Simon Gibson 10/03/2011 at 3:34 PM

    Thanks that solved the problem for me!

  7. Ayok 17/03/2011 at 10:18 PM

    You’re great! man… thank you!

  8. jeremy 08/04/2011 at 11:04 PM

    ZAJvk8 http://dhY3n0fjvTtj48mG9sFnCv.com

  9. Rookie 26/05/2011 at 9:58 PM

    Hi Sanjoy,

    This is Rookie…thanks fir this man..it was nice to work with you…
    You deserve a better job than sites n stores…
    U r a genies…

    Rookie

  10. olivier 08/06/2011 at 11:57 PM

    Bonjour et merci pour votre aide, mais…

    En 1.5.1, je suppose que les lignes à modifier sont la #505 à la #507

    Quand je fais ma modification, l’erreur n’apparaît plus, mais quand je clique sur “continue”, ça me recharge juste la page…Quelqu’un pourrait-il m’aider?

    Merci beaucoup,

    Olivier

  11. sunil 23/06/2011 at 4:20 AM

    I agree with olivier, this post was a life saver!
    In 1.5+ you would need to replace lines #505 to #507

    Works beautifully after that!

  12. Dave 12/09/2011 at 2:46 PM

    Added code…hit Continue.
    Loading database….
    {alt-tab} to this site – and added comment: Thank you!

  13. kornelius 30/12/2011 at 11:55 AM

    dude, awesome

  14. naruto mobile games 23/03/2014 at 7:09 PM

    Wow! At last I got a blog from where I be capable of really take useful facts regarding my study and knowledge.

  15. download rust 02/07/2014 at 11:31 PM

    Your way of explaining the whole thing in this piece of writing is in fact good, all can easily understand
    it, Thanks a lot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: