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

SUJET : 500 error: Undefined index: config

500 error: Undefined index: config il y a 4 mois 3 semaines #105698

  • hvalentim
  • Portrait de hvalentim
  • Hors ligne
  • Fresh Lemon
  • Messages : 2
  • Karma: 0
Tried updating this morning to most recent 2.05+ version and ended up stuck with an error message while logs were filled with these:

[error] FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: PHP Notice: Undefined index: config in /srv/www/domain.com/public_html/site/application/core/LSYii_Application.php on line 59
[error]FastCGI: server "/usr/lib/cgi-bin/php5-fcgi" stderr: PHP message: PHP Notice: ob_clean(): failed to delete buffer zlib output compression in /srv/www/domain.com/public_html/site/framework/base/CErrorHandler.php on line 110

I am using PHP 5.3.10-1ubuntu3.9 if that helps.

Previous 2.05+ was working like a charm.
Dernière édition: il y a 4 mois 3 semaines par hvalentim. Raison: grammar and details
L'administrateur a désactivé l'accès en écriture pour le public.

500 error: Undefined index: config il y a 4 mois 2 semaines #105792

  • DenisChenu
  • Portrait de DenisChenu
  • Hors ligne
  • Moderator Lime
  • Messages : 6205
  • Remerciements reçus 787
  • Karma: 238
Hi,

1st : you have set php_value error_reporting E_ALL somewhere in your virtula host, or in your php.ini.
2nd : you remove or comment some line in your application/config/config.php
Default config.php have this line at eneds:
	'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
	)
But, ith the last version, you don't have error even with this configuration.

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

500 error: Undefined index: config il y a 4 mois 2 semaines #105802

  • hvalentim
  • Portrait de hvalentim
  • Hors ligne
  • Fresh Lemon
  • Messages : 2
  • Karma: 0
Thanks a lot for your fix.

I was using an old config.php (installation originally dates back to version 1.8 or 1.9...) and that portion was missing.

Everything is working fine now.
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.207 secondes
Donation Image