[SOLVED] safe_mode problem

ryanh

Joined: 2005-01-27
Posts: 29
Posted: Thu, 2005-01-27 14:33

I've read the post here about a similar safe_mode problem. The problem I'm having is that safe_mode is turned off locally, but turned on by master, and you guessed it I'm still having the safe_mode error when I try to install the script.

I have the feeling that the script checks the master value, and not the local value that pretains to my account settings.

Is there any workaround here? Could this be changed in the beta version if what I'm thinking is true.

Thanks,
Ryan

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2005-01-27 18:10

There's only one value that we can check, it's the one that's returned when we do:

ini_get('safe_mode')

The local setting will override the master setting, so if it's really turned off locally then it's not a problem.

If you're using one of the latest nightly snapshots, then it's highly unlikely that G2 is getting this wrong. I'd verify it with your system administrator...

 
ryanh

Joined: 2005-01-27
Posts: 29
Posted: Thu, 2005-01-27 19:06

I'm using the newest Alpha release, perhaps the new nightly snapshot will fix this problem.

I am positive that safe_mode is turned off, from looking at phpinfo(), and the code you just posted says it's turned off.

Thanks for your input!

 
ryanh

Joined: 2005-01-27
Posts: 29
Posted: Thu, 2005-01-27 23:32

I think I've tried just about everything, and I can't get past this safe_mode problem during the installation.

I've got the newest nightly build, and am 100% sure that safe_mode is turned off.

Any help would be greatly appreciated.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-27 23:47

try:

$x = ini_get('safe_mode');
var_dump($x);

what do you get from that?

 
jmullan
jmullan's picture

Joined: 2002-07-28
Posts: 974
Posted: Thu, 2005-01-27 23:49

ryanh: what does
gallery2/lib/tools/phpinfo.php say about safe_mode?

we use php's ini_get() to find the value of safe mode - could you create a php file like:

<?php
var_export(ini_get('safe_mode'));
?>

and tell us the output? Thanks a bunch.

 
ryanh

Joined: 2005-01-27
Posts: 29
Posted: Fri, 2005-01-28 00:08

Thank you both for your quick code snippets. They both returned the value 'off'.

I've also just downloaded a newer 'latest' version of G2 from jpmullan.com, and it seems to get past that safe_mode step now!

Thank you all very much for such a quick response! I can't wait to try this out!