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):
Posts: 8339
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
Posts: 5
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???
Posts: 8339
if your host upgraded php
link to your phpinfo?
FAQ: How do I create a phpinfo page?
-s
Posts: 5
http://bradthomasphotography.com/modules/rewrite/data/mod_rewrite/gallery/phpinfo.php
Posts: 8339
yup, safe_mode is on.
You'll have to ask your host to turn it off.
-s
Posts: 5
Ok thanks for your help.
Cheers
Posts: 1642
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