Title: [Plugin: Attachments] JavaScript Error
Last modified: August 19, 2016

---

# [Plugin: Attachments] JavaScript Error

 *  Resolved [MNS](https://wordpress.org/support/users/mns/)
 * (@mns)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/)
 * Hey guys,
 * it appears that the Attachment Plugin is causing a JavaScript error when I am
   in the article interface of the admin backend.
 * It only appears, once I’ve added an attachment to the article. That error prevents
   any other JavaScript from executing.
 * That’s the error, copied from Firebug.
 * > b.connectWith is undefined
   >  [http://localhost/artigwp/wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,jquery-ui-core,jquery-ui-tabs,thickbox,schedule,wp-ajax-response,autosave,suggest,wp-lists,jquery-ui-sortable,postbox,post,word-count,media-upload&ver=99621a8160566ac3f962c7564e612e6d](http://localhost/artigwp/wp-admin/load-scripts.php?c=1&load=hoverIntent,common,jquery-color,jquery-ui-core,jquery-ui-tabs,thickbox,schedule,wp-ajax-response,autosave,suggest,wp-lists,jquery-ui-sortable,postbox,post,word-count,media-upload&ver=99621a8160566ac3f962c7564e612e6d)
   > Line 407
 * Someone has an idea about that?
 * [http://wordpress.org/extend/plugins/attachments/](http://wordpress.org/extend/plugins/attachments/)

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

 *  Plugin Author [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * (@jchristopher)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/#post-1714781)
 * Does the error still occur with all other plugins deactivated?
 *  Thread Starter [MNS](https://wordpress.org/support/users/mns/)
 * (@mns)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/#post-1714826)
 * Yep, it does.
 * EDIT: For clarification. I use them within Custom Posts. Some of them include
   some custom Ajax functionality. Still when I comment these out it changes nothing.
   I also use it in a Custom Post without any custom JavaScript and the error appears.
   And JUST in the post types where the Attachments Plugin is assigned to and JUST
   when I have added an item via Attachments. As long as I didn’t attach any file
   there is no problem.
 *  Plugin Author [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * (@jchristopher)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/#post-1714855)
 * Any way I can log in and poke around? [http://mondaybynoon.com/contact](http://mondaybynoon.com/contact)
 *  Thread Starter [MNS](https://wordpress.org/support/users/mns/)
 * (@mns)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/#post-1714925)
 * Ah, I got it. How could I not see that. One of my Custom Post Types included 
   the jQuery UI Datepicker Script. Instead of just integrating it in the admin 
   head of the specific post type I’ve included it into all admin pages. When I 
   comment this code out, everything works like a charm again.
 * Sorry for the troubles and thanks for your efforts.
 *  Plugin Author [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * (@jchristopher)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/#post-1714927)
 * No problem, glad you’ve got it figured out!

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

The topic ‘[Plugin: Attachments] JavaScript Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/attachments_fafafa.svg)
 * [Attachments](https://wordpress.org/plugins/attachments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/attachments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/attachments/)
 * [Active Topics](https://wordpress.org/support/plugin/attachments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/attachments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/attachments/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jon Christopher](https://wordpress.org/support/users/jchristopher/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-attachments-javascript-error/#post-1714927)
 * Status: resolved