Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
An error of type E_ERROR was caused in line 234 of the file wp-content/plugins/woocommerce/includes/class-wc-post-types.php. Error message: Uncaught ValueError: Missing format specifier at end of string in wp-content/plugins/woocommerce/includes/class-wc-post-types.php:234

Solution:
https://wpml.org/de/forums/topic/critical-uncaught-valueerror-missing-format-specifier-at-end-of-string/#post-10255489

And if you are using Loco Translate, the 's' was missing in the German translation.

100% of people find this useful.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 6 replies, has 2 voices.

Last updated by Andreas 1 year, 6 months ago.

Assisted by: Andreas.

Author Posts
October 17, 2022 at 10:05 am #12252277

ceesG

I am trying to: Open a page in German Language

Link to a page where the issue can be seen: hidden link

I expected to see: My website

Instead, I got:Technical Error an a not working website in German

Because it is only in German failure I assume that the course is in WPML. Please advise...

October 17, 2022 at 10:34 am #12252659

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

In order to understand what is happening, I would like to ask you for the debug log or the error log of your site.

https://wordpress.org/support/article/debugging-in-wordpress/

After you enable it you need to visit again the German language in order to see something in the debug.log file

Regards,
Andreas

October 17, 2022 at 10:49 am #12252759

ceesG

It will do that...

WordPress wrote me:

Error Details
=============
An error of type E_ERROR was caused in line 234 of the file /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-post-types.php. Error message: Uncaught ValueError: Missing format specifier at end of string in /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-post-types.php:234
Stack trace:
#0 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-content/plugins/woocommerce/includes/class-wc-post-types.php(234): sprintf('Alle %', 'Kleur arm')
#1 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-includes/class-wp-hook.php(307): WC_Post_Types::register_taxonomies('')
#2 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#3 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#4 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-settings.php(598): do_action('init')
#5 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-config.php(118): require_once('/customers/d/4/...')
#6 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-load.php(50): require_once('/customers/d/4/...')
#7 /customers/d/4/f/ergorest-armsteunen.nl/httpd.www/wordpress/wp-admin/admin-ajax.php(22): require_once('/customers/d/4/...')
#8 {main}
thrown

October 17, 2022 at 10:52 am #12252769

ceesG

Debug is now ON...

October 17, 2022 at 11:56 am #12253385

Andreas

Thank you very much for the debug info.

May I ask you to test this solution?

https://wpml.org/de/forums/topic/critical-uncaught-valueerror-missing-format-specifier-at-end-of-string/#post-10255489

Regards,
Andreas

October 17, 2022 at 12:23 pm #12253701

ceesG

No, did it in:

woocommerce All %s
wpml-translation-management All %s

but no result...

Then I found out that in Loco Translate (which I also use) the 's' was missing in the German translation.

It works now. Thanks Andreas...!

October 17, 2022 at 12:27 pm #12253711

Andreas

Thank you very much for the confirmation, I marking this ticket as resolved.

Regards,
Andreas

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.