Our FamilyForum

FamilyForum Documentation & Help => FamilyForum Features & Guidelines => Code & Stuff => Topic started by: Skhilled on August 17, 2019, 10:38:32 AM

Title: PHP 7.3 Upgrade
Post by: Skhilled on August 17, 2019, 10:38:32 AM
I've changed the account from PHP 7.1 to 7.3. Now it loads MUCH faster!!!  :banana:

Let me know if there are any problems. You can always change the php version in cPanel, if needed if a mod, etc. doesn't work properly.
Title: Re: PHP 7.3 Upgrade
Post by: Ken on August 17, 2019, 11:49:01 AM
Good job, don't see any issues so far.
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 17, 2019, 12:02:27 PM
But you will...look in your error log. It is filling up with errors.

Ok, found out something. I've been noticing errors on my site related to the arcade for awhile now but thought it just needed updating. But there's more to it than that...

The errors state that the "create_function ()" is depreciated. After a search on Google it seems that it should be changed to "function ()". Now for the bad news...LOL There's tons of "create_function ()" in many files in many places through out SMF 2.0.15! They would all need to be changed but there's no telling what would happened if you did that. Not to mention the same for the mods and themes...

Maybe I'll play around with it on a test site and see what happens. ;) I'll change it back until I find a fix, if I can.
Title: Re: PHP 7.3 Upgrade
Post by: Ken on August 17, 2019, 04:51:21 PM
I hope you can get it sorted!  :o
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 17, 2019, 07:00:25 PM
Ok, found out something. I've been noticing errors on my site related to the arcade for awhile now but thought it just needed updating. But there's more to it than that...

The errors state that the "create_function ()" is depreciated. After a search on Google it seems that it should be changed to "function ()". Now for the bad news...LOL There's tons of "create_function ()" in many files in many places through out SMF 2.0.15! They would all need to be changed but there's no telling what would happened if you did that. Not to mention the same for the mods and themes...

So, everyone has been put back to 7.1 for now.
Title: Re: PHP 7.3 Upgrade
Post by: Ken on August 18, 2019, 05:52:31 AM
Whoa!  laughing7

Glad you sorted that out, Steve.  :thumbup:
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 18, 2019, 08:03:22 AM
Yeah, I'm not trying to rewrite SMF. LOL
Title: Re: PHP 7.3 Upgrade
Post by: Ken on August 19, 2019, 07:03:21 AM
The load times started being really long yesterday, it takes several minutes for a page to finish loading now.
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 19, 2019, 08:08:01 AM
Maybe there was a server issue but I had no problems here or on any of the other sites.
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 19, 2019, 09:39:57 AM
Bigguy just reminded me about a mod that works for 7.2 to make smf 2.0.x work with it at smfhacks.com.

https://www.smfhacks.com/index.php/topic,9707.0.html

I see Chen's site listed in the credits and it reminded me he did something like that and I've forgotten about it. Looks like they teamed up to make it. But Chen's site is down atm...
Title: Re: PHP 7.3 Upgrade
Post by: Ken on August 20, 2019, 03:50:43 AM
Maybe there was a server issue but I had no problems here or on any of the other sites.

Doc-Skillz was slow for me, but not as slow as the load speeds here on OFF, now, this morning the speeds are back to normal on Doc-Skillz and take only a few seconds for a full page load.
Just now I ran a stopwatch on an OFF page and it came in at 02:48
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 20, 2019, 07:50:11 AM
I do know that backups are done during the night so maybe that's why? I'm usually not up around that time except maybe on a Friday or if I take a day off from work.
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on August 24, 2019, 06:33:06 PM
7.3 works very well with 2.1! :)
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on September 28, 2019, 05:15:57 AM
How are things running for you here?

It is possible that you may need this mod to make PHP 7+ more compatible with the forum:

 SMF 2.0.X - PHP 7.2+ Compatibility - https://www.smfhacks.com/index.php?action=downloads;sa=view;id=215

I've installed it on Docskillz and Crip Zone. See if they run faster for you.
Title: Re: PHP 7.3 Upgrade
Post by: Mick on October 23, 2019, 06:49:29 PM
Personally I'd wait for 2.0.16 to come out, which shouldn't be too long now, that will suppress the errors your seeing from running SMF in php 7.2 - 7.3  But obviously it won't suppress errors coming from mods that are still not compatible. 

If I'm understanding this correctly, after installing that php compatibility mod it will prevent you from updating to 2.0.16 
Title: Re: PHP 7.3 Upgrade
Post by: Skhilled on October 24, 2019, 11:28:28 AM
Ah! I didn't know this. Thanks for the info.

I hope we can uninstall the mod safely so the upgrade will work properly.
Title: Re: PHP 7.3 Upgrade
Post by: Mick on October 24, 2019, 12:31:37 PM
Ah! I didn't know this. Thanks for the info.

I hope we can uninstall the mod safely so the upgrade will work properly.

I'm not sure about that,  but I've seen Arantor mention that upgrade problem if using this php mod a few times over at SMF.