Title: Error with PHP 8.0
Last modified: March 3, 2022

---

# Error with PHP 8.0

 *  Resolved [Emilien](https://wordpress.org/support/users/milouze/)
 * (@milouze)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-0/)
 * Hello,
 * I have try to set a website to PHP 8.0 but have this error :
 * Unknown format specifier “a” in /wp-content/plugins/woosidebars/classes/class-
   woo-sidebars.php:170
 * And i checked, is just change this line :
    `'search_items' => sprintf( __( 'Search%
   a', 'woosidebars' ), $plural ),` to this `'search_items' => sprintf( __( 'Search%
   s', 'woosidebars' ), $plural ),`
 * Thank you

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

 *  [samcaio](https://wordpress.org/support/users/samcaio/)
 * (@samcaio)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-0/#post-15430546)
 * I have also the same problem
 *  [Mindas22](https://wordpress.org/support/users/mindas22/)
 * (@mindas22)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-0/#post-15441509)
 * Thanks [@milouze](https://wordpress.org/support/users/milouze/) the question 
   is why it worked before for %a?
 *     ```
       s - The argument is treated and presented as a string.
       ```
   
 * [https://www.php.net/manual/en/function.sprintf.php](https://www.php.net/manual/en/function.sprintf.php)
 * Now it is more compatible with php8.1
 *  Plugin Contributor [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * (@mattyza)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-0/#post-15449159)
 * Hi [@milouze](https://wordpress.org/support/users/milouze/) [@mindas22](https://wordpress.org/support/users/mindas22/),
 * Version 1.4.6 of WooSidebars resolves this issue by updating the sprintf modifier
   used.
 * Thank you for reporting this.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/woosidebars_a9c7b8.svg)
 * [WooSidebars](https://wordpress.org/plugins/woosidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woosidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woosidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/woosidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woosidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woosidebars/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Matt Cohen](https://wordpress.org/support/users/mattyza/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/error-with-php-8-0/#post-15449159)
 * Status: resolved