Skip to:
Content
Pages
Categories
Search
Top
Bottom

New Avatar Upload : Uncaught TypeError: Cannot read property ‘add’ of undefined

  • @landwire

    Participant

    Hi there,
    I am getting the following error on avatar upload, after I have chosen an image to upload and pressed “open” on the media screen. Also happens when I drop a file into the avatar uploader with drag and drop.
    Has anybody got the same issue? How would I go about troubleshooting this? Is there a non minified version of the script somewhere?
    The site is only local, so I cannot post a link…
    Thanks,
    Sascha

    This is from the console in Chrome:

    Uncaught TypeError: Cannot read property ‘add’ of undefined
    (anonymous function) @ bp-plupload.min.js?ver=2.3.2.1:2j.each.j.forEach @ underscore.min.js?ver=1.6.0:5(anonymous function) @ bp-plupload.min.js?ver=2.3.2.1:2(anonymous function) @ plupload.full.min.js?ver=2.1.1:28(anonymous function) @ plupload.full.min.js?ver=2.1.1:13i @ plupload.full.min.js?ver=2.1.1:13(anonymous function) @ plupload.full.min.js?ver=2.1.1:13(anonymous function) @ plupload.full.min.js?ver=2.1.1:13i @ plupload.full.min.js?ver=2.1.1:13r @ plupload.full.min.js?ver=2.1.1:13t.extend.dispatchEvent @ plupload.full.min.js?ver=2.1.1:13t.extend.trigger @ plupload.full.min.js?ver=2.1.1:13(anonymous function) @ plupload.full.min.js?ver=2.1.1:28(anonymous function) @ plupload.full.min.js?ver=2.1.1:13

Viewing 4 replies - 1 through 4 (of 4 total)
  • @shanebp

    Moderator

    >after I have chosen an image to upload and pressed “open” on the media screen.

    On what avatar screen are you seeing ‘open’ ?

    > Is there a non minified version of the script somewhere?

    Yes, in buddypress/bp-core/js/

    @landwire

    Participant

    Hi there,
    I narrowed the problem down:
    I am using: wp_enqueue_media() on the same page as the new avatar upload and that seems to be creating the conflict. I am not great with the whole backbone stuff, so I would need some help here.

    Could someone confirm that conflict and what can be done to avoid this conflict?
    Many thanks,
    Sascha

    @dekoningalex

    Participant

    I have this same issue… any solution?

    @danbp

    Participant
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New Avatar Upload : Uncaught TypeError: Cannot read property ‘add’ of undefined’ is closed to new replies.
Skip to toolbar