Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can’t upload profile pictures bp-plupload.min.js?ver=2.6.2:1 Uncaught TypeError:


  • dekoningalex
    Participant

    @dekoningalex

    Hi,

    Users can’t upload cover/profile pictures for their profile. If one clicks on the button to select a picture to upload, you can select a file, but when you choose a file nothing happens. The following error shows up: Uncaught TypeError: Cannot read property ‘add’ of undefined bp-plupload.min.js?ver=2.6.2:1

    When i use a buddypress compatible theme (e.g. twentyeleven) the issue doesn’t occur so it is a custom theme issue. I have asked my theme developer for help but that has gotten me nowhere…

    1. Which version of WordPress are you running? 4.6

    2. Did you install WordPress as a directory or subdomain install? root

    3. If a directory install, is it in root or in a subdirectory? root

    4. Did you upgrade from a previous version of WordPress? If so, from which version? The one before 4.6

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes

    6. Which version of BP are you running? 2.6.2

    7. Did you upgraded from a previous version of BP? If so, from which version? Yes, the one before

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? Yes, but none of these plugins cause issues as i turned them all off, and the problem still persisted.

    9. Are you using the standard WordPress theme or customized theme? Customized theme (Bronx by Fuelthemes)

    10. Have you modified the core files in any way? No

    11. Do you have any custom functions in bp-custom.php? No

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.10

    13. Please provide a list of any errors in your server’s log files. Don’t know how

    14. Which company provides your hosting? Transip

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux (Ubuntu)

    Thank you so much in advance, any help is very much appreciated.

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

  • danbp
    Participant

    @danbp

    Sorry but we can’t bring assistance for premium themes.
    that said it may be a JS conflict generated by BP in some exotic JS situation…
    Read here: https://buddypress.trac.wordpress.org/ticket/6574


    dekoningalex
    Participant

    @dekoningalex

    Hi danbp,

    Thank you for your response.

    There is a patchfile for bp-plupload that might solve the issue in your link, but how do i patch the file? Iv’e tried adding the code of the patch in src/bp-core/js/bp-plupload.js but that didn’t work.


    danbp
    Participant

    @danbp

    You can download the modified js file (trunk:10207) here:
    https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/js/bp-plupload.js?rev=10207

    If it doesn’t work, revert back to original plupload.js and debug elsewhere.

    Youl’ll probably have to ask your theme support in that case.
    Activate also wp_debug in wp-config to eventl. get some other error msg.


    dekoningalex
    Participant

    @dekoningalex

    Thank you very much that solved the profile avatar upload issue, it now works. Yet, it created another problem for uploading a cover image. In detail, if one clicks on change over profile there is nu upload button present anymore, which makes it impossible to upload one.


    danbp
    Participant

    @danbp

    Perhaps a CSS adjustment to do ?
    But first, revert to a twenty theme as it work’s now.
    If you see the button with Twenty, you have a theme issue.

    Reactivate your theme and check the page source code in your browser and verify that the button exist in the code.
    (../members/USRNAME/profile/change-cover-image/)

    This button is in a drag’n’drop area inside a script.
    If you see the code but don’t see the button displayed, you have to work your CSS to get it.
    Meanwhile you can try to add a picture by drag’n’drop even if you don’t see the button (it is only usefull in case drag’n’drop doesn’t work – ie when JS is deactivated).

    Can’t say more…

    Codex reference (in case of)


    doubleF
    Participant

    @doublef

    Hi!

    For anyone having the

    Cannot read property ‘add’ of undefined bp-plupload.min.js issue.

    There is a conflict between BuddyPress’ upload js and the lodash.js library. Probably because it’s using the “_” object as underscore.js.


    roseashm
    Participant

    @roseashm

    Where do I upload my theme to on BuddyPress?


    guidoj
    Participant

    @guidoj

    Hello, 4 years after this posts, I still have this error message. Does in the meantime anyone have a workaround? WordPress 5.7 (was the same in previous version). Buddypress 7.2.0.

    Error message:
    bp-plupload.min.js?ver=7.2.0:1 Uncaught TypeError: Cannot read property ‘add’ of undefined
    at addFile (bp-plupload.min.js?ver=7.2.0:1)
    at r (lodash.min.js?ver=4.17.19:9)
    at Function.hf (lodash.min.js?ver=4.17.19:83)
    at n.initialize (bp-plupload.min.js?ver=7.2.0:1)
    at n.h.View (backbone.min.js?ver=1.4.0:2)
    at n.constructor (wp-backbone.min.js?ver=5.7:2)
    at n [as constructor] (backbone.min.js?ver=1.4.0:2)
    at new n (backbone.min.js?ver=1.4.0:2)
    at Object.uploadProgress (avatar.min.js?ver=7.2.0:1)
    at p (backbone.min.js?ver=1.4.0:2)


    simon_a6
    Participant

    @simon_a6

    We have a similar issue with uploading images if the user role is ‘Vendor’… we need Contributor and Vendor to be able to upload Profile photos. For some reason, BP bars any others from doing it. Need a way around it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.