Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: fungolfer on October 18, 2018, 05:37:49 AM

Title: Re: PHP version supported
Post by: fungolfer on October 18, 2018, 05:37:49 AM
Sorry I answer or ask in this topic after a long time. My provider will update all servers to PHP 7.2 in November. I'm running a SMF Forum 2.0.15 and not sure what to do after the change is done. I guess my forum will not work anymore. I was able to upgrade PHP to 7.0 and 7.1 and the forum boards were invisible. Only the header was available. So whenever the change is done I can at least go back to 7.1 but do I need to reinstall the forum? Any help would be appreciated.

Please avoid raising topics from over a year ago which have been marked as solved in future.  Topic split - Iris.
Title: Re:Re: PHP version supported
Post by: vbgamer45 on October 18, 2018, 09:39:17 AM
7.2 is not supported for SMF 2.0.x as of yet. Your  board may work but may have a ton of error messages.
Title: Re:Re: PHP version supported
Post by: shawnb61 on October 18, 2018, 10:39:26 AM
Quote from: fungolfer on October 18, 2018, 05:37:49 AM
So whenever the change is done I can at least go back to 7.1 but do I need to reinstall the forum? Any help would be appreciated.

If you can go back to 7.1, your forum should be good.  No need to reinstall.   7.2 doesn't work.

The biggest issue with 7.1 is some mods do not work yet.  But SMF 2.0.15 does. 
Title: Re:Re: PHP version supported
Post by: Kindred on October 18, 2018, 04:18:12 PM
And you should consider leaving any host who forces your sites to 7.2 (without the option to stay at 7.0 or 7.1)
Title: Re:Re: PHP version supported
Post by: fungolfer on October 19, 2018, 01:36:51 AM
Thanks for your answers guys :) I changed to 7.1 yesterday but the boards were invisible. So I had the header and in the middle I had another header. Might be Tiny Portal which causes the problem. So now seaching for mod problems...
Title: Re:Re: PHP version supported
Post by: Arantor on October 19, 2018, 02:16:43 AM
Are you up to date with TinyPortal? It needed quite some work to function correctly on PHP 7/7.1.
Title: Re:Re: PHP version supported
Post by: SD-X on October 19, 2018, 03:07:46 AM
Quote from: vbgamer45 on October 18, 2018, 09:39:17 AM
7.2 is not supported for SMF 2.0.x as of yet. Your  board may work but may have a ton of error messages.
I have been desperately trying for hours to figure out why my existing forums won't connect to the database on my VPS using PHP 7.2, and why a brand new forum installer would not connect either. I figured it was MySQL 8.x...but you just narrowed down the cause. Thank you! The past posts on this forum regarding PHP 7.x support are quite misleading.

Any news on when PHP 7.2.x will be supported with SMF 2.0.x? Also, does SMF 2.1.x support it yet, or is that in the same boat?

Edit: Scratch that last part. I was able to find the answer regarding SMF 2.1.x on the GitHub repo issues page.
Title: Re:Re: PHP version supported
Post by: @rjen on October 19, 2018, 07:58:53 AM
Quote from: Arantor on October 19, 2018, 02:16:43 AM
Are you up to date with TinyPortal? It needed quite some work to function correctly on PHP 7/7.1.

... latest Tinyportal versions are working flawlessly on 7.1...

last known 7.1 bug was fixed in 1.5.1 and 1.6.0 was just released. I you are running an older version, try to uninstall and install the latest...
Title: Re: PHP version supported
Post by: fungolfer on October 20, 2018, 05:04:48 AM
Yeah I was running TP 1.2 and now updated to 1.6 and everything works great :)
Title: Re: PHP version supported
Post by: Plantje on November 18, 2018, 01:39:08 PM
Quote from: fungolfer on October 18, 2018, 05:37:49 AM
Sorry I answer or ask in this topic after a long time. My provider will update all servers to PHP 7.2 in November. I'm running a SMF Forum 2.0.15 and not sure what to do after the change is done. I guess my forum will not work anymore. I was able to upgrade PHP to 7.0 and 7.1 and the forum boards were invisible. Only the header was available. So whenever the change is done I can at least go back to 7.1 but do I need to reinstall the forum? Any help would be appreciated.

