By Jannik L. on Tuesday, 23 September 2014
Posted in Technical Issues
Replies 16
Likes 0
Views 839
Votes 0
ES Dashboard: TypeError: EasySocial.ajax is not a function (Happens when it is open for a min)

(Note: It could be a JavaScript conflict with Fabrik, but I am not sure)
Did you add any customizations or any javascript codes like this in your template / extension?
·
Tuesday, 23 September 2014 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
No JavaScript or PHP overrides. The only customizations I have are css overrides in .css and I replaced jQuery 1.10.2 with 1.11 in wanderers to fix SocialAds. I also have a Fabrik module that displays Trending Hashtags... but again it is a Fabrik module, not a custom module. No modding or hacking to the core.
·
Tuesday, 23 September 2014 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Note: sometimes it throws the following error instead: TypeError: EasySocial.Controller is not a function

Also, a good way to replicate the TypeError: EasySocial.ajax issue is when logged in click the load more button.
·
Tuesday, 23 September 2014 14:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Can I know where were you able to reproduce this errors Jannik? I can't seem to reproduce those errors on your site.
·
Tuesday, 23 September 2014 19:20
·
0 Likes
·
0 Votes
·
0 Comments
·
If you are logged in, just go to activity stream... wait a min or two. Then one or two errors will pop up. If not... click on the load more button. (I haven't tested as guest, but as I have more modules enabled while logged in, I suspect the problem is there)
·
Tuesday, 23 September 2014 19:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jannik,

While I am on the stream page at http://statusselect.com/stream , I waited for almost 5 minutes but still don't hit any errors By the way, are you running the latest version of Wanderers? If I recall correctly, there was some issues with the earlier versions of the Wanderers template.
·
Tuesday, 23 September 2014 22:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm odd. Are you logged in? Because I think it is a conflict with a module that only is published while logged in. I definitely get conflicts here.
·
Tuesday, 23 September 2014 23:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Well, I don't even know how to sign in to your site since you have hidden all the login forms?
·
Tuesday, 23 September 2014 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
haha yeah, I limit signups to Facebook and Google. But have made the login visible again for you
·
Tuesday, 23 September 2014 23:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jannik,

Hm, yeah I was able to reproduce this now. How do you completely disable CDN on your site? For some reasons, everything is being rendered with statusselect.cachefly.net even if I have disabled the CDN. Are you using some special rewrites?

Also is this the latest version of Wanderers? We just uploaded a build today.
·
Wednesday, 24 September 2014 00:40
·
0 Likes
·
0 Votes
·
0 Comments
·
I have attached cachefly login details you can turn it off there. If a build was pushed today, then no... I will start uploading the relevant files right away. As I have modded some files is there any chance of you guys implementing changelogs which list what files were changed in each version?
·
Wednesday, 24 September 2014 00:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok, I have updated all the override files in wanderers/html/ any other files that were updated?
·
Wednesday, 24 September 2014 00:50
·
0 Likes
·
0 Votes
·
0 Comments
·
I have disabled CDN
·
Wednesday, 24 September 2014 01:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jannik,

I am sorry for the delay of this reply.

Regarding your issue, it seems like the issue was caused by two module from JReview, the 'JReviews Listings Module' and 'JReviews Reviews Module'. I've temporary disabled these two modules and now it seem like EasySocial is working correctly.

What happened is, when JReview module rendering the items, the module fire an ajax request for each item, and each ajax request returning the full html structure of the same page which caused the page to crashed ( sometime ) or causing javascript error to EasySocial

I not sure why the ajax request is returning the whole page html structure and maybe you should seek further assistance from JReview.

Hope this help and have a nice day
Sam
·
Wednesday, 24 September 2014 13:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh wow, I would never have guessed jReviews. Thanks for diagnosing this. I will get in touch with the team at jReviews
·
Wednesday, 24 September 2014 14:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jannik,

You are welcome. Yeah do let us know what is the feedback from JReviews regarding this issue and let us know if you require further assistance from us to resolve this issue

Have a nice day
Sam
·
Wednesday, 24 September 2014 14:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post