SimpleMachines / tools

Tools for SMF: useful scripts, install/repair and others.
21 stars 33 forks source link

Repair_settings.php - 1.1 compat logic vs php 7.x #33

Closed sbulen closed 4 years ago

sbulen commented 4 years ago

I think we're seeing some last stragglers finally moving off of 1.x... Some moving to new hosts.

One problem seen is if they restore files & db onto a new host, they need to run repair_settings.php to get the settings pointing to the new locations. Although repair_settings.php has a 1.x compatibility mode, that mode assumes mysql (not mysqli) calls. If that host is pushing folks to php7, those mysql calls won't work (mysql_connect doesn't exist).

To fix, there are a few options -

Originally reported here: https://www.simplemachines.org/community/index.php?topic=561873.0

sbulen commented 4 years ago

Another issue with 1.1 - if db name or prefix are wrong, you error out (any php version): image