If you have problem with some Ajax application, this is generally due to the fact that the server side application does not perform a correct joomla initialisation.
When working under Joomla 2.5 or higher, the joomla initialisation is changed and most developer continue initilizing the ajax server site code with the joomla 1.5 method.
The author of the extension just have to use the standard joomla 2.5 initialization and the problem will be fixed.
The standard initialization can be found in any index.php present in the root of joomla that you can cross-check yourself.
The correct initialization is
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
if (file_exists(dirname(__FILE__) . '/defines.php')) {
include_once dirname(__FILE__) . '/defines.php';
}
if (!defined('_JDEFINES')) {
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE.'/includes/defines.php';
}
require_once JPATH_BASE.'/includes/framework.php';
Most developper does not do that as skip the preliminary test that make the extension not working.
In general the error is
define('_JEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
define('JPATH_BASE', dirname(__FILE__));
require_once JPATH_BASE.'/includes/defines.php';
require_once JPATH_BASE.'/includes/framework.php';
So ask the author of the extension to fix their extension and use the standard joomla 2.5 initialization.
The new way to initilize joomla is also compatible with the old joomla 1.5
So just ask the author to fix their code.
|