Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with "formatting message" - invalid message pattern #2035

Closed
clairedc opened this issue Oct 17, 2016 · 8 comments
Closed

error with "formatting message" - invalid message pattern #2035

clairedc opened this issue Oct 17, 2016 · 8 comments
Labels

Comments

@clairedc
Copy link

I have this error message in my logs :
Formatting message for language 'fr' failed with error: Message pattern is invalid: msgfmt_create: message formatter creation failed: U_ILLEGAL_CHARACTER. The message being formatted was: {nFormatted} {n, plural, =1{# kilooctet} other{# kilooctets}}.

Could you please help me ?

Thanks

@buddh4
Copy link
Contributor

buddh4 commented Oct 18, 2016

Hi, which humhub version and where exactly does this occure?

@clairedc
Copy link
Author

My version is 1.1.1.
yii\i18n\I18N::format I don't know if there is a link but my cron jobs aren't working.

@cebe
Copy link
Contributor

cebe commented Oct 20, 2016

@clairedc

It is also recommended that you use an ICU version equal or greater than version 49. This will ensure you can use all the features described in this document. For example, an ICU version below 49 does not support using # placeholders in plural rules.
http://www.yiiframework.com/doc-2.0/guide-tutorial-i18n.html#setup-environment

please check the ICU version you have installed on your sever.

cebe added a commit to cebe/humhub that referenced this issue Oct 20, 2016
@clairedc
Copy link
Author

Hi,
My host provider doesn't want to change the ICU version. Do you think that this error is linked with my cron problems (cron jobs don't work on my humhub site) ?
Thank you.

@clairedc
Copy link
Author

clairedc commented Mar 1, 2017

Hi,
My version of Humhub is 1.2.0-beta.2 and my version of ICU is 52.1 and when I run my cronjobs, I have the following error message in my logs :
Formatting message for language 'fr' failed with error: Message pattern is invalid: msgfmt_create: message formatter creation failed: U_ILLEGAL_ARGUMENT_ERROR. The message being formatted was: Ce champ de téléchargement ne permet qu'un maximum de {n, pluriel, = 1 {# fichier} sur {# fichiers}}..

My hourly cron jobs don't mention "E-mail sent....done" but only
Executing hourly tasks:
Optimizing search index... done.

and no mails are sent. The same pb occures with daily cronjobs.

What's wrong ?

@cebe
Copy link
Contributor

cebe commented Mar 3, 2017

sur {# fichiers}

this is invalid syntax, it should be other {# fichiers}

@buddh4
Copy link
Contributor

buddh4 commented Mar 3, 2017

such errors seem to occure in other places/languages too, we should somehow validate the message strings in the translation module.

@danielrodd
Copy link

yiisoft/yii2#2209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants