Title: ValueError: Unknown format specifier
Last modified: April 7, 2022

---

# ValueError: Unknown format specifier

 *  Resolved [skybug](https://wordpress.org/support/users/skybug/)
 * (@skybug)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier-2/)
 * Hello,
    After upgrading PHP to version 8 I have issues due to WP Recipe Maker.
   From what I can see, it is most likely due to PHP 8 which is stricter wrt formatting
   errors. I use Russian translation. Could you please take a look if translations
   have correct specifiers?
 * Errors are in two files:
 * “PHP message: PHP Fatal error: Uncaught ValueError: Unknown format specifier “\
   xd0” in /wordpress/wp-content/plugins/wp-recipe-maker/includes/admin/class-wprm-
   dashboard.php:214
    Stack trace: #0 /wordpress/wp-content/plugins/wp-recipe-maker/
   includes/admin/class-wprm-dashboard.php(214): sprintf(‘% \xD0\xBD\xD0\xBE\xD0\
   xB 2\xD0\xBE\xD1\x81\xD1\x82\xD0…’, ’19’)
 * and:
    /wordpress/wp-content/plugins/wp-recipe-maker/templates/admin/menu/tools/
   health-check.php. Uncaught ValueError: Unknown format specifier “�” in /wordpress/
   wp-content/plugins/wp-recipe-maker/templates/admin/menu/tools/health-check.php:
   16 Stack trace: #0 /wordpress/wp-content/plugins/wp-recipe-maker/templates/admin/
   menu/tools/health-check.php(16): printf(‘\xD0\x9E\xD0\xB1\xD1\x80\xD0\xB0\xD0\
   xB1\xD0\xBE\xD1\x82\xD0…’, 496)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier-2/#post-15540157)
 * What is the specific version of PHP you’re using?
 * When are you getting the error? What page are you on?
 * I haven’t been able to replicate the issue yet.
 *  Thread Starter [skybug](https://wordpress.org/support/users/skybug/)
 * (@skybug)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier-2/#post-15540209)
 * Hi, thanks for coming back on this issue.
 * php80-8.0.17_2
 * First error was triggered on logging in as admin; so wasn’t able to get to an
   admin console until I commented out the code.
 * Second error is triggered from console, when trying to run WP Recipe Maker self
   diagnostics.
 * Original php code looks fine to me. I think the key here is in translation files,
   as explained here: [https://localise.biz/wordpress/plugin/faqs/printf-errors](https://localise.biz/wordpress/plugin/faqs/printf-errors)
   
   But again, I am not sure; it’s been a while since I’ve done programming.
 * thanks again!
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier-2/#post-15540578)
 * You’re right. I think I found the problem in the Russian translation.
 * Could you try replacing the Russian translation files with these in the /wp-recipe-
   maker/languages/ folder?
    [https://www.dropbox.com/s/l2e6nd7167xmnnk/wp-recipe-maker-ru_RU.po?dl=0](https://www.dropbox.com/s/l2e6nd7167xmnnk/wp-recipe-maker-ru_RU.po?dl=0)
   [https://www.dropbox.com/s/244g1rxmi7jwy15/wp-recipe-maker-ru_RU.mo?dl=0](https://www.dropbox.com/s/244g1rxmi7jwy15/wp-recipe-maker-ru_RU.mo?dl=0)
 *  Thread Starter [skybug](https://wordpress.org/support/users/skybug/)
 * (@skybug)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier-2/#post-15540687)
 * Yep, tested, all works fine now.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘ValueError: Unknown format specifier’ is closed to new replies.

 * ![](https://ps.w.org/wp-recipe-maker/assets/icon-256x256.png?rev=2967063)
 * [WP Recipe Maker](https://wordpress.org/plugins/wp-recipe-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-recipe-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-recipe-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-recipe-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-recipe-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-recipe-maker/reviews/)

## Tags

 * [critical error](https://wordpress.org/support/topic-tag/critical-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [skybug](https://wordpress.org/support/users/skybug/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/valueerror-unknown-format-specifier-2/#post-15540687)
 * Status: resolved