View Issue Details

IDProjectCategoryView StatusLast Update
0004706OXID eShop (all versions)4.06. Language and translationspublic2012-11-15 13:52
Reporterd3 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version4.6.6 revision 54646 
Summary0004706: wrong error message at forgot password method / wrong language mapping
Descriptionin /application/controllers/forgotpwd.php Line 87 - 89:

// problems sending passwd reminder ?
if ( !$sEmail || !$oEmail->sendForgotPwdEmail( $sEmail ) ) {
   oxRegistry::get("oxUtilsView")->addErrorToDisplay('FORGOTPWD_ERRUNABLETOSEND', false, true);

....

expectation:
you don't know why, but e-mail couldn't be send.

reality:
in /application/views/azure/de/map.php you have this mapping:
'FORGOTPWD_ERRUNABLETOSEND' => 'ERROR_MESSAGE_PASSWORD_EMAIL_INVALID',
in german:
/application/translations/de/lang.php
'ERROR_MESSAGE_PASSWORD_EMAIL_INVALID' => "Die eingegebene E-Mail-Adresse ist ungültig. Bitte geben Sie eine gültige E-Mail-Adresse ein.",

and in english:
'ERROR_MESSAGE_PASSWORD_EMAIL_INVALID' => "The e-mail address you have entered is invalid. Please enter a valid e-mail address.",


better would be:
in /application/views/azure/de/lang.php
'FORGOTPWD_ERRUNABLETOSEND' => 'E-Mail konnte nicht versendet werden, bitte...',
in /application/views/azure/en/lang.php:
'FORGOTPWD_ERRUNABLETOSEND' => 'E-Mail couldn\'t send, please...',



Steps To ReproduceInstall on localhost a eShop.
Don't use any mailserver on you shop (and server...).
click on password forgotten link
enter valid e-mail addres

you got a wrong text
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Relationships

has duplicate 0004341 resolvedaurimas.gladutis Always shows incorrect email message when requesting to remind password, when server misconfigured. 

Activities

aurimas.gladutis

2012-11-15 13:52

reporter   ~0007864

FORGOTPWD_ERRUNABLETOSEND was mapped with MESSAGE_NOT_ABLE_TO_SEND_EMAIL,
FORGOTPWD_ERREMAILINVALID added and mapped to ERROR_MESSAGE_PASSWORD_EMAIL_INVALID.
Now correct messages should be shown.