Safe mode warnings just sometimes?

bvvelzen

Verified User
Joined
Oct 30, 2003
Messages
73
Location
Netherlands
We use Gallery for some of our costumers and when we access a site like that: http://www.velzart.nl/weltpen/gallery/
and when we refresse's a few times, it give's a error like this:

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /home/admin/domains/velzart.nl/public_html/weltpen/gallery/util.php on line 2465

Warning: putenv(): Safe Mode warning: Cannot set environment variable 'LANGUAGE' - it's not in the allowed list in /home/admin/domains/velzart.nl/public_html/weltpen/gallery/util.php on line 2467

Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/velzart.nl/public_html/weltpen/gallery/util.php:2465) in /home/admin/domains/velzart.nl/public_html/weltpen/gallery/util.php on line 2475

What can that be, it's just a little bit strange because it only give's that safe mode error sometimes, not every time.

Greetings
 
Hello,

That's a bit odd if it's happening randomly. We've stopped including safe_mode in our VirtualHosts so perhaps have look to see if you have any custom virtual_host templates setup.

/usr/local/directadmin/data/templates/custom/virtual_host*.conf

You can just delete the ones in the custom directory if you arn't sure what they're doing.

Our version of the template has safe_mode commented out with a # character, so double check the httpd.conf for that domain:

/usr/local/directadmin/data/users/admin/httpd.conf

to see if it's commented out or not.

John
 
Back
Top