Magento2: Found 2 elements with non-unique id #email: magento 2 contact

Created on 25 Apr 2018  Â·  8Comments  Â·  Source: magento/magento2

Getting below error on Magento 2 contact page in console.

[DOM] Found 2 elements with non-unique id #email: (More info: https://goo.gl/9p2vKq)

<input name=​"email" id=​"email" title=​"Email" value class=​"input-text" type=​"email" data-validate=​"{required:​true, 'validate-email':​true}​" aria-required=​"true">​ 
<input name=​"username" id=​"email" type=​"email" class=​"input-text" data-bind=​"attr:​ {autocomplete:​ autocomplete}​" data-validate=​"{required:​true, 'validate-email':​true}​" autocomplete=​"off">​

screen shot 2018-04-25 at 7 18 12 pm

Fixed in 2.3.x Clear Description Format is not valid good first issue up for grabs

Most helpful comment

this is not fixed in 2.2.5 fyi -sorry

All 8 comments

Hi,
PR is done for 2.3-develop
2.2-develop is already done in commit : https://github.com/magento/magento2/commit/781ec89aaca6e6ee2853e98065416614f2edffce
Thanks

Hi @shivkumarsingh7. Thank you for your report.
The issue has been fixed in magento/magento2#14867 by @julienanquetil in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

@julienanquetil thank you :)

Closing this now, as it seems to be fixed in 2.3-develop and 2.2.4

this is not fixed in 2.2.5 fyi -sorry

@ishakhsuvarov This is still a bug in magento 2.2.5 .

@artskeem, @milossh: it is fixed in 2.2.4 and 2.2.5 on the contact page, I've just verified this on a vanilla installation.
Make sure you have no customisations done where it still uses a id="email" somewhere. Maybe you overwrite the authentication-popup.html file in your custom theme? Or maybe some 3rd party module inserts that somewhere?

@hostep I have Porto theme, with latest patches.

Was this page helpful?
0 / 5 - 0 ratings