Safe mode warning in 1.0.5

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
lupker

Safe mode warning in 1.0.5

Post 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
EdwinB
New Member
New Member
Posts: 3
Joined: Wed Apr 04, 2007 7:55 pm

Re: Safe mode warning in 1.0.5

Post by EdwinB »

Same problem here :(

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

Re: Safe mode warning in 1.0.5

Post by zerostile »

Same problem , but all works fine.
how to disable ?

Cisla
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Safe mode warning in 1.0.5

Post 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
EdwinB
New Member
New Member
Posts: 3
Joined: Wed Apr 04, 2007 7:55 pm

Re: Safe mode warning in 1.0.5

Post by EdwinB »

I tried the above and unfortunately it didn't work. The error message still shows in the admin center.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Safe mode warning in 1.0.5

Post 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
EdwinB
New Member
New Member
Posts: 3
Joined: Wed Apr 04, 2007 7:55 pm

Re: Safe mode warning in 1.0.5

Post by EdwinB »

Thank you very much! The comment out thing works!

;D
Locked

Return to “[locked] Installation, Setup and Upgrade”