• Resolved venturadesign

    (@venturadesign)


    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

    (@venturadesign)

    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

    (@dcavins)

    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

    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

    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.
    Thread Starter venturadesign

    (@venturadesign)

    I replaced the attachments.js file and that is working now thank you.

    Cheers,

    James.

    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.
    • This reply was modified 5 years, 9 months ago by carlosgv.
    Plugin Author David Cavins

    (@dcavins)

    @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?

    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

    The problem it’s in theme kleo. I change to antoher theme and worked well.

    Plugin Author David Cavins

    (@dcavins)

    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.

    Hi David,
    Many thank. I install Jquery updated pluging and now working well.

    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

    (@dcavins)

    Hi @stephernandez,

    The jQuery migrate plugin I’m thinking of is this one: https://ww.wp.xz.cn/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

    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

    Hi @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

    (@dcavins)

    Hi @lolomoputol, Your problem sounds exactly like that of @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

    Maybe @venturadesign can chime in and tell you if there were other things to do to get Cera running.

    Best,

    -David

    Hi @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

    (@dcavins)

    Hi @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.