Closed ahm-3d closed 8 years ago
Can you please give more details about "not working"? What are you doing, and what do you see? Do you see any errors in your browser's JavaScript console?
On 07/30/15 14:18, ahm-3d wrote:
Hi, i am using: buddypress docs v.1.8.6 buddypress v.2.3.2.1 wordpress v.4.2.3 the "add files" button not working
— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/477.
the error i am getting in the console is _initJQuery() is not defined when i am on this page http://xxxxxxxx.com/resources/create/ i see the form where you can create a resource, however the add files button doesnt open up the media popup. i can submit the form but without being able to add files. this works fine when i am on localhost but not when it is live
Thanks for the additional details. One possibility is that you're running a plugin or a theme that is loading TinyMCE at some point early on the page, before BuddyPress Docs loads its scripts. Do you have any other plugins that are loading TinyMCE instances on the same page? In buddypress-docs/includes/component.php, find the line that looks like this:
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
and change it to
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 5 );
to see if that makes a difference.
that didnt work. i seem to be getting a different behavior between localhost and live. localhost is loading /plugins/buddypress-docs/includes/js/attachments.js in the footer while in my live version it is not loading that script at all on the page
Who is your webhost? Is it, by chance, WP Engine?
On 07/30/15 19:14, ahm-3d wrote:
that didnt work. i seem to be getting a different behavior between localhost and live. localhost is loading /plugins/buddypress-docs/includes/js/attachments.js in the footer while in my live version it is not loading that script at all on the page
— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/477#issuecomment-126527152.
wow, that is a very good guess, yes it is wpengine and i am trying to use the plugin within the staging area
Aha! I had an inkling. Check out this thread https://wordpress.org/support/topic/add-files-not-working?replies=17, especially starting here https://wordpress.org/support/topic/add-files-not-working?replies=17#post-6165053. It's possible that you'll have to contact your host to lift the "no heartbeat on the front end" restriction.
thanks. i contacted wpengine and asked them to "turn off the heartbeat option as advised here https://wordpress.org/support/topic/add-files-not-working?replies=17". once they have done that, it took me few refreshes to see that plugin is working again :-D many thanks for your continuous support.
Excellent! Thanks for working with me on this one.
On 07/31/15 10:52, ahm-3d wrote:
thanks. i contacted wpengine and asked them to "turn off the heartbeat option as advised here https://wordpress.org/support/topic/add-files-not-working?replies=17". once they have done that, it took me few refreshes to see that plugin is working again :-D many thanks for your continuous support.
— Reply to this email directly or view it on GitHub https://github.com/boonebgorges/buddypress-docs/issues/477#issuecomment-126731605.
Closing, but we need to remember the WP Engine bit.
Hi, i am using: buddypress docs v.1.8.6 buddypress v.2.3.2.1 wordpress v.4.2.3 the "add files" button not working