Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Scratchit on December 15, 2018, 04:41:36 PM

Title: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: SychO 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
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Gwenwyfar on December 15, 2018, 05:27:07 PM
What php version are you running?
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Sir Osis of Liver 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.
Title: Re: Blank screen after upgrade
Post by: Scratchit on December 15, 2018, 06:13:55 PM
From host panel PHP 5.2 - 7, does this make sense?

Cheers
Title: Re: Blank screen after upgrade
Post by: Sir Osis of Liver 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.
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Gwenwyfar 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.
Title: Re: Blank screen after upgrade
Post by: live627 on December 15, 2018, 06:54:58 PM
Quote from: Scratchit 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
Some code to change; find in ./Sources/Subs-Db-mysql.php

// Checck for MySQLi first...
if (function_exists('mysqli_connect'))


Replace with

// 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)
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: SychO 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.
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Illori 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.
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Arantor 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.
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Arantor 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)
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Arantor 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 ;)
Title: Re: Blank screen after upgrade
Post by: The Domain Shop on December 16, 2018, 07:43:04 AM
Have you not got the option to switch php versions inside your host control panel?
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: The Domain Shop 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?
Title: Re: Blank screen after upgrade
Post by: Illori 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.
Title: Re: Blank screen after upgrade
Post by: GigaWatt on December 16, 2018, 11:07:22 AM
Try this. Make a text file, open it and add this code to it.

<?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 ;).
Title: Re: Blank screen after upgrade
Post by: Sir Osis of Liver on December 16, 2018, 10:11:56 PM
Quote from: Scratchit 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?

Upgrade to 5.6.
Title: Re: Blank screen after upgrade
Post by: Scratchit 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
Title: Re: Blank screen after upgrade
Post by: Kindred 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
Title: Re: Blank screen after upgrade
Post by: Scratchit 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