I know that this has been tossed up so many times however, I want to go ahead and provide an actual fix for those who do not want to explain it to other users of their administrator panel or just for their own convenience. If you are receiving any of the following:
1)
Blank popups when attempting to post images, links, tables, or any other popup in
TinyMCE 2) Popups display no useful text but show something similar to:
{$lang_insert_link_title}3) Receiving something similar to '
uncaught exception: Permission denied to get property Window.tinyMCE' or '
tinyMCE has no properties'
4) Having issues
saving, closing, previewing, or applying new or preexisting content
5) And perhaps other
Javascript related functions in the administrator panel.
Then you have two options...
First you can follow the
FAQ here or
this FAQ (Both are for the same issue). However you will have to remember to always go to the live site url.
Your other option is you can insert a PHP snippet into both your index.php and index2.php in your administrator folder that will automatically go there for you and so you do not have to worry about it at all in the future.
To apply this fix, open up the
index.php AND the
index2.php in the
administrator folder, and then insert the following
in the gap after the
SSL check and before the
"require_once( '../includes/joomla.php' );":
Code:
//URL Check
$mw_chk_http=explode(".",$_SERVER['HTTP_HOST'],1);
# HTTPS Check
if(empty($_SERVER['HTTPS'])){
$mw_cmp_http=explode(".",substr($mosConfig_live_site,7),1);
}else{
$mw_cmp_http=explode(".",substr($mosConfig_live_site,8),1);
}
# Compare Current to Config Site
if(strtolower($mw_chk_http[0])!==strtolower($mw_cmp_http[0])){
header("Location: ".$mosConfig_live_site."/administrator/index2.php");
exit();
}
Once you have applied the fix to both files, upload them to your live site and give it a shot. You will now be directed to the live site as defined in the joomla configuration.
Hopefully this helps a few headaches. I apologize if a fix similar to this has already been posted, however I didn't think it would hurt.
Note: As always, backup the files you are about to edit before ever applying any sort of script modification to them. Also this fix may be eliminated if you do any sort of Joomla version upgrades or a clean installation. If you have any problems with this fix, please post your feedback on this thread.
Mambo: This is untested on Mambo, however if you are experiencing similar to problems as described above, feel free to use the snippet above and let me know if you have any problems with it.
_________________
Reid Workman
Internet Faction - Web Development and Design
ReidWorkman.com