By pedenon on Thursday, 19 December 2013
Posted in Technical Issues
Replies 8
Likes 0
Views 1.1K
Votes 0
Hi,

Bug description :
When I go on edit profile screen (index.php?option=com_easysocial&view=profile&layout=edit&Itemid=742) and pick a photo to upload as a new avatar nothing append.
And I have a js error in the console.
On Chrome the error message is : Uncaught TypeError: Cannot call method 'get' of undefined
You can find a screenshot in attachment about the js part of code which throw this error.
On Firefox the error message is : TypeError: $.Image is undefined
var loader = $.Image.get(img),

I am working on the easysoical integration on a Joomla 2.5.17 website.
The Avatar upload was working fine until 2 or 3 weeks ago.
I first thought that it was a problem with the easysocial theme I created but even with one of the default easysocial theme I have the same bug and error message.
Maybe it comes from one of the last easysocial updates...

I update easysocial as soon as a new version is out as we are still in the developpment stage on this website, so we are currently working with the 1.1.3 version of easysocial.

The last time I had a bug like this it was in edit profiles in the backoffice, and to solve the bug I had to reinstall Easysocial with the iunstaller.
So I tried this solution, and reinstall Easysocial from the installer but it didn't fix the avatar upload issue.

Thanks for your support.
Hi,

Thanks a lot for your fast reply and fix, this solved the issue.
·
Tuesday, 31 December 2013 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It seems like this is an JavaScript issue. Could you provide us your site's access and an FTP access so that we can investigate this for you?
·
Thursday, 19 December 2013 18:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,
Sorry but my company rules doesn't allow us to provide external access and the website is on restricted access so I even can't provide you a front access.
I will try to find the origin of the js problem.
·
Thursday, 19 December 2013 22:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Sure, keep us updated then

Thanks!
·
Friday, 20 December 2013 02:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

So I finally found a part of the bug origin.
We don't want to use the cover functionnality so I disabled the "appear during registration" and "appear during edit" for the cover field in the profile setting.
I just activated again the "show on editing" for cover and now the upload avatar functionnality is appearing and seems to work ...
So I guess that the avatar upload need a script which is loaded by the cover app ...
Can you please check this from your side and help me to find a way to use avatar upload without cover upload functionnality ?

Thanks a lot for your help.
·
Monday, 30 December 2013 19:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello pedenon,

Nice catch, it looks like this is a bug in the system. Will update this in the next update of EasySocial
·
Tuesday, 31 December 2013 13:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Replace this file at /media/com_easysocial/apps/fields/user/avatar/themes/default/ and tit should fix your issue.
·
Tuesday, 31 December 2013 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating and glad that your issues are resolved now
·
Wednesday, 01 January 2014 15:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post