# Eye Exam Error - TypeError: $(...).draggable is not a function

**URL:** <https://community.open-emr.org/t/eye-exam-error-typeerror-draggable-is-not-a-function/24209>\
**Category:** Support\
**Tags:** eye-form, feature, installation\
**Created:** [January 3, 2025, 7:04pm UTC](https://community.open-emr.org/t/eye-exam-error-typeerror-draggable-is-not-a-function/24209 "2025-01-03T19:04:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ionescu\_Razvan\_Danie](https://community.open-emr.org/user_avatar/community.open-emr.org/ionescu_razvan_danie/32/21118_2.png) [@Ionescu\_Razvan\_Danie](https://community.open-emr.org/u/Ionescu_Razvan_Danie)\
**Post date:** [January 3, 2025, 7:04pm UTC](https://community.open-emr.org/t/eye-exam-error-typeerror-draggable-is-not-a-function/24209/1 "2025-01-03T19:04:21Z")

</div>

Hello everyone!

I am trying to implement a DIY instance of OpenEMR for my ophthalmology practice (yes I am the physician and also the one who implements it - please excuse any stupidity I might say)

I am getting this popup each time I open the Eye exam tab - it seams to work, but I get this error:

TypeError: $(…).draggable is not a function  
URL: [http://localhost/openemr/interface/forms/eye\_mag/js/eye\_base.php?enc=2&providerID=5](http://localhost/openemr/interface/forms/eye_mag/js/eye_base.php?enc=2&providerID=5)  
Line: 4110 Column: 33  
Error object: “{}”

**OpenEMR Version**  
I’m using OpenEMR version 7.02

**Browser** :  
I’m using: Firefox 133.0.3

**Operating System**  
I’m using: Ubuntu 24.04 LTS on a VM machine - planning on migrating the system to a Proxmax VE on a standalone server; it will be an offline install, not connected to the www

**Search**  
Yes, but not found the answer. Similar problem somewhere else but on an older version 6…, and not quite the same. Also tried Chat GPT, but he was not able to help me with this one. Although I must give him credit for sorting out tons of other issues.

**Logs**  
No logs generated

PS: willing to switch to Debian if it is considered better. Any feedback wold be appreciated!

Thank you!

---

<div class="post-metadata">

**Author:** ![Ionescu\_Razvan\_Danie](https://community.open-emr.org/user_avatar/community.open-emr.org/ionescu_razvan_danie/32/21118_2.png) [@Ionescu\_Razvan\_Danie](https://community.open-emr.org/u/Ionescu_Razvan_Danie)\
**Post date:** [January 3, 2025, 9:36pm UTC](https://community.open-emr.org/t/eye-exam-error-typeerror-draggable-is-not-a-function/24209/2 "2025-01-03T21:36:16Z")

</div>

Also I get a similiar error but on another line when I toggle the draw function (Ctrl-D):

TypeError: $(…).offset() is undefined  
URL: [http://localhost/openemr/interface/forms/eye\_mag/js/eye\_base.php?enc=2&providerID=5](http://localhost/openemr/interface/forms/eye_mag/js/eye_base.php?enc=2&providerID=5)  
Line: 2108 Column: 26  
Error object: “{}”

And this when clicking on HPI field:

TypeError: data\_all is null  
URL: [http://localhost/openemr/interface/forms/eye\_mag/js/eye\_base.php?enc=57&providerID=5](http://localhost/openemr/interface/forms/eye_mag/js/eye_base.php?enc=57&providerID=5)  
Line: 4313 Column: 55  
Error object: “{}”

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [January 4, 2025, 12:25am UTC](https://community.open-emr.org/t/eye-exam-error-typeerror-draggable-is-not-a-function/24209/3 "2025-01-04T00:25:15Z")

</div>

hi @Ionescu_Razvan_Danie , I think you have Admin-\>Config-\>Logging-\>User Debugging Options turned on which would popup these errors however I believe they are minor and you should be able to use the eye exam without the popups if you disable the debugging. Good luck!

---

<div class="post-metadata">

**Author:** ![Ionescu\_Razvan\_Danie](https://community.open-emr.org/user_avatar/community.open-emr.org/ionescu_razvan_danie/32/21118_2.png) [@Ionescu\_Razvan\_Danie](https://community.open-emr.org/u/Ionescu_Razvan_Danie)\
**Post date:** [January 4, 2025, 2:57pm UTC](https://community.open-emr.org/t/eye-exam-error-typeerror-draggable-is-not-a-function/24209/4 "2025-01-04T14:57:24Z")

</div>

Thank you for your prompt answer! I really do appreciate it.

I did turn off debugging before and those alerts did go away. Unfortunately I only have a very basic understanding of the code and I am not totally aware of what it is doing and what those alerts meant.  
The fact that you mentioned that they should not pose a problem in the future usability of the installation, is the most important part for me.

Thank you for your time!
