By Greg Keys on Tuesday, 16 February 2021
Posted in Beta Testing
Replies 5
Likes 0
Views 526
Votes 0
I'm getting the following error on my Samsung Galaxy Note 10+ when visiting our easysocial 4 beta testing site in google chrome



site-4.0.0.min.js:48 Uncaught TypeError: Cannot read property 'addEventListener' of null
at j (site-4.0.0.min.js:48)
at a.ob (site-4.0.0.min.js:48)
at a._initAddons (site-4.0.0.min.js:48)
at new a (site-4.0.0.min.js:48)
at social.anara.dev/:1115
at HTMLDocument.<anonymous> (site-4.0.0.min.js:8)
at j (site-4.0.0.min.js:2)
at Object.fireWith [as resolveWith] (site-4.0.0.min.js:2)
at Function.ready (site-4.0.0.min.js:2)
at HTMLDocument.K (site-4.0.0.min.js:1)


looking at the offending code here is s snippet of where its null


a.addEventListener("touchmove",function(a){b="",a.movementY>0?b="down":a.movementY<0&&(b="up")}),{get:function(){return b}}}function k(a){return{}.toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function l(a,b,c){if("function"==typeof b){var d=b.call(a);if("undefined"!=typeof d)return d}return null!==b&&"function"!=typeof b&&"undefined"!=typeof b||"undefined"==typeof c?b:c}function m(a,b,c){var d=!1,e=function(c){("undefined"==typeof c||c.target===a)&&(d||(a.removeEventListener("transitionend",e),a.removeEventListener("webkitTransitionEnd",e),b.call(a)),d=!0)};a.addEventListener("transitionend",e),a.addEventListener("webkitTransitionEnd",e),setTimeout(e,1.1*c)}function n(){return"mm-"+o++}
This seems to be related to turning off the toolbar, the javascript which is breaking seems to be trying to add an eventListener to something in the tooldbar, turning the toolbar on seems to fix the error
·
Tuesday, 16 February 2021 08:41
·
0 Likes
·
0 Votes
·
0 Comments
·
this seems to occur when the wireframe theme is enabled, changing to any other theme seems to fix the problem
·
Tuesday, 16 February 2021 09:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I just tested on your site and there is no error shown on the console as shown in the screenshot. https://take.ms/qJC4M

Also, I tested on my Galaxy Note 10+ and there is no error shown as well.

Am I missing anything?
·
Tuesday, 16 February 2021 18:48
·
0 Likes
·
0 Votes
·
0 Comments
·
did you change the easysocial theme to the wireframe theme? all the other themes seem to work, its wireframe that seems to break on mobile.
·
Tuesday, 16 February 2021 23:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

It seems that it is a known issue.

I had logged this into our issue tracker.

For a temporary fix, the toolbar should be enabled for now.
·
Wednesday, 17 February 2021 13:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post