• Resolved Stephen Gravitt

    (@sgravitt1)


    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}
Viewing 6 replies - 1 through 6 (of 6 total)
  • Any luck on this? My client started reporting search not working yesterday too. Console gives a 500 server error.

    Thread Starter Stephen Gravitt

    (@sgravitt1)

    None yet…

    Dang. We just ended up rolling back to a previous version. Hopefully this will get fixed soon!

    Thread Starter Stephen Gravitt

    (@sgravitt1)

    What version did you go back to? I had the same error with 1.1.8 🙁

    Plugin Contributor Maeve Lander

    (@enigmaweb)

    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, 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.

    That will resolve the issue 🙂

    Thread Starter Stephen Gravitt

    (@sgravitt1)

    That did the trick, thanks so much @enigmaweb!

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

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