Title: Error with PHP 8.1
Last modified: March 28, 2023

---

# Error with PHP 8.1

 *  Resolved [Mehrshad Darzi](https://wordpress.org/support/users/mehrshaddarzi/)
 * (@mehrshaddarzi)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-1-2/)
 * **Fatal error**: Uncaught ValueError: Unknown format specifier “S” in C:\Server\
   Xampp-7.4.7\htdocs\xxx\complete-bootstrap-4-shortcodes\bootstrap-shortcodes.php:
   512 Stack trace: #0 C:\Server\Xampp-7.4.7\htdocs\realwp.net\addons\complete-bootstrap-
   4-shortcodes\bootstrap-shortcodes.php(512): sprintf(‘<a%S href=”%s”%…’, ”, ‘#’,‘
   class=”dropdow…’, ”, ‘Action’) #1 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-
   includes\shortcodes.php(355): BootstrapShortcodes->bs_dropdown_item(Array, ‘Action’,‘
   dropdown-item’) #2 [internal function]: do_shortcode_tag(Array) #3 C:\Server\
   Xampp-7.4.7\htdocs\realwp.net\wp-includes\shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(
   dropdo…’, ‘do_shortcode_ta…’, ‘<div class=”dro…’) #4 C:\Server\Xampp-7.4.7\htdocs\
   realwp.net\addons\complete-bootstrap-4-shortcodes\bootstrap-shortcodes.php(622):
   do_shortcode(‘<div class=”dro…’) #5 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-
   includes\shortcodes.php(355): BootstrapShortcodes->bs_dropdown_menu(Array, ‘<
   div class=”dro…’, ‘dropdown-menu’) #6 [internal function]: do_shortcode_tag(Array)#
   7 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(
   button…’, ‘do_shortcode_ta…’, ‘\n[button type=”…’) #8 C:\Server\Xampp-7.4.7\htdocs\
   realwp.net\addons\complete-bootstrap-4-shortcodes\bootstrap-shortcodes.php(482):
   do_shortcode(‘\n[button type=”…’) #9 C:\Server\Xampp-7.4.7\htdocs\realwp.net\
   wp-includes\shortcodes.php(355): BootstrapShortcodes->bs_dropdown(Array, ‘\n[
   button type=”…’, ‘dropdown’) #10 [internal function]: do_shortcode_tag(Array)#
   11 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\shortcodes.php(227): preg_replace_callback(‘/\\[(\\[?)(
   button…’, ‘do_shortcode_ta…’, ‘\n[dropdown]\n[bu…’) #12 C:\Server\Xampp-7.4.7\
   htdocs\realwp.net\addons\complete-bootstrap-4-shortcodes\bootstrap-shortcodes.
   php(995): do_shortcode(‘\n[dropdown]\n[bu…’) #13 C:\Server\Xampp-7.4.7\htdocs\
   realwp.net\wp-includes\shortcodes.php(355): BootstrapShortcodes->bs_card_body(
   Array, ‘\n[dropdown]\n[bu…’, ‘card-body’) #14 [internal function]: do_shortcode_tag(
   Array) #15 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\shortcodes.php(
   227): preg_replace_callback(‘/\\[(\\[?)(button…’, ‘do_shortcode_ta…’, ‘\n[card-
   header c…’) #16 C:\Server\Xampp-7.4.7\htdocs\realwp.net\addons\complete-bootstrap-
   4-shortcodes\bootstrap-shortcodes.php(948): do_shortcode(‘\n[card-header c…’)#
   17 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\shortcodes.php(355): BootstrapShortcodes-
   >bs_card(Array, ‘\n[card-header c…’, ‘card’) #18 [internal function]: do_shortcode_tag(
   Array) #19 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\shortcodes.php(
   227): preg_replace_callback(‘/\\[(\\[?)(accord…’, ‘do_shortcode_ta…’, ‘<h2>Rows
   and Co…’) #20 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\class-wp-hook.
   php(308): do_shortcode(‘<h2>Rows and Co…’) #21 C:\Server\Xampp-7.4.7\htdocs\realwp.
   net\wp-includes\plugin.php(205): WP_Hook->apply_filters(‘<h2>Rows and Co…’, Array)#
   22 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-includes\post-template.php(255):
   apply_filters(‘the_content’, ‘<h2>Rows and Co…’) #23 C:\Server\Xampp-7.4.7\htdocs\
   realwp.net\template\main\page.php(26): the_content() #24 C:\Server\Xampp-7.4.7\
   htdocs\realwp.net\wp-includes\template-loader.php(106): include(‘C:\\Server\\
   Xampp…’) #25 C:\Server\Xampp-7.4.7\htdocs\realwp.net\wp-blog-header.php(19): 
   require_once(‘C:\\Server\\Xampp…’) #26 C:\Server\Xampp-7.4.7\htdocs\realwp.net\
   index.php(17): require(‘C:\\Server\\Xampp…’) #27 {main} thrown in **C:\Server\
   Xampp-7.4.7\htdocs\realwp.net\addons\complete-bootstrap-4-shortcodes\bootstrap-
   shortcodes.php** on line **512**

Viewing 1 replies (of 1 total)

 *  Plugin Author [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * (@uwejacobs)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-1-2/#post-16639815)
 * Hi Mehrshad,
 * This issue should be resolved in the latest version 4.6.5. Having said that, 
   I highly recommend switching to the plugin All Bootstrap Blocks which offers 
   Bootstrap 5 Gutenberg Blocks.

Viewing 1 replies (of 1 total)

The topic ‘Error with PHP 8.1’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/complete-bootstrap-4-shortcodes_3a88fe.
   svg)
 * [Bootstrap 4 Shortcodes for WordPress](https://wordpress.org/plugins/complete-bootstrap-4-shortcodes/)
 * [Support Threads](https://wordpress.org/support/plugin/complete-bootstrap-4-shortcodes/)
 * [Active Topics](https://wordpress.org/support/plugin/complete-bootstrap-4-shortcodes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complete-bootstrap-4-shortcodes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complete-bootstrap-4-shortcodes/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Uwe Jacobs](https://wordpress.org/support/users/uwejacobs/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-1-2/#post-16639815)
 * Status: resolved