View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
06638Bug reportsOtherpublic2012-10-05 15:26
ReporterDenisChenu Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary06638: Unable to change config-default in config.php
Description

I try to set some config in config.php:
I put:
'config'=>array(
'debug'=>2,
'memorylimit'=>64,
'column_style' => 'table'
)

But no way : memotylimit (easily readable with phpinfo) are set to 32 like in config-default.php, same thing for column_style and debug mode.

Steps To Reproduce

Use a personnal settings in config.php, can try different method.

Additional Information

The config.php are loaded in index.php:
line 148 : $aSettings= include(APPPATH.'config'.DIRECTORY_SEPARATOR.'config.php');

BUT the config-default are in
core/LSYii_Application.php
line 37 : $ls_config = require(APPPATH . '/config/config-defaults.php');

The config-defaults are reading after config.php (I think)

The solution can be:
load config-default in config.php and remove it from LSYii_Application.php
load config in LSYii_Application.php ? (I don't know if it's OK)
fill $aSettings['config'] with config-default in index.php before config.php in index.php

I test some option, but i don't found a good solution actually ...

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)121004
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-10-04 12:27

administrator   ~21028

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9639

c_schmitz

c_schmitz

2012-10-04 13:09

administrator   ~21030

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9643

c_schmitz

c_schmitz

2012-10-05 15:26

administrator   ~21079

New version 2.00+ build 121005 released.

Related Changesets

LimeSurvey: master 2102cb27

2012-10-04 05:26

c_schmitz


Details Diff
Fixed issue 06638: Unable to change config-default in config.php Affected Issues
06638
mod - application/core/LSYii_Application.php Diff File

LimeSurvey: master 8ed0a962

2012-10-04 06:08

c_schmitz


Details Diff
Fixed issue 06638: Unable to change config-default in config.php Affected Issues
06638
mod - application/core/LSYii_Application.php Diff File

Issue History

Date Modified Username Field Change
2012-10-04 09:30 DenisChenu New Issue
2012-10-04 12:26 c_schmitz Assigned To => c_schmitz
2012-10-04 12:26 c_schmitz Status new => assigned
2012-10-04 12:27 c_schmitz Changeset attached => LimeSurvey master 2102cb27
2012-10-04 12:27 c_schmitz Note Added: 21028
2012-10-04 12:27 c_schmitz Resolution open => fixed
2012-10-04 12:27 c_schmitz Status assigned => resolved
2012-10-04 12:27 c_schmitz Fixed in Version => 2.00+
2012-10-04 13:09 c_schmitz Changeset attached => LimeSurvey master 8ed0a962
2012-10-04 13:09 c_schmitz Note Added: 21030
2012-10-05 15:26 c_schmitz Note Added: 21079
2012-10-05 15:26 c_schmitz Status resolved => closed