Here’s a problem that I’ve seen a few times of late, especially since the introduction of PHP version 8 and higher. WordPress sites using outdated themes are often showing errors in and around the site especially in the Dashboard, the specific error being:
PHP Fatal error: Uncaught ValueError: Unknown format specifier "S" in FILENAME.php:194
Fortunately, in most cases it’s a simple fix.
In the case above, line 194 of the file has the following code..
sprintf('%1$SSet the highest ...)
The issue here is the uppercase S before the word ‘Set’. Change it to a lowercase s as below and you should be good to go most of the time.
sprintf('%1$sSet the highest ...)
Happy coding!
Leave A Comment