Title: Cannot upload doc
Last modified: August 21, 2016

---

# Cannot upload doc

 *  Resolved [aaronkine](https://wordpress.org/support/users/aaronkin/)
 * (@aaronkin)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-upload-doc/)
 * Site URL [http://nprnsb.org/resources/create/](http://nprnsb.org/resources/create/)
 * Errors are:
    Uncaught ReferenceError: bp_docs is not defined ( attachments.js
   Line 65)
 * Then when i try and click the ‘Add File’ button i get this error….
    Uncaught 
   TypeError: Cannot read property ‘frame’ of undefined ( attachments.js Line 14)
 * I also have a Staging site that i Disabled almost All Plugins and even tested
   it on the default Twenty Fourteen theme. I get the same errors.
    here is my Staging
   site… and for some reason on this site the tinyMCE Editor icons do not load but
   they do on my Live site which is supposed to be an exact Copy. [http://aaronkine.staging.wpengine.com/resources/create/](http://aaronkine.staging.wpengine.com/resources/create/)
   Live Site —> [http://nprnsb.org/resources/create/](http://nprnsb.org/resources/create/)
   Any ideas?
 * [https://wordpress.org/plugins/buddypress-docs/](https://wordpress.org/plugins/buddypress-docs/)

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

 *  Thread Starter [aaronkine](https://wordpress.org/support/users/aaronkin/)
 * (@aaronkin)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-upload-doc/#post-5042857)
 * I got it to work by changing Two Lines in “attachments.js”
 * FROM THIS:
    file_frame = new BP_Docs_MediaFrame({ **title: bp_docs.upload_title,**
   button: { **text: bp_docs.upload_button,**
 * TO THIS:
    file_frame = new BP_Docs_MediaFrame({ **title: ‘New Doc’,** button:{**
   text: ‘Select’,** },
 *  Plugin Author [Boone Gorges](https://wordpress.org/support/users/boonebgorges/)
 * (@boonebgorges)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/cannot-upload-doc/#post-5042867)
 * Thanks for the report and for posting your solution. I’ve created a ticket for
   the problem [https://github.com/boonebgorges/buddypress-docs/issues/417](https://github.com/boonebgorges/buddypress-docs/issues/417)
   and will follow up there with the results of investigation.
 *  [mateotrep](https://wordpress.org/support/users/mateotrep/)
 * (@mateotrep)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cannot-upload-doc/#post-5042877)
 * I’m not confortable in changing the code,
 * when a try to add a file , an attachment.
 * the add file button is simply not working
 * any news about the investigation?
 *  [eso-wordpress](https://wordpress.org/support/users/eso-wordpress/)
 * (@eso-wordpress)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/cannot-upload-doc/#post-5042888)
 * I am also not able to upload files. i installed BP docs and it was working fine.
   I didn’t make any changes and then it stopped working. can you give some more
   guidance on changing the code so i can get back up and running?

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

The topic ‘Cannot upload doc’ 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/)

 * 4 replies
 * 4 participants
 * Last reply from: [eso-wordpress](https://wordpress.org/support/users/eso-wordpress/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/cannot-upload-doc/#post-5042888)
 * Status: resolved