• Resolved Jos Klever

    (@josklever)


    After updating the plugin from version 7.3.1 to 7.3.2 I’m getting the following fatal error breaking the site:

    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)
  • 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

    (@josklever)

    Thanks Omri, that seems to work indeed! ??

    Now we’ll have to wait if it gets fixed in the next version soon.

    Same here. Fatal error after updating. The fix above solved this.

    • This reply was modified 8 months, 3 weeks ago by Supje.
    • This reply was modified 8 months, 3 weeks ago by Supje.

    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, 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 8 months, 3 weeks ago by LogoLogics.
    • This reply was modified 8 months, 3 weeks ago by LogoLogics.
    Plugin Author quadlayers

    (@quadlayers)

    Hello guys

    We’re investigating this issue

    What is your current PHP version?

    Plugin Author quadlayers

    (@quadlayers)

    @josklever @tommyrocks @supje @logologics please test version 7.3.3

    Thread Starter Jos Klever

    (@josklever)

    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.

    @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

    (@quadlayers)

    @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, 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?@supje?@logologics please test version 7.3.4

    Thread Starter Jos Klever

    (@josklever)

    Version 7.3.4 doesn’t give an error anymore.

    @quadlayers,

    Thanks, this works!

    Annie

    Plugin Author quadlayers

    (@quadlayers)

    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.