Advertisement:

Author Topic: repair_settings.php  (Read 1620 times)

Offline Novice

  • Jr. Member
  • **
  • Posts: 110
repair_settings.php
« on: April 16, 2018, 01:41:28 AM »
I recently had to move our site to a new server. All went well until I tried to use repair_settings.php to correct the directory paths and settings. The new server was running php 7.1 and this caused a server 500 error trying to load that page. Once I reverted the version back tp php 5.6 all was good.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,319
  • Gender: Male
    • Macedonian electronics forum
Re: repair_settings.php
« Reply #1 on: April 16, 2018, 05:43:02 AM »
So... what's the problem?

Officially, SMF 2.0.x doesn't support PHP 7.
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline SpacePhoenix

  • Semi-Newbie
  • *
  • Posts: 24
Re: repair_settings.php
« Reply #2 on: April 16, 2018, 06:39:36 AM »
So... what's the problem?

Officially, SMF 2.0.x doesn't support PHP 7.

It will need to soon, as 5.6 will be End Of Life at the end of the year. 7.0 goes End Of Life just before that so realistically it needs to offically support 7.1 by the end of the year

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,319
  • Gender: Male
    • Macedonian electronics forum
Re: repair_settings.php
« Reply #3 on: April 16, 2018, 09:15:35 AM »
Well, the developers made it clear. There won't be any features updates for 2.0.x, only bug/security updates, so... we'll either have to stick to 5.6 (somehow) or transfer to 2.1 beta (I think it supports PHP 7.0 and above).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,820
Re: repair_settings.php
« Reply #4 on: April 16, 2018, 09:26:31 AM »
i am pretty sure SMF 2.0 now supports php 7.0, we dont support beyond that. we dont recommend anyone use SMF 2.1 in production at this time.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,319
  • Gender: Male
    • Macedonian electronics forum
Re: repair_settings.php
« Reply #5 on: April 16, 2018, 06:38:28 PM »
So, does SMF 2.1 officially support PHP 7.0 and above, including 7.2?
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Online Bigguy

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,611
  • Gender: Male
  • Be nice, or else....
    • smfbigguy on GitHub
    • Whats Ur Beef
Re: repair_settings.php
« Reply #6 on: April 16, 2018, 08:40:16 PM »
I'm running 2.1 on php 7.0 and it runs great.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,455
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: repair_settings.php
« Reply #7 on: April 16, 2018, 08:41:09 PM »
7.0/7.1 for sure.  7.2 not sure they would need to comment
2.0.15 works fine on php 7.0 and 7.1 I have mine running on 7.1
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,319
  • Gender: Male
    • Macedonian electronics forum
Re: repair_settings.php
« Reply #8 on: April 16, 2018, 09:29:01 PM »
Wow... I just checked in my hosts control panel... I'm actually on 7.1 :D. I thought I was on 5.6 :D.

Running SMF 2.0.15, no problems so far ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Novice

  • Jr. Member
  • **
  • Posts: 110
Re: repair_settings.php
« Reply #9 on: April 19, 2018, 08:07:03 PM »
7.0/7.1 for sure.  7.2 not sure they would need to comment
2.0.15 works fine on php 7.0 and 7.1 I have mine running on 7.1

2.0.15 actually worked running 7.1 once I manually repaired the paths. I did have some difficulty with a few mods failing but, as you already know, I'm not the coder that the rest of you are.