Title: Fatal error Search button
Last modified: December 14, 2017

---

# Fatal error Search button

 *  [AdemOezen](https://wordpress.org/support/users/ademoezen/)
 * (@ademoezen)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-search-button/)
 * wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-
   cpt.php on line 136
 * This Error comes, when customers search nothing, but clicked the Search button.
   How can i slove this problem?
 * Thanks a lot!

Viewing 1 replies (of 1 total)

 *  [samuraischwert](https://wordpress.org/support/users/samuraischwert/)
 * (@samuraischwert)
 * [8 years ago](https://wordpress.org/support/topic/fatal-error-search-button/#post-10172692)
 * Hello Adem,
 * I had the same problem but found a solution:
 * Just change line 30 of index.php of this plugin to
 * if(isset($_GET[‘s’]) && $_GET[‘s’] != ”) {
 * and empty searches will no longer result in a fatal error.
 * samuraischwert

Viewing 1 replies (of 1 total)

The topic ‘Fatal error Search button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-search-on-product-sku_ffa610.
   svg)
 * [Search SKU to Product page](https://wordpress.org/plugins/woo-search-on-product-sku/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-search-on-product-sku/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-search-on-product-sku/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-search-on-product-sku/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-search-on-product-sku/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [samuraischwert](https://wordpress.org/support/users/samuraischwert/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/fatal-error-search-button/#post-10172692)
 * Status: not resolved