Title: Error on saving new appointment
Last modified: July 18, 2018

---

# Error on saving new appointment

 *  [aazztech](https://wordpress.org/support/users/aazztech/)
 * (@aazztech)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/error-on-saving-new-appointment/)
 * Hi,
    I am trying to add an appointment but I am gettings some crazy error in 
   the console. It says,
 *     ```
       VM1390:10 Uncaught TypeError: Cannot read property 'name' of undefined
           at n.eval (eval at m.template (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,jquery-ui-core&ver=4.9.7:8), <anonymous>:10:64)
           at n.c (load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,jquery-ui-core&ver=4.9.7:8)
           at n.render (settings.prod.js?ver=4.9.7:674)
           at n.save (settings.prod.js?ver=4.9.7:898)
           at HTMLTableRowElement.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.7:3)
           at HTMLTableRowElement.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.7:3)
       (anonymous) @ VM1390:10
       c @ load-scripts.php?c=1&load[]=hoverIntent,common,admin-bar,underscore,backbone,jquery-ui-core&ver=4.9.7:8
       render @ settings.prod.js?ver=4.9.7:674
       save @ settings.prod.js?ver=4.9.7:898
       dispatch @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.7:3
       r.handle @ load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils&ver=4.9.7:3
       /wp-admin/admin-ajax.php?action=ea_appointment&id=undefined:1 Failed to load resource: the server responded with a status of 400 (BAD REQUEST)
       ```
   
 * It looks like the code at line 210 in settings.prod.js file is causing the issue
   because encodeURIComponent(this.id) is returning undefined as far as I understand.
   Please fix it. I really liked your plugin and wanted to use it in a project but
   sadly I can not use it because of this bug.
 * Besides, many assets of the plugin fail to load and show 404 errors in the console
   in the admin area. please check that too.
 * Thanks.

The topic ‘Error on saving new appointment’ is closed to new replies.

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

## Tags

 * [ajax error](https://wordpress.org/support/topic-tag/ajax-error/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 0 replies
 * 1 participant
 * Last reply from: [aazztech](https://wordpress.org/support/users/aazztech/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/error-on-saving-new-appointment/)
 * Status: not resolved