News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

White screen of death on restored SMF 2.0.19 BoardIndex.php

Started by magicalarmchair, June 20, 2025, 08:56:41 AM

Previous topic - Next topic

magicalarmchair

Good afternoon friends,

This is my first post, and my first time as administrator of a SMF forum. Apologies, as I am so new, I can't post the actual links yet.

The Bavaria Yacht forum came down a while back, and I have been provided the SQL backup from the old forum to bring it back online. This is an SMF 2.0.19 backup, so I downloaded, unzipped and uploaded this to my hosting account.

I restored the database and set up the settings.php file (deleting the install.php file, as I didn't require that).

When I visit the forum root, and look at the board index, I get a white screen of death.

You cannot view this attachment.

If I go to a specific topic, it all works fine. This would indicate to me that the database links are working well.

You cannot view this attachment.

Boards also work, so I presume this means the settings for the file locations (the source directory etc) is correct, as are the permissions?

I can see in index.php, we reach this line:

    elseif (empty($_REQUEST['action']))
    {
        // Action and board are both empty... BoardIndex!
        if (empty($board) && empty($topic))
        {
            require_once($sourcedir . '/BoardIndex.php');
           [b] return 'BoardIndex';[/b]
        }

And if I put a die before the return, it will die and return the die text, however, it white screens as soon as it hits the BoardIndexphp.

I've added the below line at the top of boardindex, however, this still doesn't run!
// Show the board index!
function BoardIndex()
{
    die("We got here!")


Is there something in the database that is screwing me up? There are no intergrations in the settings table (this brings back nothing now SELECT * FROM smf_settings WHERE variable LIKE '%integrate%';). I have tried downloading and running repair_settings.php, but still no luck.

Is there anything I can try? Its driving me crazy. Logging in doesn't work either, it doesn't seem to keep the cookie.

If I try and log in, we get this error:

You cannot view this attachment.

Thanks for any assistance.

Aleksi "Lex" Kilpinen

Have you checked the server error log? What does it say about the white screen of death?
Usually, that would be a 50x error.

https://wiki.simplemachines.org/smf/What_the_white_screen_of_death_means
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

That's interesting, rest of the forum loads normally.  Have you tried uploading clean files, or just replacing BoardIndex.php and BoardIndex.template.php?
When in Emor, do as the Snamors.
                              - D. Lister

magicalarmchair

Thank you so much for your help. What I had managed to do was have two copies of the site on my hosting platform, with the settings in one version of the site, pointing to the file location in the other site! D'oh.

I've now got it all up and running and upgraded, however, I have one more challenge I will post to the other forum.

Thanks again for the help, and what cracking software. It really is a great platform.

Advertisement: