rogue0104 Posted September 5, 2017 Share Posted September 5, 2017 heres the thing guys....during registration to the eshop i got this error you can try to register and see heres the shop www . korektor . org .................... ContextErrorException in PrestaShopTranslatorTrait.php line 57: Warning: vsprintf(): Too few argumentsin PrestaShopTranslatorTrait.php line 57 at ErrorHandler->handleError('2', 'vsprintf(): Too few arguments', '/data/web/virtuals/168714/virtual/www/domains/korektor.org/src/PrestaShopBundle/Translation/PrestaShopTranslatorTrait.php', '57', array('id' => 'The %1$s field is too long (%2$d chars max).', 'parameters' => array('email', '128'), 'domain' => 'ShopNotificationsError', 'locale' => null, 'translated' => '%1$s (%2$s) pole je príliš dlhé (maximálne %3$d znakov)')) at vsprintf('%1$s (%2$s) pole je príliš dlhé (maximálne %3$d znakov)', array('email', '128')) in PrestaShopTranslatorTrait.php line 57 at TranslatorComponent->trans('The %1$s field is too long (%2$d chars max).', array('email', '128'), 'ShopNotificationsError') in CustomerForm.php line 159 at CustomerFormCore->getEmailMaxLengthViolationMessage() in CustomerForm.php line 133 at CustomerFormCore->validateFieldsLengths() in CustomerForm.php line 125 at CustomerFormCore->validate() in CustomerForm.php line 183 at CustomerFormCore->submit() in AuthController.php line 62 at AuthControllerCore->initContent() in Controller.php line 205 at ControllerCore->run() in Dispatcher.php line 379 at DispatcherCore->dispatch() in index.php line 28 Link to comment Share on other sites More sharing options...
bellini13 Posted September 5, 2017 Share Posted September 5, 2017 it would seem to suggest that the email address being used is too long. i have no idea what email address you are trying to test with, is it long? Link to comment Share on other sites More sharing options...
rogue0104 Posted September 6, 2017 Author Share Posted September 6, 2017 no...i didnt use long email add for sure...well try yourself and see www . korektor . org is it not some error about translation? Link to comment Share on other sites More sharing options...
bellini13 Posted September 6, 2017 Share Posted September 6, 2017 if you suspect the translation is a problem, then you will need to look at the translated value you have for the following string. The original string is this... The %1$s field is too long (%2$d chars max). However your translated string is this... 1$s (%2$s) pole je príliš dlhé (maximálne %3$d znakov)', array('email', '128')) A few things I see wrong 1. You have 1$s where the original has %1$s 2. You have %2$s where the original has %2$d 3. You have %3$d where the original string does not Link to comment Share on other sites More sharing options...
rogue0104 Posted September 6, 2017 Author Share Posted September 6, 2017 if you suspect the translation is a problem, then you will need to look at the translated value you have for the following string. The original string is this... The %1$s field is too long (%2$d chars max). However your translated string is this... 1$s (%2$s) pole je príliš dlhé (maximálne %3$d znakov)', array('email', '128')) A few things I see wrong 1. You have 1$s where the original has %1$s 2. You have %2$s where the original has %2$d 3. You have %3$d where the original string does not well, could u navigate me where should i look for the string, which file? Link to comment Share on other sites More sharing options...
rogue0104 Posted September 7, 2017 Author Share Posted September 7, 2017 thx for replies...i did fresh installation and its sorted out. Link to comment Share on other sites More sharing options...
japutko Posted November 6, 2017 Share Posted November 6, 2017 Hi, I couldn't afford to do fresh installation so I changed the translation and got rid of this error in Prestashop 1.7.2.3. You can find the translation under International -> Translation -> Administration (Slovak language) -> just type "is too long" to the search bar and it should point you to right sections. I also changed the .xlf files because I couldn't proceed after this, however that was related to other issue. In case you're interested in those, they are AdminCatalogNotification.sk-SK.xlf, AdminNotiofocationsError.sk-SK.xlf, ShopNotificationsError.sk-SK.xlf. Cheers. Link to comment Share on other sites More sharing options...
Emadostore Posted November 26, 2018 Share Posted November 26, 2018 On 11/6/2017 at 7:12 PM, japutko said: Hi, I couldn't afford to do fresh installation so I changed the translation and got rid of this error in Prestashop 1.7.2.3. You can find the translation under International -> Translation -> Administration (Slovak language) -> just type "is too long" to the search bar and it should point you to right sections. I also changed the .xlf files because I couldn't proceed after this, however that was related to other issue. In case you're interested in those, they are AdminCatalogNotification.sk-SK.xlf, AdminNotiofocationsError.sk-SK.xlf, ShopNotificationsError.sk-SK.xlf. Cheers. I have the same error, when customer make order without registration - can you tell what you change in xlf files and in translation saction? Link to comment Share on other sites More sharing options...
amk9 Posted November 4, 2021 Share Posted November 4, 2021 On 11/26/2018 at 10:10 AM, Emadostore said: I have the same error, when customer make order without registration - can you tell what you change in xlf files and in translation saction? I observed this issue with a new install of prestashop_1.7.8.0.zip. Fix required a translation update that ended up in database table ps_translation as (7,1,'The %1$s field is too long (%2$d chars max).','Pole %1$s je príliš dlhé (maximálne %2$d znakov)','ShopNotificationsError',NULL) Will need to familiarize myself with the package and this platform to find the problematic xlf file and to submit a bug report with a diff. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now