Environment variables issue

Permalink
Hi

Yesterday, a site I'm running (njklatreklub.dk) started giving out four error messages. The first is this:

Warning: putenv() [function.putenv]: Warning: Cannot set environment variable 'LC_ALL' - it's not in the allowed list (setting: safe_mode_allowed_env_vars) in /customers/njklatreklub.dk/njklatreklub.dk/httpd.www/concrete/libraries/localization.php on line 33


The rest are just session/header errors caused by the display of the first one.

I suppose the culprit is the server running in safe mode (something I can't change - that's controlled by my host), but the thing is, it's always run in safe mode. I upgraded to 5.3.3.1 from 5.2.1 about two weeks ago via a couple of intermediate versions without any problems at all. It has run perfectly fine until yesterday.

Any suggestions? The warnings result in me not even being able to log into the Dashboard so I'm kinda locked out :-)

Thanks in advance,
Andreas Møgelmose

 
Shopimport replied on at Permalink Reply
Shopimport
I get the same issues on another hosting company which does have safe mode turned on. When I download 5.4 and run the setup I get directly:
Warning: putenv() [function.putenv]: Warning: Cannot set environment variable 'LC_ALL' - it's not in the allowed list (setting: safe_mode_allowed_env_vars) in /customers/skoepje.nl/skoepje.nl/httpd.www/concrete/libraries/localization.php on line 33
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at (skip)/concrete/libraries/localization.php:33) in (skip)/concrete/startup/session.php on line 18
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at (skip)/concrete/libraries/localization.php:33) in (skip)/concrete/startup/session.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at (skip)/concrete/libraries/localization.php:33) in (skip)/concrete/libraries/view.php on line 734


The first is a real warning, the 3 warnings following are a result of showing the first warning already. It will then not be possible to send http headers.

The question is how to correctly install under safe mode?
andrew replied on at Permalink Reply
andrew
Hmm. That's weird because the entire putenv() call is being wrapped in an if statement that checks to see whether safe mode is enabled.

I would try installing a newer version of concrete, which I don't think will have this specific issue.