Avatar image upload not working
-
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.
- The topic ‘Avatar image upload not working’ is closed to new replies.