Safe Mode Problem?

slappyJ

Joined: 2006-11-11
Posts: 5
Posted: Thu, 2012-07-12 01:32

I have been running Gallery for years with no problems until just the other day I went to the homepage and got these errors. (I have not made any configuration changes this problem just happened out of the blue). I have read the FAQ and did see where it tells you not to run in Safe Mode but it doesn't tell you how to turn safe mode off. Why would I need to turn off safe mode if I have been running this software for years with no problems...my host says the php is fine it is a problem with my code. Is this a safe mode problem? Is it something else? Is my hosts tech support out to lunch???...please help, thank you.

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /magma/users/u35/btphoto/public_html/modules/core/classes/GalleryTranslator.class on line 299

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANGUAGE' - it's not in the allowed list in /magma/users/u35/btphoto/public_html/modules/core/classes/GalleryTranslator.class on line 300

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /magma/users/u35/btphoto/public_html/modules/core/classes/Gallery.class on line 629

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 5008 is not allowed to access /magma/users/u35/btphoto/public_html/g2data/images owned by uid 0 in /magma/users/u35/btphoto/public_html/modules/core/classes/GalleryPlatform.class on line 624

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 5008 is not allowed to access /magma/users/u35/btphoto/public_html/g2data/images owned by uid 0 in /magma/users/u35/btphoto/public_html/modules/core/classes/GalleryPlatform.class on line 624
Error
Error (ERROR_PLATFORM_FAILURE) :

in modules/core/classes/GalleryTemplate.class at line 260 (GalleryCoreApi::error)
in modules/core/classes/GalleryTemplate.class at line 200 (GalleryTemplate::_initCompiledTemplateDir)
in main.php at line 418 (GalleryTemplate::fetch)
in main.php at line 87
in main.php at line 80


Gallery version (2.1):

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-07-12 01:56

Gallery does work with php's safe mode on period.

Your host has to disable safe mode.

if they refuse, get a new host.

-s

 
slappyJ

Joined: 2006-11-11
Posts: 5
Posted: Thu, 2012-07-12 02:11

As I said...I have been running Gallery for about 4-5 years and still on the original install. Why all of a sudden would I be getting these kinds of errors?

My host just decided to turn on Safe Mode after all these years???

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-07-12 02:16

if your host upgraded php

link to your phpinfo?
FAQ: How do I create a phpinfo page?

-s

 
slappyJ

Joined: 2006-11-11
Posts: 5
Posted: Thu, 2012-07-12 02:27
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-07-12 02:34

yup, safe_mode is on.
You'll have to ask your host to turn it off.

-s

 
slappyJ

Joined: 2006-11-11
Posts: 5
Posted: Thu, 2012-07-12 03:22

Ok thanks for your help.

Cheers

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2012-07-12 04:08

In your shoes, I'll be looking for a new host whatever the outcome of the safe mode thing.

The PHP setup your php info shows is so poor and dated that it is incredible how they have managed to get paying customers.

--
dakanji.com