Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
TinyMCE Unsafe Javascript Attempt on Sub Domain
Avatar
Richard Greaves
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2012 - 11:36 am

Whenever we try to use something that has TinyMCE open up in a frame (such as trying to add a hyperlink), we get the following message:

Unsafe JavaScript attempt to access frame with URL http://sub.domain.com/forums/?new=topic from frame with URL http://sub.domain.com/wp-conte.....domain.com. Domains, protocols and ports must match.

My guess is this is caused because the mce_rdomain is just "domain.com" instead of "sub.domain.com", but there seems to be no way to fix this.

Any ideas? This is a pretty major issue.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 16, 2012 - 2:03 pm

Wow - that's a first.
So - is your WP theme using frames?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 16, 2012 - 10:27 pm

or are you doing any kind of redirection?

Avatar
Richard Greaves
Member
Free Members
sp_UserOfflineSmall Offline
May 21, 2012 - 11:02 am

Thanks for the quick replies. Sorry I didn't respond, I was out last week.

The WP theme doesn't use frames. It's a custom-built one, so I'm confident of that.

We are using a basic WP redirect for permalinks, but that's about it. We have the forums running off of /forums.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 21, 2012 - 12:41 pm

Is the forum page excluded from the redirection? Do all of the forum views load at all?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Richard Greaves
Member
Free Members
sp_UserOfflineSmall Offline
May 21, 2012 - 3:38 pm

The forum should still have it's normal redirection, but that's it.

The forums themselves work just fine. It's just the TinyMCE popup boxes that generate this error.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 21, 2012 - 5:07 pm

Would you be willing to try a small code edit for me? I am clutching at straws really but there is a hint of something in the Moxie docs which might be a factor here.

The file is /wp-content/sp-resources/forum-plugins/inymce-richtext/tinymce/sp-tinymce-init.php

Starting on line 29 is the long list of 'init' statements and we need to try adding a new one. Maybe even put it as the first one. Note the format. So could you try:

document_base_url : "http://your-domain/forum-url/",

At least I think that would be right! see if this helps?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Richard Greaves
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 10:57 am

It didn't work unfortunately.

Any other ideas?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 22, 2012 - 11:42 am

None at all 🙂 but I would like to continue to explore that one. This is a completely unique report - the first of it's kind in 6 years so I am struggling a bit to understand what might be happening. Of course the fact that it is unique does suggest that the issue stems from something environmental to your setup - server setting maybe or some sort of Apache module I have not come across before.

Would you be wiling to send me the actual full text of the message with the correct domain names and full paths in place? If you wish to keep these private then you could send them to me in a PM...

Also - if willing - perhaps you could also ask your host support of they have any idea what the cause may be...?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Richard Greaves
Member
Free Members
sp_UserOfflineSmall Offline
May 22, 2012 - 12:52 pm

I will PM you the complete message.

This is actually an internally managed box (we manage it ourselves). The server was running perfectly fine before we upgraded to the latest version (we were previously using 3.x before the upgrade). We are now running the latest version. No environmental settings (including redirects) have been changed since then.

Thanks for the help.

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626