Title: PHP Fatal error: Uncaught ValueError: Unknown format specifier &#8220;Ð&#8221;
Last modified: May 12, 2024

---

# PHP Fatal error: Uncaught ValueError: Unknown format specifier “Ð”

 *  [Nemanja Tomanovic](https://wordpress.org/support/users/tomassrbija/)
 * (@tomassrbija)
 * [2 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-valueerror-unknown-format-specifier-d/)
 * Hi there,
 * We have developed a multilanguage website for our client. It uses Polylang to
   support four different languages. The language switcher works for three languages,
   but when we change to Russian, there is a fatal error on the entire site:
 *     ```wp-block-code
       PHP Fatal error:  Uncaught ValueError: Unknown format specifier "Ð" in /home/digiuwiu/restaurantbrodettoprzno.com/wp-content/plugins/restaurant-reservations/includes/Settings.class.php:661
       Stack trace:
       #0 /home/digiuwiu/restaurantbrodettoprzno.com/wp-content/plugins/restaurant-reservations/includes/Settings.class.php(661): sprintf()
       #1 /home/digiuwiu/restaurantbrodettoprzno.com/wp-includes/class-wp-hook.php(324): rtbSettings->set_defaults()
       #2 /home/digiuwiu/restaurantbrodettoprzno.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #3 /home/digiuwiu/restaurantbrodettoprzno.com/wp-includes/plugin.php(517): WP_Hook->do_action()
       #4 /home/digiuwiu/restaurantbrodettoprzno.com/wp-settings.php(695): do_action()
       #5 /home/digiuwiu/restaurantbrodettoprzno.com/wp-config.php(103): require_once('/home/digiuwiu/...')
       #6 /home/digiuwiu/restaurantbrodettoprzno.com/wp-load.php(50): require_once('/home/digiuwiu/...')
       #7 /home/digiuwiu/restaurantbrodettoprzno.com/wp-blog-header.php(13): require_once('/home/digiuwiu/...')
       #8 /home/digiuwiu/restaurantbrodettoprzno.com/index.php(17): require('/home/digiuwiu/...')
       #9 {main}
         thrown in /home/digiuwiu/restaurantbrodettoprzno.com/wp-content/plugins/restaurant-reservations/includes/Settings.class.php on line 661
       ```
   
 * We have narrowed done the source of the problem to your plugin. When your plugin
   is deactivated, everything works as expected and we can use the site in Russian.
   Can you please assist us with this problem?
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-fatal-error-uncaught-valueerror-unknown-format-specifier-d%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * (@jaysupport)
 * [2 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-valueerror-unknown-format-specifier-d/#post-17764111)
 * Hi Nemanja,
 * That looks like a problem with the translation.
 * The translations included with our plugin are all submitted, on a volunteer basis,
   by users of the plugin and we cannot guarantee that they are accurate or complete.
 * If you look at the line (661) referenced in the error you shared, in our actual
   code, you’ll see that it includes:
 *     ```wp-block-code
       sprintf( _x( 'Your booking at %s is pending', 'Default email subject sent to user when they request a booking. %s will be replaced by the website name', 'restaurant-reservations' )
       ```
   
 * So it would appear to be the translation for that string that is causing the 
   issue. If this is stemming from the translation in the included .mo and .po files
   in our plugin, then, to correct the issue, you could use a program like Poedit
   to update the translation. More info here:
 * [https://doc.fivestarplugins.com/plugins/restaurant-reservations/user/labelling/poedit](https://doc.fivestarplugins.com/plugins/restaurant-reservations/user/labelling/poedit)
 * Alternatively, you can contribute to the community translation here:
 * [https://translate.wordpress.org/projects/wp-plugins/restaurant-reservations/](https://translate.wordpress.org/projects/wp-plugins/restaurant-reservations/)
 *  Thread Starter [Nemanja Tomanovic](https://wordpress.org/support/users/tomassrbija/)
 * (@tomassrbija)
 * [2 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-valueerror-unknown-format-specifier-d/#post-17764756)
 * Thank you for your reply, Jay! I understand now what is causing the issue, but
   please note that Đ is letter of many languages: [https://en.wikipedia.org/wiki/D_with_stroke](https://en.wikipedia.org/wiki/D_with_stroke)
   
   There are also other letters like Č, Ć, Š, Ž, used in these languages. It needs
   to be used in translation strings so that they have correct meaning. From what
   I can see on similar issues, this can be related to UTF-8 support. For reference:
   [https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-d/](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-d/)
   [https://wordpress.org/support/topic/not-work-on-5-8-1-2/](https://wordpress.org/support/topic/not-work-on-5-8-1-2/)
   [https://wordpress.org/support/topic/php80-problem/](https://wordpress.org/support/topic/php80-problem/)
   [https://github.com/Freemius/wordpress-sdk/issues/510](https://github.com/Freemius/wordpress-sdk/issues/510)
   I hope you can take another look and see how to support this.
 * Thank you
 *  Plugin Support [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * (@jaysupport)
 * [2 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-valueerror-unknown-format-specifier-d/#post-17773431)
 * That should not be a problem. What we’re saying is the provided translation is
   the issue. From the error, the %s is not rendering correctly, which normally 
   means it was not correctly included in the translation. You would need to review
   the translation to check this.

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

The topic ‘PHP Fatal error: Uncaught ValueError: Unknown format specifier “Ð”’ is
closed to new replies.

 * ![](https://ps.w.org/restaurant-reservations/assets/icon-128x128.png?rev=2205491)
 * [Five Star Restaurant Reservations - WordPress Booking Plugin](https://wordpress.org/plugins/restaurant-reservations/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restaurant-reservations/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restaurant-reservations/)
 * [Active Topics](https://wordpress.org/support/plugin/restaurant-reservations/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restaurant-reservations/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restaurant-reservations/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jaysupport](https://wordpress.org/support/users/jaysupport/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-valueerror-unknown-format-specifier-d/#post-17773431)
 * Status: not a support question