woocommerce / woosidebars

Replace registered sidebars in your WordPress themes using different conditions such as a specific page, a category or even an individual blog post.
https://wordpress.org/plugins/woosidebars/
51 stars 42 forks source link

Error in "class-woo-sidebars.php" line:170 causes site breakdown! #78

Open AliBorsan opened 3 years ago

AliBorsan commented 3 years ago

There is an error in line: 170 causes site breakdown: 170 'search_items' => sprintf( __( 'Search %a', 'woosidebars' ), $plural ), I could make the site working again by disabling this line or replacing "%a" with "%s" 170 'search_items' => sprintf( __( 'Search %s', 'woosidebars' ), $plural ),

The same error exists in older versions in different line number contains the same code. "%a" doesent make any sense , which i think it was some typo .. I hope that this solution help people who had the same problem.

nicko170 commented 2 years ago

This error only started as PHP8 sprintf now throws an Exception instead of returning false on failure.

PR open - but this looks abandoned, so I highly doubt it will get fixed :-(

https://github.com/woocommerce/woosidebars/pull/80