it say its not valid ... if i change it to http://dev.com/magento-shop.com it works ... but i must change the base url in database back to \"http://dev/magento-shop.com\" !
I am experiencing a similar problem.
With localhost address the field validation fails: http://localhost/magento2 - which is a valid domain name.
After changing the url to “http://localhost.com/magento2” as in previous post, the validation goes well, but after submitting the data to proceed to the next step of the installation, it reloads the same “Web Access Options” page, resetting the values.
A temporary fix: just disable the validation check in the css property of the input field.
Use a tool like Firebug to edit the html of the page, delete the css property “validate-url” of the input field and re-submit the form, it should go without any problems, overriding the validation.
As said this is a temporary fix to just proceed with an installation. I think the problem is in the js library and the validation patterns.
Future releases of Magento should consider also the localhost installation (as there are more modifications to do in order to function properly in localhost environment).
['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) }],
['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) }],
The current validation pattern requires a domain name extension, so that domains like http://localhost/ or http://dev/ are not accepted.
Clearly these domains are for developement use only, in a standard production environment the validation works correctly.
['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) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v) }],
Hello, brothers.
Sorry for my bad english, i am brazilian…
Ok, to solve this problem is so simple, go to the line 500 of /js/prototype/validation.js and you will replace this:
['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) }],
to this:
['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) { return true }],
Your problem will be solved!
That post is my first contribuition on forum, so sorry for my english.
Hello, brothers.
Sorry for my bad english, i am brazilian…
Ok, to solve this problem is so simple, go to the line 500 of /js/prototype/validation.js and you will replace this:
['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) }],
to this:
['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) { return true }],
Your problem will be solved!
That post is my first contribuition on forum, so sorry for my english.
Yes, a very fast solution!
Be careful, though, as you are completely disabling the validation function inside Magento, it can be dangerous.
A bit of regex coding should be the best approach…
That was helpful, and now my installation isn’t complaining about the URL.
Instead, it keeps re-drawing that same page and asking for the information all over again. I’ve provided values for all the *-tagged fields, and still no love.
Groan.
I’m trying to install Magento to compare against Avetti.
Hi,
If you are trying to install in localhost and using Xampp your url will be http://127.0.0.1/and if you are using any other local server then please see in control panel of your local server you can find localhost url in the form of ip when you use this url you can easily pass base url validation
Hi,
If you are trying to install in localhost and using Xampp your url will be http://127.0.0.1/and if you are using any other local server then please see in control panel of your local server you can find localhost url in the form of ip when you use this url you can easily pass base url validation