Please avoid raising topics from over a year ago which have been marked as solved in future.  Topic split - Iris.

Guess you're on one.com as well, right?

Last week all of a sudden my forum stopped working and the database user name and password were clearly visible for anyone trying to go to my site. Wasn't too happy with that. So, version 7.2 of PHP does work with older forum software versions?
Title: Re: Re: PHP version supported
Post by: vbgamer45 on November 18, 2018, 01:45:15 PM
Correct.  From what I read they should have an option change PHP 7.1 at least you need to be on SMF 2.0.15 to support that.
Title: Re: PHP version supported
Post by: a10 on November 18, 2018, 01:49:16 PM
https://www.simplemachines.org/community/index.php?topic=563242.0
Title: Re: PHP version supported
Post by: Plantje on November 18, 2018, 01:57:37 PM
Thanks for the response. I have one production site and one acceptance test site. Both are on 2.0.11. I've put the acceptance test site to PHP 7.1 now and it seems to be working. Otherwise I'll do an update to the 2.0.15 version. That seems to be pretty straight forward.

However, I was planning on doing a major upgrade anyway. But I think I will start a separate topic for that. Currently I am going through all the mods in the website and one by one I decide which ones to keep and which ones not to keep. Then I want to create a backup of both the DB and the files, throw everything away from the host and then reinstall a fresh copy of the Simple Machines Forum software and restore the old database there.
Title: Re: PHP version supported
Post by: Kindred on November 18, 2018, 06:35:36 PM
Version prior to 2.0.14 do not support php 7.0 or 7.1
Title: Re:Re: PHP version supported
Post by: SpacePhoenix on November 19, 2018, 12:50:59 AM
Quote from: Kindred on October 18, 2018, 04:18:12 PM
And you should consider leaving any host who forces your sites to 7.2 (without the option to stay at 7.0 or 7.1)
I'd expect to see a good few hosts moving servers over to 7.1 or 7.2 as both 5.6 and 7.0 will be EOL by the end of the year
Title: Re: PHP version supported
Post by: SomeoneElse on November 24, 2018, 12:44:57 PM
Quote from: Kindred on November 18, 2018, 06:35:36 PMVersion prior to 2.0.14 do not support php 7.0 or 7.1

Which means that because 2.0.14 has a higher minimum version of PHP 5.x it will accept than 2.0.13 did, you can be a position that you cannot update past 2.0.13 on the existing server and cannot move a 2.0.13 setup to a server with PHP 7.0 either. Been there, had to work around that.

Quote from: SpacePhoenix on November 19, 2018, 12:50:59 AMI'd expect to see a good few hosts moving servers over to 7.1 or 7.2 as both 5.6 and 7.0 will be EOL by the end of the year

Quite.

Much that I love SMF, it is worrying that it is so slow in adapting to new versions of PHP.

PHP 7.0 was released in December 2015, but it took until May 2017 - half way through 7.0's three year cycle as a supported version of PHP - before SMF 2.0.14 was released and would run on PHP 7.0.
Title: Re: Re: PHP version supported
Post by: Arantor on November 24, 2018, 12:47:03 PM
And that it's "difficult" to make work on 7.2 properly...
Title: Re: PHP version supported
Post by: lwiz on November 27, 2018, 05:08:49 AM
Just out of curiosity is this the changeover from 5.6 to 7.0 all over again? In other words, forum code itself should work, but MySQL changes prevent it?

