Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-05-31 06:17:49

mridley
Member
From: UK
Registered: 2012-09-26
Posts: 221
Website

Error message

Hi, I get the error messages below randomly, sometimes on the home page and in galleries,  any help would be much appreciated..

Unexpected error: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0

Offline

#2 2017-05-31 08:25:48

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Error message

As it says.  Your server is configured with 'safe_mode' enabled, which is a security risk and has long been deprecated.  I suggest you contact your host's technical support to disable this.

A little more details on what safe_mode does.  It passes parameters from the URL directly as PHP variables.  If, for example, we had code like this in our page (which we don't):

if ($someCondition) { 
   $authenticated = true;
}

if ($authenticated) {
  doSomethingThatOnlyAdminShouldBeAbleToDo();
}

then a malicious user could access the admin-only functions by visiting your site with a URL of http://yoursite.com/?authenticated=true

While we don't have code like the above example, I can't guarantee there aren't other possible scenarios caused by safe_mode being on. If you have third party code installed, such as Wordpress, then it's very likely that malicious bots will be targeting exploits like this.

Offline

#3 2017-06-01 01:13:47

mridley
Member
From: UK
Registered: 2012-09-26
Posts: 221
Website

Re: Error message

Hi Ben,  thanks for the reply.

I have been in contact with my hosting company they have checked and safe mode is already disabled but the error is still appearing?

Probably worth mentioning, I've not seen\heard it happening on a desktop only mobile devices,   I get it most times i visit a gallery on my S7 phone.

Last edited by mridley (2017-06-01 01:31:07)

Offline

#4 2017-06-01 04:49:15

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Error message

I saw it earlier today on your site when looking on my laptop


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2017-06-01 06:09:15

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Error message

In that case it sounds like the setting should be removed. Having it set at all is raising the error.

Offline

#6 2017-06-01 07:39:29

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Error message

My apologies, but for some reason I read safe_mode as register_globals, which is what I described in my first reply. safe_mode isn't insidious, but it has been deprecated in the same way.

What version of PHP is your site running? This can be found by logging in to Backlight and clicking the PHP Info link on the main Backlight page.

Offline

#7 2017-06-01 20:29:31

mridley
Member
From: UK
Registered: 2012-09-26
Posts: 221
Website

Re: Error message

It's pho 5.3.3

Offline

#8 2017-06-01 20:51:20

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Error message

That would explain it.  The feature was deprecated in 5.3 and removed in 5.4.  So it's only 5.3 that should raise the error.

I strongly advise to upgrade your version of PHP.  5.3.3 came out in 2010.  You're likely missing a bunch of security fixes that have come out since that time.

Offline

#9 2017-06-02 07:20:30

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Error message

Thom, I've moved your post into a new topic: http://community.theturninggate.net/vie … hp?id=7721

Offline

#10 2017-06-02 23:11:02

mridley
Member
From: UK
Registered: 2012-09-26
Posts: 221
Website

Re: Error message

Ben wrote:

That would explain it.  The feature was deprecated in 5.3 and removed in 5.4.  So it's only 5.3 that should raise the error.

I strongly advise to upgrade your version of PHP.  5.3.3 came out in 2010.  You're likely missing a bunch of security fixes that have come out since that time.

Thanks Ben,

I have been advised I need to move to their cloud based servers,  so is their any info on how to move an existing backlight site to a new server without having to upload all the galleries etc again?

Offline

Board footer

Powered by FluxBB