Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : new config files in version 2.0+

new config files in version 2.0+ il y a 1 an 8 mois #92834

  • lorenzov
  • Portrait de lorenzov
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Karma: 0
hi guys

hi guys, i have a quick query and i don't know whether it is a bug or not. i was used to limes 1.92 and the structure/options of the config.php there.

i have just done an installation of limes 2.0+ and after looking at the config files it looks like the samples config are not clear with the docs not helping much, therefore maybe you can help me clarify things.

in the latest build
- the config-defaults has the same format as the old 1.9 distribution
- the config-sample-mysql looks identical to the config.php created after installation

from the comments in the files ithink i understood that the new options should be added to the array in the config.php where the config array is set, i.e. lines 61-70
// Use the following config variable to set modified optional settings copied from config-defaults.php
	'config'=>array(
	// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
	// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
	// on your webspace.
	// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
		'debug'=>0,
		'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2
		'shownoanswer' => 2,
		'memory_limit' => '64',
		'maxemails'    => 100,
		'defaulthtmleditormode' => 'inline'
	)

but it doesn't look it is doing anyhing

is this something not yet implemented or am i looking in the wrong places?

many thanks! (and happy to add this info for those upgrading in the wiki)

lorenzo
L'administrateur a désactivé l'accès en écriture pour le public.

new config files in version 2.0+ il y a 1 an 7 mois #92943

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6429
  • Remerciements reçus 840
  • Karma: 249
Hello,

Some of config-default.php are now in global LimeSurvey setting.

It's shownoanswer, shownoanswer,maxemails,defaulthtmleditormode .

For memory_limit, think it work, but maybe a bug or your hoster don't allow you more memory.

Denis
L'administrateur a désactivé l'accès en écriture pour le public.

new config files in version 2.0+ il y a 1 an 7 mois #92945

  • lorenzov
  • Portrait de lorenzov
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Karma: 0
hi Denis, many thanks for the reply. so, where are the 'global settings' now? are my code and location correct?

the default config only has these two, the rest is what i added, but not sure whether the format is correct:
'debug'=>0,
'debugsql'=>0, // Set this to 1 to enanble sql logging, only active when debug = 2

thanks

lorenzo
L'administrateur a désactivé l'accès en écriture pour le public.

new config files in version 2.0+ il y a 1 an 7 mois #92952

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6429
  • Remerciements reçus 840
  • Karma: 249
Your code and location are correct.

For global seting, in survey admin : 1st menu bar.
L'administrateur a désactivé l'accès en écriture pour le public.
Cet utilisateur a été remercié pour son message par: lorenzov

new config files in version 2.0+ il y a 1 an 7 mois #92955

  • lorenzov
  • Portrait de lorenzov
  • Hors ligne
  • Fresh Lemon
  • Messages : 6
  • Karma: 0
brilliant thanks, i actually didn't see at all the icon with the global settings!

one thing to report is that if these are coded in the array in the config (i.e. when one is upgrading from an older version), the front-end doesn't actually pick them up. it is easy to fix by manually changing them, but perhaps it should be flagged in the upgrade info.
L'administrateur a désactivé l'accès en écriture pour le public.

new config files in version 2.0+ il y a 1 an 7 mois #92965

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6429
  • Remerciements reçus 840
  • Karma: 249
lorenzov écrit:
one thing to report is that if these are coded in the array in the config (i.e. when one is upgrading from an older version), the front-end doesn't actually pick them up. it is easy to fix by manually changing them, but perhaps it should be flagged in the upgrade info.
Good information.

But some config are already in database in 1.92, 1.92 take the config.php.

Then we need for each global config:
- Find it's in database,
- if not : find if it's config.php and take it from this.

Please, can you do a bug report ?

Denis
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.229 secondes
Donation Image