Blank SMF site? READ THIS!

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Follow the instructions below to fix a blank Simple Machines Forum.

Recommended Method
Go into the SMF admin area, and enable a setting called "Disable hostname lookups?", under the "Features and Options" area and the "Layout and Options" tab.

Alternate Method
Open up the file Subs.php in the Sources folder and find
Code:
        if (!isset($modSettings['host_to_dis']))
            $test = @shell_exec('host -W 1 ' . @escapeshellarg($ip));
        else
            $test = @shell_exec('host ' . @escapeshellarg($ip));
and replace it with
Code:
        if (!isset($modSettings['host_to_dis']))
            $test = false;
        else
            $test = false;

If you do not know how to do that, either download the attached file (only if you do not have any mods installed), rename it to Subs.php (get rid of the .txt extension) and upload it to the Sources folder. If you have mods installed, download a copy of your Subs.php, rename it to Subs.txt by opening it with notepad, clicking save as, and then typing in Subs.txt, and attach the file in a new post.

ONLY DOWNLOAD THE FILE ATTACHED TO THIS POST IF YOU DO NOT HAVE ANY MODS INSTALLED!
 

Attachments

  • Subs.php.txt
    132 KB · Views: 370
Last edited:
Top