Support

Home Forums Event Espresso Premium messages settings give error in Dutch version

messages settings give error in Dutch version

Posted: January 4, 2022 at 3:03 am


sittingducks

January 4, 2022 at 3:03 am

Hi,

I use WP 5.8.2, theme Twenty Twenty-One, EE 4.10.23.p and all non-EE plugins are de-activated. The site language of my installation is Dutch (Nederlands).

I get the following error when I try to access the Messages > Settings tab (doesn’t happen when I switch to English as site language):

Fatal error: Uncaught ValueError: Unknown format specifier "m" in /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/templates/ee_msg_details_messenger_mt_meta_box.template.php:28 Stack trace: #0 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/templates/ee_msg_details_messenger_mt_meta_box.template.php(28): printf() #1 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(395): include('/home/deb138711...') #2 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(3535): EEH_Template::display_template() #3 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-admin/includes/template.php(1395): Messages_Admin_Page->{closure}() #4 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/templates/admin_details_wrapper.template.php(36): do_meta_boxes() #5 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_Template.helper.php(392): include('/home/deb138711...') #6 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2920): EEH_Template::display_template() #7 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(2849): EE_Admin_Page->_display_admin_page() #8 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/Messages_Admin_Page.core.php(3298): EE_Admin_Page->display_admin_page_with_sidebar() #9 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(1047): Messages_Admin_Page->_settings() #10 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page.core.php(807): EE_Admin_Page->_route_admin_request() #11 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/core/admin/EE_Admin_Page_Init.core.php(227): EE_Admin_Page->route_admin_request() #12 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-includes/class-wp-hook.php(303): EE_Admin_Page_Init->initialize_admin_page() #13 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #14 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-includes/plugin.php(470): WP_Hook->do_action() #15 /home/deb138711/domains/meezingconcerten.nl/public_html/wp-admin/admin.php(259): do_action() #16 {main} thrown in /home/deb138711/domains/meezingconcerten.nl/public_html/wp-content/plugins/event-espresso-core-reg/admin_pages/messages/templates/ee_msg_details_messenger_mt_meta_box.template.php on line 28

What could be the problem?


Brent Christensen

  • Support Staff

January 4, 2022 at 5:38 pm

Which language option do you have set in the admin?

– Nederlands (België)
– Nederlands (Formeel)
– Nederlands

looks like a typo in the translation file, because the template itself is correct, which is why it works fine in English but not in Dutch.


Brent Christensen

  • Support Staff

January 4, 2022 at 6:20 pm

Found it!

The string:

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

was translated as:

Hieronder staan berichttypen die momenteel %sactive% met deze messenger. Sleep ze naar het vak ‘Inactieve berichttypen’ om ze te deactiveren.

notice how %sactive%s was changed to %sactive% ?

what’s happening is that the translation function in WordPress is looking for a format type after that second % and since the next word starts with m it is trying to use that.

I’ll need to talk to some of our support staff about how/where to update that as it is not something I normally deal with (i’m a dev that is just helping with the forums today)

In the time being, you can use the program I used to find that error: https://poedit.net/

It’s free, and you can simply update the event_espresso-nl_NL.mo file in the EE core languages folder


sittingducks

January 5, 2022 at 4:18 am

Thank you very much, that did the trick!

The support post ‘messages settings give error in Dutch version’ 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