Advertisement:

Author Topic: repair_settings.php php 7.0 SMF 1.1  (Read 11391 times)

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,315
repair_settings.php php 7.0 SMF 1.1
« on: August 25, 2018, 02:18:37 PM »
seems that the version of repair_settings.php found on github does not seem to work correctly with php 7 if the SMF version is 1.1. i am trying to upgrade and keep getting errors about mysql calls in the repair_settings.php file. since the forum is changing servers we need to do the upgrade on the new one if at all possible but the paths need to be fixed first.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,642
  • Gender: Male
    • Kindred-999 on GitHub
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #1 on: August 26, 2018, 11:14:38 AM »
since SMF 1.1.x doesn't work on php 7 any way - why?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,315
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #2 on: August 26, 2018, 12:39:07 PM »
made it hard to get the forum working on the new server as SMF 2.0.15 would not work on the old server.

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,823
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • Patreon
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #3 on: October 30, 2018, 04:28:14 PM »
since SMF 1.1.x doesn't work on php 7 any way - why?

I agree, this does not require any action from development side. Simply user needs to downgrade the php version for temporary and do fixing/upgrade and move back to php7.
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ] # [ Lunarfall ] # [ RDD (HTML5) ] # [ ResponsiveCurve_Extras(SoonTM) ]
Past Project(s): [ ezPortal ]

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,525
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #4 on: October 30, 2018, 06:22:21 PM »
Don't the tools use $smcFunc?
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,532
  • Riding the endless highway in the sky.
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #5 on: October 30, 2018, 06:55:03 PM »
user needs to downgrade the php version for temporary and do fixing/upgrade and move back to php7.

I've had to do this several times upgrading early 1.1 forums, downgrade php, upgrade forum and php in steps.  Seems to vary with server, but upgrader and repair_settings are sometimes both affected.

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,823
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • Patreon
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #6 on: October 30, 2018, 09:32:55 PM »
Don't the tools use $smcFunc?

isn't repair_settings also depends on SMF's core functions as well ? If so 1.1 has no mysqli support (no expert).

user needs to downgrade the php version for temporary and do fixing/upgrade and move back to php7.

I've had to do this several times upgrading early 1.1 forums, downgrade php, upgrade forum and php in steps.  Seems to vary with server, but upgrader and repair_settings are sometimes both affected.


Well, the things is development cannot do everything for others, management already pointed out that SMF 1.x is not going to get any compat patch towards the new tech so people who stayed on 1.x should take care of their future.
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ] # [ Lunarfall ] # [ RDD (HTML5) ] # [ ResponsiveCurve_Extras(SoonTM) ]
Past Project(s): [ ezPortal ]

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,315
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #7 on: October 31, 2018, 05:11:35 AM »
right but if they cant get upgraded easily due to our tools not working that does not exactly leave a good taste in their mouth.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,532
  • Riding the endless highway in the sky.
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #8 on: October 31, 2018, 12:08:46 PM »
'Easily' being a relative term.  Many (most?) forum owners have no idea how the upgrade process works, or why it fails, and they shouldn't have to.  If it doesn't work, they blame the software.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,315
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #9 on: October 31, 2018, 12:11:29 PM »
I mean, to move the forum to a new host that you cant change the php version you should NOT need to edit the database to get things up and running as repair_settings.php fails to work.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,532
  • Riding the endless highway in the sky.
Re: repair_settings.php php 7.0 SMF 1.1
« Reply #10 on: October 31, 2018, 12:24:24 PM »
Unfortunately, there's so much variation in server configurations it's pretty much impossible to get everything to work everywhere.  I've worked several forums (at least two on GoDaddy) that could not be upgraded in place.  Had to export database, upgrade it on my server, then move it back.  You also have the problem of very old forums running early 1.1.x that have never upgraded, and are in a panic because it stops working.  That's why there's a support forum, but sometimes it's impossible to talk them through it, and you have to get into their host and do it for them.