-L
Title: Re: Re: PHP version supported
Post by: Arantor on November 27, 2018, 05:24:26 AM
It has nothing to do with MySQL, it is simply that PHP has changed what it considers acceptable and techniques that were fine 15 years ago are no longer. Unfortunately in SMF terms, every single bbcode mod needs to be rewritten for PHP 7.2 and there is no good way to do it automatically.
Title: Re: PHP version supported
Post by: Plantje on December 01, 2018, 03:23:49 PM
Quote from: Kindred on November 18, 2018, 06:35:36 PM
Version prior to 2.0.14 do not support php 7.0 or 7.1
You're right. When I did a thorough test, I noticed my website didn't work.

Planning to upgrade tonight Wish me luck :D
Title: Re: PHP version supported
Post by: SomeoneElse on October 16, 2019, 07:06:07 PM
Just under a year ago, I said:

Quote from: SomeoneElse on November 24, 2018, 12:44:57 PM
Much that I love SMF, it is worrying that it is so slow in adapting to new versions of PHP.

PHP 7.0 was released in December 2015, but it took until May 2017 - half way through 7.0's three year cycle as a supported version of PHP - before SMF 2.0.14 was released and would run on PHP 7.0.

Today, I updated a server to Debian Buster from Debian Stretch - i.e. to the current 'stable' version of Debian that's been out for a few months now, from the old stable version.

It comes with PHP 7.3.

SMF generated a pile of PHP errors along the lines of

[Wed Oct 16 22:26:32.290821 2019] [proxy_fcgi:error] [pid 24398:tid 3007286080] [client 12.34.56.78:3806] AH01071: Got error 'PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 178PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 183PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 184PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 220PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 223PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 235PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 250PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 252PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 257PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 268PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 270PHP message: PHP Deprecated:  Function create_function() is deprecated in /home/user/public_html/smf/Sources/Load.php on line 273'


.. and eventually stopped working as some resource filled up.

So, with some work installing it from a third party repository, I'm now on PHP 7.1 because it looks like exactly the same thing will happen if I went for PHP 7.2.

SMF 2.0.15 is still the official stable version of SMF, released just shy of two years ago now, and there's no sign of another 2.0.x release.

PHP 7.2 has been out for only a handful of days less than 2.0.15, and it's still not officially supported??

PHP 7.3 is the default version on one of the most popular server OSes out there, and has been out for just shy of a year.

The problem with this is that PHP 7.1 goes out of support in six weeks.

Aaargh!

I understand there's a mod or two that chop at least some of the deprecated PHP out and get it running on 7.2, but I can't spot one that's complete and 7.3 compatible.

I would really rather not rely on a third-party repository for PHP 7.1 past it going end of life and switching to SMF 2.1.0 RC2 is not recommended for a production board, especially as there still look to be issues with the upgrade process and it appears to be irreversible. Eeek.

What can we do to help?

Title: Re: PHP version supported
Post by: Plantje on October 17, 2019, 01:05:54 AM
I agree, looks like some action needs to be performed. What can be done to help?
Title: Re: Re: PHP version supported
Post by: a10 on October 17, 2019, 04:54:01 AM
Hopefully a 2.0.16 will arrive > https://www.simplemachines.org/community/index.php?topic=569552.msg4030476#msg4030476
Title: Re: PHP version supported
Post by: Plantje on October 23, 2019, 10:25:08 AM
I hope it will support 7.3 as well. Just got a notification that my host will update to 7.3 in the first week of November. So, I guess I will be updating to 7.3 on my Acceptance Test server as soon as possible and see what runs and what not....
Title: Re: Re: PHP version supported
Post by: vbgamer45 on October 23, 2019, 02:36:38 PM
I been running php 7.3 on smf 2.0.x on one of my servers. I just had to suppress some of the error logging and been ok so far.
Title: Re: Re: PHP version supported
Post by: Irisado on October 23, 2019, 04:32:19 PM
Two topics on the same issue are not needed, and since this one is a year old, I am locking it, please continue the discussion in the topic which a10 linked to:


Quote from: a10 on October 17, 2019, 04:54:01 AM
Hopefully a 2.0.16 will arrive > https://www.simplemachines.org/community/index.php?topic=569552.msg4030476#msg4030476