Support

Home Forums Event Espresso Premium Error 'Uncaught ValueError: Unknown format specifier "m" '

Error 'Uncaught ValueError: Unknown format specifier "m" '

Posted: March 4, 2024 at 5:35 am


CapellaAmersfoort

March 4, 2024 at 5:35 am

Hi,

After updating Event Espresso to version 5.0.17.p and do some changes in my events, I got an error. Error was found in https://<my-side>/wp-admin/admin.php?page=espresso_messages&action=settings&settings_nonce=079fca2b93&return=edit_message_template). –> Error ‘Uncaught ValueError: Unknown format specifier “m” ‘

Any idea what is going wrong? In the next reaction (prived) I will send you the complete messages


CapellaAmersfoort

March 4, 2024 at 5:38 am

This reply has been marked as private.


Tony

  • Support Staff

March 4, 2024 at 6:36 am

Hi there,

That is an issue with the translation files in use on the site.

Do you have FTP/File Manager access to the site?

If so look in /wp-content/uploads/espresso/languages/

You will likely find (at least) 2 translation files for Event Espresso named event_espresso-nl_NL (A .po and .mo file)

If you have those they are considered ‘custom’ translations, have you alrered any of the translations on the site using those?

You have 2 options, rename them (just change the MO file to be event_espresso-nl_NL-temp.mo for example), that will stop them loading and EE will use its default translations…. does the page work then?

(You could just remove them, but if you have custom translations within those files they will then be lost)

Or… download the PO file, open it up in POEdit

Search for:

Below are message types that are currently %sactive%s with this messenger. Drag them over to the "Inactive Message Types" box to deactivate them.

Then you look at the translation, it will have a missing s on %sactive%

Update the translation to have the s, save and generate a MO file, replace the MO file you are currently using above with the one you just generated (I’d recommend also uploading the PO file for any future use).

The reason you are getting an error is PHP8 (which your server likely updated to recently) does not allow for any errors within the original/translated string, it not throws a fatal error with them when PHP7 would not.

—-

If you are NOT using custom translations through that file, my recommendation s to remove it and use the default files built into Event Espresso.

https://monosnap.com/file/zEADkBrSbyDqacPEAirC9MO111i4eA


CapellaAmersfoort

March 5, 2024 at 3:10 am

Thanks Tony for you fast reponse en solution. Hope the issue is now solved!
Where can found the default translations? As I remember, I got the custom translations from your site πŸ™‚


CapellaAmersfoort

March 5, 2024 at 3:10 am

Thanks Tony for your fast reponse en solution. Hope the issue is now solved!
Where can found the default translations? As I remember, I got the custom translations from your site πŸ™‚


CapellaAmersfoort

March 5, 2024 at 3:10 am

Thanks Tony for your fast reponse en solution. Hope the issue is now solved!
Where can found the default translations? As I remember, I got the custom translations from your site πŸ™‚


Tony

  • Support Staff

March 5, 2024 at 4:25 am

You like got them from here:

https://translate.eventespresso.com/projects/event-espresso-4/

That is were all of our our current translations are stored πŸ™‚

The support post ‘Error 'Uncaught ValueError: Unknown format specifier "m" '’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso