MyBB Community Forums

Full Version: MentionMe 3.2.12 (for MyAlerts 2.x)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2017-01-31, 03:07 AM)ozanakkaya Wrote: [ -> ]Sorry.

This errorSad 

popup not working.


jquery.caret.js:392 Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "http://www.xxx.net" from accessing a cross-origin frame.
    at setContextBy (http://cdn.xxx.net/jscripts/Caret.js/jquery.caret.js:392:30)
    at m.fn.init.$.fn.caret (http://cdn.xxx.net/jscripts/Caret.js/jquery.caret.js:415:7)
    at showPopup (http://cdn.xxx.net/jscripts/MentionMe/autocomplete.js:1413:23)
    at HTMLDivElement.onKeyUp (http://cdn.xxx.net/jscripts/MentionMe/autocomplete.js:1401:6)
    at HTMLDivElement.dispatch (http://cdn.xxx.net/jscripts/jquery.js?ver=1806:4:8549)
    at HTMLDivElement.r.handle (http://cdn.xxx.net/jscripts/jquery.js?ver=1806:4:5252)
    at Object.trigger (http://cdn.xxx.net/jscripts/jquery.js?ver=1806:4:7650)
    at HTMLDivElement.<anonymous> (http://cdn.xxx.net/jscripts/jquery.js?ver=1806:4:15517)
    at Function.each (http://cdn.xxx.net/jscripts/jquery.js?ver=1806:2:2975)
    at m.fn.init.each (http://cdn.xxx.net/jscripts/jquery.js?ver=1806:2:835)

And "MentionMe-maintenance" not work.
sorry.

I could be wrong, but from looking at the first 2 lines of your error, it appears as though you have cross-origin measures set up and it's blocking the javascript files from loading.
(2017-01-31, 03:07 AM)ozanakkaya Wrote: [ -> ]Sorry.

This errorSad

popup not working.

jquery.caret.js:392 Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement'

(2017-01-31, 07:57 AM)andrewjs18 Wrote: [ -> ][...]it appears as though you have cross-origin measures set up and it's blocking the javascript files from loading.

andrewjs18 is correct. And I can't figure out how to solve it. :s

This issue in a nutshell is that Cloudflare (Rocket Loader), CDN, and subdomains all kill the JavaScript for the popup when they serve the iFrame HTML from a different URL. Because I am using the SCEditor API to obtain the document element of the SCEditor iFrame, this is really an issue with SCEditor itself.

If anyone knows a fix for this, I'd appreciate any help you could give.
DevilShakerz has offered a solution to this problem.

@insertco @feilian @MyFaith can you please try this and see if it helps?

add this line to .htaccess:

Access-Control-Allow-Origin: https://cdn.example.com

Obviously replace the url with your CDN
I wonder if it's possible that a mentioned user gets notified without installing MyAlerts?
Nope, MyAlerts is needed.
I noticed that sorting the avatars is wrong.
(2017-02-17, 08:38 AM)hkkp Wrote: [ -> ]I noticed that sorting the avatars is wrong.

Can you post a screenshot or be more specific?
If I enter in the mheditor the @, then appears the list with the users and the avatars are wrongly assigned. What else should I write about it?
That's very strange.

Can you link me to mheditor so that I can test?
(2017-02-17, 09:20 PM)hkkp Wrote: [ -> ]If I enter in the mheditor the @, then appears the list with the users and the avatars are wrongly assigned. What else should I write about it?

It makes me sad... how we can know that you use mheditor and avatars are wrongly assigned on popup... your previous bug report is useless, no steps how to reproduce and debug this issue properly.