Title: Uncaught ValueError: Unknown format specifier &#8220;k&#8221;
Last modified: March 5, 2024

---

# Uncaught ValueError: Unknown format specifier “k”

 *  Resolved [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/)
 * After updating the plugin from version 7.3.1 to 7.3.2 I’m getting the following
   fatal error breaking the site:
 *     ```wp-block-code
       PHP Fatal error:  Uncaught ValueError: Unknown format specifier "k" in /.../wp-content/plugins/wp-whatsapp-chat/vendor_packages/wp-notice-plugin-promote.php:79
       Stack trace:
       #0 /.../wp-content/plugins/wp-whatsapp-chat/vendor_packages/wp-notice-plugin-promote.php(79): sprintf()
       #1 /.../wp-content/plugins/wp-whatsapp-chat/wp-whatsapp-chat.php(53): require_once('...')
       #2 /.../wp-settings.php(473): include_once('...')
       #3 /.../wp-config.php(101): require_once('...')
       #4 /.../wp-load.php(50): require_once('...')
       #5 /.../wp-blog-header.php(13): require_once('...')
       #6 /.../index.php(17): require('...')
       #7 {main}
         thrown in /.../wp-content/plugins/wp-whatsapp-chat/vendor_packages/wp-notice-plugin-promote.php on line 79
       ```
   

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

 *  [TommyRocks](https://wordpress.org/support/users/tommyrocks/)
 * (@tommyrocks)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17474804)
 * Hey Jos,
   We had the same issue. There is an easy hotfix. go to file wp-content/
   plugins/wp-whatsapp-chat/vendor_packages/wp-notice-plugin-promote.php line 76.
 * There you see this line:
   Today we have a special gift for you. Use the coupon
   code %1$s within the next 48 hours to receive a 20% discount on the premium version
   of the %2$s plugin.Change it to this:Today we have a special gift for you. Use
   the coupon code %1$s within the next 48 hours to receive a 20\% discount on the
   premium version of the %2$s plugin.So add a \ after 20 to escape the %.Hope this
   helps you to.Regards,Omri de Hek
 *  Thread Starter [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17474838)
 * Thanks Omri, that seems to work indeed! 😃
 * Now we’ll have to wait if it gets fixed in the next version soon.
 *  [Supje](https://wordpress.org/support/users/supje/)
 * (@supje)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17474890)
 * Same here. Fatal error after updating. The fix above solved this.
    -  This reply was modified 2 years, 3 months ago by [Supje](https://wordpress.org/support/users/supje/).
    -  This reply was modified 2 years, 3 months ago by [Supje](https://wordpress.org/support/users/supje/).
 *  [LogoLogics](https://wordpress.org/support/users/logologics/)
 * (@logologics)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17475042)
 * Same here, several sites all offline (critical error message) after the update
   to version 7.3.2.
   For now, I had to deactivate this plugin using FTP to get to
   the files, because it was impossible to log in to the sites.Hope they fix it 
   soon in a next update.
 * [@tommyrocks](https://wordpress.org/support/users/tommyrocks/), the fix works,
   thanks!
   I simply removed the whole line “Use the coupon code %1$s within the 
   next 48 hours to receive a 20% discount on the premium version of the %2$s plugin.”,
   that works too.
    -  This reply was modified 2 years, 3 months ago by [LogoLogics](https://wordpress.org/support/users/logologics/).
    -  This reply was modified 2 years, 3 months ago by [LogoLogics](https://wordpress.org/support/users/logologics/).
 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17476669)
 * Hello guys
 * We’re investigating this issue
 * What is your current PHP version?
 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17476768)
 * [@josklever](https://wordpress.org/support/users/josklever/) [@tommyrocks](https://wordpress.org/support/users/tommyrocks/)
   [@supje](https://wordpress.org/support/users/supje/) [@logologics](https://wordpress.org/support/users/logologics/)
   please test version 7.3.3
 *  Thread Starter [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17477048)
 * When you were asking about the PHP version followed by “please test version 7.3.3”,
   it made me laugh first until I understood that you didn’t mean the PHP version
   but the updated plugin.
 * The site is running PHP 8.2 (also tested with 8.0).
 * The update to 7.3.3 broke the site again with the same error, so I had to apply
   the fix above again manually to fix the site. Why did you choose for a different
   solution without testing it?
 * Today my client decided to keep using this plugin, because a fix was given by
   another user. But if you keep breaking sites without listening to solutions provided
   by your users, we will switch to another plugin.
 *  [LogoLogics](https://wordpress.org/support/users/logologics/)
 * (@logologics)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17477113)
 * [@quadlayers](https://wordpress.org/support/users/quadlayers/),
   Thanks for the
   update, but I must confirm what Jos Klever says. the issue is still there in 
   version 7.3.3.My sites are running on PHP version: 8.2.11**Removing this sentence
   in file wp-content/plugins/wp-whatsapp-chat/vendor_packages/wp-notice-plugin-
   promote.php line 76 fixes it again:**“Use the coupon code %1$s within the next
   48 hours to receive a 20%% discount on the premium version of the %2$s plugin”
   So, it looks like that is the only thing that needed to be altered or removed
   in your update?Thanks,Annie
 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17477713)
 * [@josklever](https://wordpress.org/support/users/josklever/), we haven’t been
   able to reproduce the error either in our local environment or on our servers,
   so we are trying out solutions that we see from other developers.
 * [@logologics](https://wordpress.org/support/users/logologics/), thanks for sharing
   the fix. Indeed, the issue is related to how your server is parsing the ‘20%’
   string inside the sprintf function. We’ve now moved the string outside, so it
   should be fixed.
 * [@tommyrocks](https://wordpress.org/support/users/tommyrocks/) @supje @logologics
   please test version 7.3.4
 *  Thread Starter [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17478908)
 * Version 7.3.4 doesn’t give an error anymore.
 *  [LogoLogics](https://wordpress.org/support/users/logologics/)
 * (@logologics)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17479043)
 * [@quadlayers](https://wordpress.org/support/users/quadlayers/),
   Thanks, this 
   works!Annie
 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17479087)
 * Great!!! Thanks for the update

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

The topic ‘Uncaught ValueError: Unknown format specifier “k”’ is closed to new replies.

 * ![](https://ps.w.org/wp-whatsapp-chat/assets/icon-256x256.jpg?rev=3159330)
 * [Social Chat - Click To Chat App Button](https://wordpress.org/plugins/wp-whatsapp-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-whatsapp-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-whatsapp-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-whatsapp-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-whatsapp-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-whatsapp-chat/reviews/)

 * 16 replies
 * 5 participants
 * Last reply from: [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/uncaught-valueerror-unknown-format-specifier-k/#post-17479087)
 * Status: resolved