Quote:
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.
I am such a noob. Please help, I am not sure where to change my mosconfig live site thingy. All I see is this,
Code:
var $live_site = '';
But even when I put my site domain it does not work.
Also mentioned was to put that coding in the index1.php and index2.php after the SSL but I cannot find that anywhere, the SSL check I mean. it just has this.
Code:
<?php
/**
* @version $Id: index2.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
include('index.php');
?>
as for index1.php I get this
Code:
<?php
/**
* @version $Id: index.php 10381 2008-06-01 03:35:53Z pasamio $
* @package Joomla
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// Set flag that this is a parent file
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE__) );
define('DS', DIRECTORY_SEPARATOR);
require_once( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once( JPATH_BASE .DS.'includes'.DS.'framework.php' );
require_once( JPATH_BASE .DS.'includes'.DS.'helper.php' );
require_once( JPATH_BASE .DS.'includes'.DS.'toolbar.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
/**
* CREATE THE APPLICATION
*
* NOTE :
*/
$mainframe =& JFactory::getApplication('administrator');
/**
* INITIALISE THE APPLICATION
*
* NOTE :
*/
$mainframe->initialise(array(
'language' => $mainframe->getUserState( "application.lang", 'lang' )
));
JPluginHelper::importPlugin('system');
// trigger the onAfterInitialise events
JDEBUG ? $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');
/**
* ROUTE THE APPLICATION
*
* NOTE :
*/
$mainframe->route();
// trigger the onAfterRoute events
JDEBUG ? $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');
/**
* DISPATCH THE APPLICATION
*
* NOTE :
*/
$option = JAdministratorHelper::findOption();
$mainframe->dispatch($option);
// trigger the onAfterDispatch events
JDEBUG ? $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');
/**
* RENDER THE APPLICATION
*
* NOTE :
*/
$mainframe->render();
// trigger the onAfterRender events
JDEBUG ? $_PROFILER->mark( 'afterRender' ) : null;
$mainframe->triggerEvent( 'onAfterRender' );
/**
* RETURN THE RESPONSE
*/
echo JResponse::toString($mainframe->getCfg('gzip'));
?>
Please help!! I urgently need to edit my site! will be very grateful