Title: Can&#8217;t attach documents
Last modified: August 25, 2020

---

# Can’t attach documents

 *  Resolved [venturadesign](https://wordpress.org/support/users/venturadesign/)
 * (@venturadesign)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/)
 * When I click “Attach Files” the page just refreshes. So can’t upload any files.
 * I am using the Cera Intranet theme which this plugin came packaged with and I
   am only using plugins that also came with that theme.
 * Cheers,
 * James.

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

 *  Thread Starter [venturadesign](https://wordpress.org/support/users/venturadesign/)
 * (@venturadesign)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13310455)
 * I am guessing it is this error which is causing the TimeMCE on page editor to
   not be working correctly?
 * Uncaught (in promise) TypeError: Cannot read property ‘apply’ of undefined
    at
   tN.execCallback (tinymce.min.js?ver=4960-20190918:2) at yw (tinymce.min.js?ver
   =4960-20190918:2) at f.content_style.a (tinymce.min.js?ver=4960-20190918:2) at
   tinymce.min.js?ver=4960-20190918:2
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13311111)
 * Hi, we’ve identified an issue with some media uploader changes that were included
   with WP 5.3. Please try the fix: [https://github.com/boonebgorges/buddypress-docs/pull/672/commits/3290b68cfa574e8c989c22d53aea9fd2bde6d23e](https://github.com/boonebgorges/buddypress-docs/pull/672/commits/3290b68cfa574e8c989c22d53aea9fd2bde6d23e)
 * The key changes are removing the lines at line 13 and adding the code at line
   62. Or just replace `attachments.js` with [https://raw.githubusercontent.com/boonebgorges/buddypress-docs/master/includes/js/attachments.js](https://raw.githubusercontent.com/boonebgorges/buddypress-docs/master/includes/js/attachments.js)
 * and let us know if it solves your issue as well.
 * Best,
 * -David
    -  This reply was modified 5 years, 9 months ago by [David Cavins](https://wordpress.org/support/users/dcavins/).
 *  Thread Starter [venturadesign](https://wordpress.org/support/users/venturadesign/)
 * (@venturadesign)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13311417)
 * I replaced the attachments.js file and that is working now thank you.
 * Cheers,
 * James.
 *  [carlosgv](https://wordpress.org/support/users/carlosgv/)
 * (@carlosgv)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13316308)
 * Hello,
    I remplace attachments.js but I can’t attach documents.
 * file_frame is undefined
    Now thew error is: attachments.js?ver=dcfb9226486054d8470f32cd5f449db2:
   14 Uncaught TypeError: Cannot read property ‘open’ of undefined at HTMLButtonElement.
   <anonymous> (attachments.js?ver=dcfb9226486054d8470f32cd5f449db2:14) at HTMLButtonElement.
   dispatch (jquery.js?ver=1.12.4-wp:3) at HTMLButtonElement.r.handle (jquery.js?
   ver=1.12.4-wp:3)
 * —
    ERROR is in: ___ // Open the dialog file_frame.open();
 * ————-
 * wordpress version: 5.5
    buddypress version: 6.2.0
    -  This reply was modified 5 years, 9 months ago by [carlosgv](https://wordpress.org/support/users/carlosgv/).
    -  This reply was modified 5 years, 9 months ago by [carlosgv](https://wordpress.org/support/users/carlosgv/).
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13316781)
 * [@carlosgv](https://wordpress.org/support/users/carlosgv/) It sounds like the“
   document.ready” action is not running (so that `file_frame` is not created). 
   Are there other JavaScript errors on your page being reported to the console?
 *  [carlosgv](https://wordpress.org/support/users/carlosgv/)
 * (@carlosgv)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13316899)
 * Hello,
    Yes, I see this error: Error: Syntax error, unrecognized expression: .
   kleo-main-header .nav > li a[href*=#] wp-content/themes/kleo/assets/js/app.min.
   js?ver=4.9.9:7
 *  [carlosgv](https://wordpress.org/support/users/carlosgv/)
 * (@carlosgv)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13316914)
 * The problem it’s in theme kleo. I change to antoher theme and worked well.
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13317101)
 * That’s too bad. You might try adding the jQuery migrate plugin (jQ migrate was
   removed in 5.5) to see if Kleo needs it.
 *  [carlosgv](https://wordpress.org/support/users/carlosgv/)
 * (@carlosgv)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13317781)
 * Hi David,
    Many thank. I install Jquery updated pluging and now working well.
 *  [stephernandez](https://wordpress.org/support/users/stephernandez/)
 * (@stephernandez)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13372288)
 * Hello David,
    I Have the same problem and I tested to change attachment.js without
   success. Then, I tested to install Jquery updated but no way. When I desactivate
   the theme (ENFOLD) no problem, I can attach document, so I guess the problem 
   come from the theme. The author tell me it could be another origin. Do you have
   another idea to solve that ? Stephanie
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13377155)
 * Hi [@stephernandez](https://wordpress.org/support/users/stephernandez/),
 * The jQuery migrate plugin I’m thinking of is this one: [https://wordpress.org/plugins/enable-jquery-migrate-helper/](https://wordpress.org/plugins/enable-jquery-migrate-helper/)
 * If you’ve updated BP Docs attachment.js, everything should be working with the
   current versions of WP. You can see what the error is specifically by using your
   browser’s console: [https://developer.mozilla.org/en-US/docs/Tools/Web_Console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console)
 * The error will list which file and line is causing the issue, so you can see 
   where the problems is. (But it sounds like you already know what the issue is,
   truthfully.)
 * -David
 *  [lolomoputol](https://wordpress.org/support/users/lolomoputol/)
 * (@lolomoputol)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13385129)
 * Hi [@dcavins](https://wordpress.org/support/users/dcavins/)
 * I’m having the same issue with wordpress 5.5.1 using Cera intranet theme.
    I 
   already replaced the attachment.js but still no luck.
 * I hope you can help me with this.
 * Thanks.
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13389500)
 * Hi [@lolomoputol](https://wordpress.org/support/users/lolomoputol/), Your problem
   sounds exactly like that of [@venturadesign](https://wordpress.org/support/users/venturadesign/)
   who started this thread. As far as I understand, he resolved it by replacing `
   attachments.js` with the updated version at [https://raw.githubusercontent.com/boonebgorges/buddypress-docs/master/includes/js/attachments.js](https://raw.githubusercontent.com/boonebgorges/buddypress-docs/master/includes/js/attachments.js)
 * Maybe [@venturadesign](https://wordpress.org/support/users/venturadesign/) can
   chime in and tell you if there were other things to do to get Cera running.
 * Best,
 * -David
 *  [lolomoputol](https://wordpress.org/support/users/lolomoputol/)
 * (@lolomoputol)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13391515)
 * Hi [@dcavins](https://wordpress.org/support/users/dcavins/)
 * Really not sure if this is theme related cause i already tried using the twenty-
   twenty theme but still getting the same error.
 *  Plugin Author [David Cavins](https://wordpress.org/support/users/dcavins/)
 * (@dcavins)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13393496)
 * Hi [@lolomoputol](https://wordpress.org/support/users/lolomoputol/),
 * We’ve released a point update that addresses the issue (by replacing the `attachments.
   js` file with the new version). Please update to it.
 * I have tested myself using BP Docs 2.1.5, WP 5.5.1, BP 6.2 and a TwentySomething
   theme, and encounter no JS errors when adding attachments to a BP doc.
 * -David

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

The topic ‘Can’t attach documents’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-docs.svg)
 * [BuddyPress Docs](https://wordpress.org/plugins/buddypress-docs/)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-docs/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-docs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-docs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-docs/reviews/)

 * 15 replies
 * 5 participants
 * Last reply from: [David Cavins](https://wordpress.org/support/users/dcavins/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/cant-attach-documents/#post-13393496)
 * Status: resolved