Advertisement:

Author Topic: Blank screen after upgrade  (Read 1169 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

  • Lone Wolf
  • Customizer
  • Sr. Member
  • *
  • Posts: 761
  • 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

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

  • Pirate valkyrie neko-chan
  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,857
  • Gender: Female
    • Gwenwyfar on GitHub
Re: Blank screen after upgrade
« Reply #3 on: December 15, 2018, 05:27:07 PM »
What php version are you running?
Fear has the power to make one blind, even to himself.

Beware: Potato monster ahead. He bites.                                                                                                                                                                                   
                                                                                                                                 

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: 8,464
  • Riding the endless highway in the sky.
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: 8,464
  • Riding the endless highway in the sky.
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

  • Pirate valkyrie neko-chan
  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,857
  • Gender: Female
    • Gwenwyfar on GitHub
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.
Fear has the power to make one blind, even to himself.

Beware: Potato monster ahead. He bites.                                                                                                                                                                                   
                                                                                                                                 

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,476
  • 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

  • Lone Wolf
  • Customizer
  • Sr. Member
  • *
  • Posts: 761
  • 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.

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: 50,251
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: 69,923
    • 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: 69,923
    • 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.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #20 on: December 16, 2018, 07:34:15 AM »
Hi Bud

I'm not having a dig and really appreciate your help. The upgrade seemed to going fine, then crash. But I get your point. Many moons ago I had a PC but have been with Mac for many years now. No more Blue Screen of Death!!  Sorry if you are a Windows fan  8).

Anyway, if you don't mind I might have to get back to you for further advice on reverting to a previous version, if my IP won't play ball, or even a link to this reverting thing. My biggest concern is not losing my second site.

Kind regards

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,923
    • StoryBB/StoryBB on GitHub
Re: Blank screen after upgrade
« Reply #21 on: December 16, 2018, 07:40:10 AM »
Um, not sure you did get my point... your point was “why can’t SMF tell you there’s a problem?” Answer: because it failed before it could decide if there was a problem. Just like you shouldn’t blame Windows when the issue is a faulty motherboard ;)
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 -Trax-

  • Jr. Member
  • **
  • Posts: 361
  • Gender: Male
    • DollarSRV
Re: Blank screen after upgrade
« Reply #22 on: December 16, 2018, 07:43:04 AM »
Have you not got the option to switch php versions inside your host control panel?

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #23 on: December 16, 2018, 09:59:01 AM »
Trax

WOW, yes!! I just found it after you suggested it!! I have a choice between: 5.6, 7.0, 7.1, and 7.2. The option at the moment is set to 5.6. However, the forum is still not working so I guess it must be something else wrong. Anyway, thanks!1

Offline -Trax-

  • Jr. Member
  • **
  • Posts: 361
  • Gender: Male
    • DollarSRV
Re: Blank screen after upgrade
« Reply #24 on: December 16, 2018, 10:07:45 AM »
Is there any errors being logged? There might be a file located in your forums root folder?

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,251
Re: Blank screen after upgrade
« Reply #25 on: December 16, 2018, 10:22:08 AM »
it is possible the php version changer in your control panel may not function. so it could still be the same version issue.

Offline GigaWatt

  • The Smiley Guy
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,606
  • Gender: Male
    • Macedonian electronics forum
Re: Blank screen after upgrade
« Reply #26 on: December 16, 2018, 11:07:22 AM »
Try this. Make a text file, open it and add this code to it.

Code: [Select]
<?php

phpinfo
();

?>

Save the file, change the name of the file to phpinfo.php and upload it to your forum's root directory. Run it (forumurl.tld/phpinfo.php) and see what it reports. The current running version of PHP should be reported in the first few lines of what the code will output ;).
"This is really a generic concept about human thinking - when faced with large tasks we're naturally inclined to try to break them down into a bunch of smaller tasks that together make up the whole."

"A 500 error loosely translates to the webserver saying, "WTF?"..."

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,464
  • Riding the endless highway in the sky.
Re: Blank screen after upgrade
« Reply #27 on: December 16, 2018, 10:11:56 PM »
OK, ran it, a whole ton of stuff came up, PHP was in a box and was 5.3.29 any better?

Upgrade to 5.6.

Offline Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #28 on: December 17, 2018, 08:10:47 AM »
Hi all

Thank you all for trying to help. I appreciate it. Problem is most of this stuff is way over my head. Over the next few days I'm going to work at it slowly, slowly, hopefully not making things worse. As I mentioned I have another site that I absolutely cannot afford to lose so am going to proceed with caution, taking in consideration all the advice. I'll get back with the outcome one way or the other in a few days.

Thanks and cheers

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,514
  • Gender: Male
    • Kindred-999 on GitHub
Re: Blank screen after upgrade
« Reply #29 on: December 17, 2018, 09:34:49 AM »
just one important reminder.

BACKUP!

Before every step, backup!

Backup the files
Backup the database

(they are separate things)
https://wiki.simplemachines.org/smf/Backup
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 Scratchit

  • Semi-Newbie
  • *
  • Posts: 98
Re: Blank screen after upgrade
« Reply #30 on: December 18, 2018, 03:25:51 AM »
Hi all,

Just to tell you after much burning of midnight oil I managed to sort the problem out after a fashion. Tried everything I could think of and eventually FTP'd all the files from a backup I had.

Everything working fine now  ;D. Thanks for all the help, I guess  this is solved but do not know how to mark it as such.

Many thanks to you all for your patience.

Cheers