WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blix seach error (4 posts)

  1. Class
    Member
    Posted 8 years ago #

    When searching my site I get WordPress database error: [Query was empty], it doesnt matter if result is empty or not. http://timmi.pointclark.net/
    'wpdberror' prins before container div starts.
    I have to refresh the index page several times to get rid of the error message, if that is a clue.
    I never modified any core functions and only translated the relevant parts of search.php from Blix to Norwegian.
    This may belong in the troubleshooting section, I'm not sure if it's theme related.
    Any ideas?

  2. Kafkaesqui

    Posted 8 years ago #

    Well, it appears to crop up due to the ø appearing in the button text. It's generating a search query of:

    ?s=what&searchbutton=S%F8k

    Removing the searchbutton portion of the query, or changing the searchbutton value, clears the error. For example, changing it to:

    ?s=what&searchbutton=Sok

    works as expected.

    I can't duplicate the problem on my test site--with or without the Blix theme, and with or without a hexadecimal/character entity in the search button text. So I can't say why it's happening, but it does appear to be related to that hexadecimal notation causing a conflict of some sort in your setup.

  3. Class
    Member
    Posted 8 years ago #

    Thanks alot Kafkaesqui, I'll try changing that.

  4. Class
    Member
    Posted 8 years ago #

    That did the trick, thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.