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.
You are not logged in.
Pages: 1
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
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
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
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
In that case it sounds like the setting should be removed. Having it set at all is raising the error.
Offline
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
Offline
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
Thom, I've moved your post into a new topic: http://community.theturninggate.net/vie … hp?id=7721
Offline
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
Pages: 1