# Search box gives error

**URL:** <https://community.open-emr.org/t/search-box-gives-error/16620>\
**Category:** OpenEMR Development\
**Created:** [May 12, 2021, 6:31pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620 "2021-05-12T18:31:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjbarr](https://community.open-emr.org/user_avatar/community.open-emr.org/tjbarr/32/21102_2.png) [@tjbarr](https://community.open-emr.org/u/tjbarr)\
**Post date:** [May 12, 2021, 6:31pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/1 "2021-05-12T18:31:28Z")

</div>

Not sure what I did but when I try to search for a patient I get this error

msg.toLowercase not a function

---

<div class="post-metadata">

**Author:** ![tjbarr](https://community.open-emr.org/user_avatar/community.open-emr.org/tjbarr/32/21102_2.png) [@tjbarr](https://community.open-emr.org/u/tjbarr)\
**Post date:** [May 13, 2021, 6:56pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/2 "2021-05-13T18:56:41Z")

</div>

I can’t figure it out. I have a test site and it works but I don’t understand where that search box is stored?

It is the top menu area where the patient picture shows up. HELP!

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [May 13, 2021, 8:32pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/3 "2021-05-13T20:32:26Z")

</div>

try turning off User Debug in globals.

---

<div class="post-metadata">

**Author:** ![tjbarr](https://community.open-emr.org/user_avatar/community.open-emr.org/tjbarr/32/21102_2.png) [@tjbarr](https://community.open-emr.org/u/tjbarr)\
**Post date:** [May 13, 2021, 9:11pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/4 "2021-05-13T21:11:06Z")

</div>

I selected None but still get the error.

---

<div class="post-metadata">

**Author:** ![sjpadgett](https://community.open-emr.org/user_avatar/community.open-emr.org/sjpadgett/32/21623_2.png) [@sjpadgett](https://community.open-emr.org/u/sjpadgett)\
**Post date:** [May 13, 2021, 10:32pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/5 "2021-05-13T22:32:54Z")

</div>

did you log out then back in. clear browser cache also.

---

<div class="post-metadata">

**Author:** ![tjbarr](https://community.open-emr.org/user_avatar/community.open-emr.org/tjbarr/32/21102_2.png) [@tjbarr](https://community.open-emr.org/u/tjbarr)\
**Post date:** [May 14, 2021, 1:33pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/6 "2021-05-14T13:33:16Z")

</div>

I did. Now I get a data tables error.  
DataTables warning: table id=pt\_table - Invalid JSON response. For more information about this error, please see [http://datatables.net/tn/1](http://datatables.net/tn/1)

---

<div class="post-metadata">

**Author:** ![tjbarr](https://community.open-emr.org/user_avatar/community.open-emr.org/tjbarr/32/21102_2.png) [@tjbarr](https://community.open-emr.org/u/tjbarr)\
**Post date:** [May 17, 2021, 1:19pm UTC](https://community.open-emr.org/t/search-box-gives-error/16620/7 "2021-05-17T13:19:35Z")

</div>

I figured it out. It had to do with a field put in as uppercase instead of lower.
