Advertisement:

Author Topic: Blank screen after upgrade  (Read 1269 times)

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Blank screen after upgrade
« on: December 15, 2018, 04:41:36 PM »
I tried to up-grade to the latest SMF version. It locked up after a long time, then crashed. Now all I have is totally blank white screen. Any ideas appreciated.

Thanks

Online SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,413
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Blank screen after upgrade
« Reply #1 on: December 15, 2018, 04:58:55 PM »
what version are you trying to upgrade from, and what version are you trying to upgrade to, and how did you try to do it

Imazighen

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #2 on: December 15, 2018, 05:13:02 PM »
From 11 to 15, i though but last of the file that got downloaded and is now in Packages is: sms-patch-2.0.14 tar gz.

I used the packages facility on the forum when it was working. I've upgraded before this and have never had any problems.

Thanks

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,259
  • Gender: Female
Re: Blank screen after upgrade
« Reply #3 on: December 15, 2018, 05:27:07 PM »
What php version are you running?
Energy follows attention.

There is nothing more precious than being yourself and following your heart.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #4 on: December 15, 2018, 05:33:34 PM »
I don't know, how would I find this out. The forum all worked fine before the attempted upgrade

Thanks

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,152
Re: Blank screen after upgrade
« Reply #5 on: December 15, 2018, 05:41:44 PM »
You can look in your host control panel, or upload attached file to forum root and run it.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #6 on: December 15, 2018, 06:13:55 PM »
From host panel PHP 5.2 - 7, does this make sense?

Cheers

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,152
Re: Blank screen after upgrade
« Reply #7 on: December 15, 2018, 06:23:33 PM »
That's just available versions, you need to find wgich one you're running.  Use phpinfo.php attached to my previous post.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #8 on: December 15, 2018, 06:37:20 PM »
OK, ran it, a whole ton of stuff came up, PHP was in a box and was 5.3.29 any better?

Cheers

Offline Gwenwyfar

  • Great Wizard's familiar
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,259
  • Gender: Female
Re: Blank screen after upgrade
« Reply #9 on: December 15, 2018, 06:51:44 PM »
2.0.14 won't run on php 5.3 and lower. You'll need to upgrade the php version. Preferably at least 5.6. Look for an option to change it or ask your host.
Energy follows attention.

There is nothing more precious than being yourself and following your heart.

Offline live627

  • Development Contributor
  • SMF Hero
  • *
  • Posts: 5,620
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Blank screen after upgrade
« Reply #10 on: December 15, 2018, 06:54:58 PM »
OK, ran it, a whole ton of stuff came up, PHP was in a box and was 5.3.29 any better?

Cheers
Some code to change; find in ./Sources/Subs-Db-mysql.php

Code: [Select]
// Checck for MySQLi first...
if (function_exists('mysqli_connect'))

Replace with

Code: [Select]
// Check for MySQLi first...
// !!! This driver does not work on PHP < 5.4.0.
if (function_exists('mysqli_connect') && version_compare(PHP_VERSION, '5.4') >= 0)
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #11 on: December 16, 2018, 03:06:34 AM »
Hi
Changed the code as advised. No effect, screen still blank. Regarding advice to ask provider to upgrade php, only problem is I have another forum running with a big database and i'd hate to lose that. I'd likely end up with my throat cut  ;D Its running on a oldish SMF, 11 I think. I'd hate for that to crash out due to a php upgrade. As stated I'm a complete novice.
Would it be possible to "Step Back" somehow with the non-working site to the version of SMF that was running fine before the attempted upgrade. If so could you offer advice on how to it.

Sorry to be a pain.

Cheers

Online SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,413
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: Blank screen after upgrade
« Reply #12 on: December 16, 2018, 04:38:29 AM »
When you say you tried to go from 11 to 15, you did go through 12 then 13 then 14 first right?

Did you maybe get any errors while installing a patch ?
There's a backup in packages/backup folder in your forum directory.

Imazighen

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #13 on: December 16, 2018, 05:41:18 AM »
I guess it went through all the stages. I just clicked on the update thing when it said it needed patching, as I said I'm dumb when it comes to things like this.

Attached are two screen shots of packages and backups.

I didn't get any errors it just crashed out to a white screen. I run an iMac by the way in case this has any bearing on the matter

Cheers

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,023
Re: Blank screen after upgrade
« Reply #14 on: December 16, 2018, 05:56:59 AM »
can you change your php version as suggested above? at this time if the code change did not fix the issue, revert that back and upgrade your php.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #15 on: December 16, 2018, 06:16:48 AM »
OK. I'll get on to my IP on the morrow about an upgrade of the PHP. However, I really need to be sure that if I upgrade the PHP it will not crash out my other website which still on 2.0.11 and which is very important and I can't afford to lose it. It would cause me endless trouble. What do you think?

Cheers

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Blank screen after upgrade
« Reply #16 on: December 16, 2018, 06:24:19 AM »
Upgrade PHP to 5.4 or 5.5, both 2.0.11 and 2.0.15 work on those versions.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #17 on: December 16, 2018, 06:49:00 AM »
Hi,

I just googled for info on the latest version of PHP, its 7.2.3! I imagine if I ask for an upgrade from my IP they are going to stick me with the latest version? Is 7.2.3 compatible with all version of SMF? I doubt the IP will let me be selective. I'll talk to them anyway. In the meantime could you point me in the right direction on using those back up files for stepping back to 2.0.11 if I don't get good info from the IP. I have an independent full backup of the site if needed but have no clue how to proceed. Is it possible to use the files I sent you a screen shot of? Told you I was dump. I appreciate your help.

Regards

Cheers

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #18 on: December 16, 2018, 06:52:08 AM »
Hi again

One final thing in addition to the above, this is not a criticism of SML but a warning or error message would have been nice saying things were not compatible instead of a total crash. Just for dummies like me!!!

Cheers

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,228
    • StoryBB/StoryBB on GitHub
Re: Blank screen after upgrade
« Reply #19 on: December 16, 2018, 06:59:26 AM »
2.0 is not fully compatible with 7.2.

As for the white screen, that’s more that PHP itself doesn’t like it, and fails before SMF has chance to warn you (and any other error messages of that ilk are turned off for security reasons)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.