Title: undefined variable message
Last modified: December 14, 2025

---

# undefined variable message

 *  Resolved [Clivesmith](https://wordpress.org/support/users/clivesmith/)
 * (@clivesmith)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/undefined-variable-message/)
 * Hi,
 * this is an interesting plugin however I get an error message
 * **Warning**: Undefined variable $lang in …**\plugins\autocomplete-search\public\
   class-autocomplete-search-public.php** on line **108**
 * Also the plugin says it does custom types but that does not show up in the plugin
   settings page ( I would just like to search bbress topic titles).
 * Also the search is case sensitive.
 * It would be nice to be able to set the size of the search box

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

 *  Plugin Author [Aarti Chauhan](https://wordpress.org/support/users/aarti1318/)
 * (@aarti1318)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/undefined-variable-message/#post-18756056)
 * Hi [@clivesmith](https://wordpress.org/support/users/clivesmith/),
 * Thanks for the feedback 🙂
   All the points you mentioned have been addressed in
   the **latest version (v1.2.0)**:
    - ✅ Fixed the **`Undefined variable $lang`** warning when no multilingual plugin
      is active
    - ✅ Improved **custom post type detection** — bbPress topics can now be included
      in search
    - ✅ Search behavior is now **case-insensitive**
    - ✅ Added **styling control for the search box** (via shortcode class & CSS)
 * Please update to **v1.2.0** and let me know if you notice anything else or have
   further suggestions.
 * Thanks again for testing the plugin!
 *  Plugin Author [Aarti Chauhan](https://wordpress.org/support/users/aarti1318/)
 * (@aarti1318)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/undefined-variable-message/#post-18756058)
 * Hi [@clivesmith](https://wordpress.org/support/users/clivesmith/),
 * Thanks for the feedback 🙂
   All the points you mentioned have been addressed in
   the **latest version (v1.2.0)**:
    - ✅ Fixed the **`Undefined variable $lang`** warning when no multilingual plugin
      is active
    - ✅ Improved **custom post type detection** — bbPress topics can now be included
      in search
    - ✅ Search behavior is now **case-insensitive**
    - ✅ Added **styling control for the search box** (via shortcode class & CSS)
 * Please update to **v1.2.0** and let me know if you notice anything else or have
   further suggestions.
 * Thanks for showing interest in the plugin!
 *  Thread Starter [Clivesmith](https://wordpress.org/support/users/clivesmith/)
 * (@clivesmith)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/undefined-variable-message/#post-18756339)
 * Hi,
 * Thank you, that has helped a lot, is it possible to separate the search critiria
   a bit more like topic title and / or topic contents it would help narrow a search
   down.
 * Also I assume you have checked it for security risks.
 * Regards
 * Clive
 *  Thread Starter [Clivesmith](https://wordpress.org/support/users/clivesmith/)
 * (@clivesmith)
 * [5 months, 1 week ago](https://wordpress.org/support/topic/undefined-variable-message/#post-18756355)
 * Sorry I may not have been clear, I meant for the admin to be able to separate
   the post type into search title and / or contents

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-variable-message%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/autocomplete-search/assets/icon-256x256.png?rev=3203104)
 * [Autocomplete Search](https://wordpress.org/plugins/autocomplete-search/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autocomplete-search/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autocomplete-search/)
 * [Active Topics](https://wordpress.org/support/plugin/autocomplete-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autocomplete-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autocomplete-search/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Clivesmith](https://wordpress.org/support/users/clivesmith/)
 * Last activity: [5 months, 1 week ago](https://wordpress.org/support/topic/undefined-variable-message/#post-18756355)
 * Status: resolved