-
AuthorPosts
-
March 1, 2013 at 9:56 am #185416
I’m trying to configure Extensions Manager, but when i clear and save the general settings it set the settings back to default. Does anyone know why and what to do about it?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
March 2, 2013 at 8:17 am #485103Because there are default values when you remove it to NULL, it will auto back to default values
But if you would like to change it you can modify code php file here
Open administrator/components/com_jaextmanager/models/default.php file
function getConfigService()
{
global $jauc;$params = $this->getComponentParams();
//get mysql variables
if (substr(PHP_OS, 0, 3) == 'WIN') {
$db = JFactory::getDBO();
$query = 'SHOW VARIABLES';
$db->setQuery($query);
$rs = $db->loadObjectList();
$aMysqlVariables = array();
foreach ($rs as $row) {
$aMysqlVariables[$row->Variable_name] = $row->Value;
}
$pathMysql = (isset($aMysqlVariables['basedir'])) ? $aMysqlVariables['basedir'] . 'bin' . DS . 'mysql' : 'mysql';
$pathMysqldump = (isset($aMysqlVariables['basedir'])) ? $aMysqlVariables['basedir'] . 'bin' . DS . 'mysqldump' : 'mysqldump';
} else {
$pathMysql = 'mysql';
$pathMysqldump = 'mysqldump';
}//store default values if user does not save
$missParams = array();
if ($params->get('MYSQL_PATH') == '') {
$missParams['MYSQL_PATH'] = $pathMysql;
}
if ($params->get('MYSQLDUMP_PATH') == '') {
$missParams['MYSQLDUMP_PATH'] = $pathMysqldump;
}
if ($params->get('DATA_FOLDER', '') == '') {
$missParams['DATA_FOLDER'] = "jaextmanager_data";
}
if (count($missParams) > 0) {
$this->storeComponentParams($missParams);
}//
$pathMysql = $params->get("MYSQL_PATH", $pathMysql);
$pathMysqldump = $params->get("MYSQLDUMP_PATH", $pathMysqldump);//validate settings
jaucValidServiceSettings($params);
//
$params->set('MYSQL_PATH', $pathMysql);
$params->set('MYSQLDUMP_PATH', $pathMysqldump);return $params;
}
AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)This topic contains 2 replies, has 2 voices, and was last updated by Ninja Lead 11 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Settings in JA Extensions Manager
Viewing 2 posts - 1 through 2 (of 2 total)