• Jose

    (@giuse)


    Hello

    first of all, really my kudos for this amazing plugin.

    It just has a problem in the profile page when you want to upload a new picture for the avatar.

    I’ve tested it disabling all other plugins. It looks like a problem related to jQuery.

    When you try to upload a new picture you can see the following error in the console:

    “jquery.min.js:2 Uncaught TypeError: e.indexOf is not a function”

    I haven’t investigated deeper, but for me, you have a deprecated event alias somewhere in your code. I mean something like .load() instead of.on(‘load’,….)….

    Loading jQuery migrate the problem is fixed and the upload works without problems. So, I’m pretty sure you should check your jQuery scripts and remove all the deprecated event aliases.

    At the moment I have a temporary solution jQuery migrate, but I would like to remove it as soon as the issue is fixed.

    To reproduce the problem, I suggest trying uploading an avatar in a profile page being sure you have the last version of jQuery provided by the core, and that jQuery migrate is not loaded.

    Thank you very much in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Thank you so much, Our developer will check it again. If correct, we will update the plugin to fix it.

    Thanks

    Thread Starter Jose

    (@giuse)

    Hello

    thank you very much!

    @briantp

    Thread Starter Jose

    (@giuse)

    Hello @briantp

    in the javascript file profile.min.js in the method fileUploaded I had to replace this:

    e(““).attr(“src”, s.url).load(….

    with this:

    e(““).attr(“src”, s.url).on(‘load’…

    I hope it helps

    Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Thank you so much, our developer is checking it.

    Thanks

    I have the same problem with twentytwenty but the file profile.min.js file doesn’t contain that string.

    Solved my problem. The media location in general settings was incorrect.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Avatar image upload not working’ is closed to new replies.