No configuration file found and no installation code + ajax

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply

Hello,
Everyone I faced a problem of " No configuration file found and no installation code available. Exiting... " when i used a joomla file by a AJAX .

In my file i used a ajax tab code from http://www.dynamicdrive.com/dynamicinde ... /index.htm

.When first time i open a default.php file through a AJAX it's give me a error " Restricted access "
then i was entered following code...

<?php
// no direct access
if (!defined('_VALID_MOS') && !defined('_JEXEC')) {
// Set flag that this is a parent file
define( '_JEXEC', 1 );

define('JPATH_BASE_NEW', dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))));
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE_NEW .DS.'includes'.DS.'defines.php' ) ;
require_once ( JPATH_BASE_NEW .DS.'includes'.DS.'framework.php' ) ;
require_once ( JPATH_BASE_NEW .DS.'configuration.php' );
JDEBUG ? $_PROFILER->mark( 'afterLoad' ) : null;
$mainframe =& JFactory::getApplication('site');
$mainframe->initialise();
}
global $mainframe;
?>

They solved the problem of " Restricted access "..

But now the new error is arise "No configuration file found and no installation code available. Exiting... ".
Please help me what i do..and what is wrong here.....


Rajeev

Post By: | 09-20-2012 00:24

I'm also trying to add javascript to a php file and am getting the same error if there is anyone with a solution.

Thanks.

`Reply Or Comment!
Please LogIn to Reply!