WildcardSearch / MentionMe

A plugin for MyBB 1.8.x that allows Twitter-style tagging and integration with MyAlerts
GNU General Public License v3.0
20 stars 9 forks source link

Cannot read property scrollwidth or replace of undefined. #207

Open jefpadfi opened 6 years ago

jefpadfi commented 6 years ago

I recieve the following error when trying to use version 3.2.3 release. Both errors are inside autocomplete.min.js. Autocomplete does not work, As long as I type the name correctly the MentionME plugin does work.

autocomplete.min.js:1 Uncaught TypeError: Cannot read property 'scrollWidth' of undefined
    at Object.Z [as init] (autocomplete.min.js:1)
    at Object.C [as init] (autocomplete.min.js:1)
    at HTMLDocument.p (autocomplete.min.js:1)
    at j (jquery.js?ver=1806:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1806:2)
    at Function.ready (jquery.js?ver=1806:2)
    at HTMLDocument.J (jquery.js?ver=1806:2)
Z @ autocomplete.min.js:1
C @ autocomplete.min.js:1
p @ autocomplete.min.js:1
j @ jquery.js?ver=1806:2
fireWith @ jquery.js?ver=1806:2
ready @ jquery.js?ver=1806:2
J @ jquery.js?ver=1806:2
autocomplete.min.js:1 Uncaught TypeError: Cannot read property 'replace' of undefined
    at A (autocomplete.min.js:1)
    at HTMLDivElement.G (autocomplete.min.js:1)
    at HTMLDivElement.dispatch (jquery.js?ver=1806:4)
    at HTMLDivElement.r.handle (jquery.js?ver=1806:4)
    at Object.trigger (jquery.js?ver=1806:4)
    at HTMLDivElement.<anonymous> (jquery.js?ver=1806:4)
    at Function.each (jquery.js?ver=1806:2)
    at m.fn.init.each (jquery.js?ver=1806:2)
    at m.fn.init.trigger (jquery.js?ver=1806:4)
    at HTMLBodyElement.db (jquery.sceditor.bbcode.min.js?ver=1805:2)

A | @ | autocomplete.min.js:1
-- | -- | --
  | G | @ | autocomplete.min.js:1
  | dispatch | @ | jquery.js?ver=1806:4
  | r.handle | @ | jquery.js?ver=1806:4
  | trigger | @ | jquery.js?ver=1806:4
  | (anonymous) | @ | jquery.js?ver=1806:4
  | each | @ | jquery.js?ver=1806:2
  | each | @ | jquery.js?ver=1806:2
  | trigger | @ | jquery.js?ver=1806:4
  | db | @ | jquery.sceditor.bbcode.min.js?ver=1805:2
  | dispatch | @ | jquery.js?ver=1806:4
  | r.handle | @ | jquery.js?ver=1806:4
WildcardSearch commented 6 years ago

Hi @TheDocter

Thanks for the report. Can you do me a favor and go to MentionMe's plugin settings, disable Minify JavaScript option and post those error messages again?

jefpadfi commented 6 years ago

When the Minify JavaScript option is turned off, there are no errors and the pop up window and auto complete work just fine.

*side note -> Tennant was one of my favorite Doctors. Love the avatar man.

WildcardSearch commented 6 years ago

Thanks for the detailed report. I haven't experienced that error, but I will try so that I can fix the issue.

For now, as bad as I hate to ask you to, I'd suggest just leaving Minify JavaScript off.

*side note reply -> I like you more just because you said that lol

Eldenroot commented 5 years ago

Can you confirm that when JS is minified, the minimum width of mentionme box is not set properly sometimes?

WildcardSearch commented 5 years ago

I'll try to have a look this weekend. Should be getting my first off day of 2019 Saturday (I hope)

Eldenroot commented 5 years ago

Did you have a chance to test it out? I think it could be an issue with minified js, what do you use for minifying?

WildcardSearch commented 4 years ago

@Eldenroot I somehow missed this. I recently went back to YUI to compress JS because of issues with Google Closure Compiler.