Page 1 of 1

Safe mode warning in 1.0.5

Posted: Tue Mar 27, 2007 6:50 am
by lupker
Hi all,

I have upgraded from 1.0.4 to 1.0.5 today and suddenly i get the following warning in the admin:

WARNING: PHP Safe mode is enabled. This will cause difficulty with files uploaded via the web browser interface, including images, theme and module XML packages. You are advised to contact your site administrator to see about disabling safe mode.

This was not so in 1.0.4.

It's very frustration to see this every time. My webserver is pretty secure, but CMSMS works fine with safe mode enabled.
File uploads / dir. creation and also module installation is no problem.

So how can I get rid of this warning? I do not want my users to see this.

Thanks for your help!

Gr,
Mark

Re: Safe mode warning in 1.0.5

Posted: Wed Apr 04, 2007 7:57 pm
by EdwinB
Same problem here :(

Unfortunately I didn't found an answer for this on the forum. Is it possible to disable the warning?

Re: Safe mode warning in 1.0.5

Posted: Wed Apr 04, 2007 11:12 pm
by zerostile
Same problem , but all works fine.
how to disable ?

Cisla

Re: Safe mode warning in 1.0.5

Posted: Wed Apr 04, 2007 11:39 pm
by Nullig
You can try to disable it by editing your config.php file by adding...

Code: Select all

ini_set('safe_mode',0);
near the top, just under the <?php line.

Nullig

Re: Safe mode warning in 1.0.5

Posted: Thu Apr 05, 2007 12:29 pm
by EdwinB
I tried the above and unfortunately it didn't work. The error message still shows in the admin center.

Re: Safe mode warning in 1.0.5

Posted: Thu Apr 05, 2007 2:33 pm
by Nullig
You could try adding it to the index.php file in the admin directory or just edit the index.php to comment out the following lines:

Code: Select all

// Display a warning if safe mode is enabled
if( ini_get('safe_mode') )
  {
    echo '<div class="pageerrorcontainer"><div class="pageoverflow"><p class="pageerror">'.lang('warning_safe_mode').'</p></div></div>';
  }
Nullig

Re: Safe mode warning in 1.0.5

Posted: Thu Apr 05, 2007 5:09 pm
by EdwinB
Thank you very much! The comment out thing works!

;D