Title: Error when using Search functionality
Last modified: May 9, 2018

---

# Error when using Search functionality

 *  Resolved [Stephen Gravitt](https://wordpress.org/support/users/sgravitt1/)
 * (@sgravitt1)
 * [8 years ago](https://wordpress.org/support/topic/error-when-using-search-functionality/)
 * Hello,
 * We’re getting an error every time we try to search our knowledge base. It only
   happens when the search query provided has search results. Conversly, for a search
   with no results, we get the “sorry” message. Also, the suggested search results
   feature still works.
 * Is this unique to us or can someone look into this further?
 * We’re using an NGNIX server with php 7.2. Here are more error details:
 *     ```
       Error Details
       Type	Error
       HTTP Code	500
       Message	PHP Fatal error: Uncaught Error: Call to undefined function kbe_short_content()
       URL	http://ifoundagent.com/?s=ihomefinder&post_type=kbe_knowledgebase 
       File	wp_knowledgebase/kbe_search.php
       Line	76
   
       Stack Trace
       #0 /www/wp-includes/template-loader.php(74): include()
       #1 /www/wp-blog-header.php(19): require_once('/www/wp-include...')
       #2 /www/index.php(17): require('/www/wp-blog-he...')
       #3 {main}
       ```
   
    -  This topic was modified 8 years ago by [Stephen Gravitt](https://wordpress.org/support/users/sgravitt1/).

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

 *  [tianacam](https://wordpress.org/support/users/tianacam/)
 * (@tianacam)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10270796)
 * Any luck on this? My client started reporting search not working yesterday too.
   Console gives a 500 server error.
 *  Thread Starter [Stephen Gravitt](https://wordpress.org/support/users/sgravitt1/)
 * (@sgravitt1)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10270971)
 * None yet…
 *  [tianacam](https://wordpress.org/support/users/tianacam/)
 * (@tianacam)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10288987)
 * Dang. We just ended up rolling back to a previous version. Hopefully this will
   get fixed soon!
 *  Thread Starter [Stephen Gravitt](https://wordpress.org/support/users/sgravitt1/)
 * (@sgravitt1)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10290687)
 * What version did you go back to? I had the same error with 1.1.8 🙁
 *  Plugin Contributor [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10507468)
 * I can see that this error is originating from the copy of the search template
   which exists in your theme. The template you have there is out of date, and references
   a function `kbe_short_content()` which no longer exists (updated in 1.1.8). It
   was removed in [this commit](https://github.com/maevelander/wp-knowledgebase/commit/8931b3bfd08cf026c6e116a8d3a8b2f830607493#diff-295b54aac5a8d6420c771be400a68286),
   being replaced with `the_excerpt()` which is in line with current best practise.
 * It’s quick and easy to fix – simply replace the outdated file `/template/kbe_search.
   php` that is in your theme, with the latest version [here.](https://github.com/maevelander/wp-knowledgebase/blob/master/template/kbe_search.php)
 * That will resolve the issue 🙂
 *  Thread Starter [Stephen Gravitt](https://wordpress.org/support/users/sgravitt1/)
 * (@sgravitt1)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10519517)
 * That did the trick, thanks so much [@enigmaweb](https://wordpress.org/support/users/enigmaweb/)!

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

The topic ‘Error when using Search functionality’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-knowledgebase_c56559.svg)
 * [WordPress Knowledge base & Documentation Plugin - WP Knowledgebase](https://wordpress.org/plugins/wp-knowledgebase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-knowledgebase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-knowledgebase/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-knowledgebase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-knowledgebase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-knowledgebase/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Stephen Gravitt](https://wordpress.org/support/users/sgravitt1/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/error-when-using-search-functionality/#post-10519517)
 * Status: resolved