Advertisement:

Author Topic: Re: PHP version supported  (Read 1985 times)

Offline fungolfer

  • Semi-Newbie
  • *
  • Posts: 49
Re: PHP version supported
« 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.
« Last Edit: October 19, 2018, 10:48:09 AM by Irisado »

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re:Re: PHP version supported
« Reply #1 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,520
    • sbulen on GitHub
Re:Re: PHP version supported
« Reply #2 on: October 18, 2018, 10:39:26 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. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,549
  • Gender: Male
    • Kindred-999 on GitHub
Re:Re: PHP version supported
« Reply #3 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)
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 fungolfer

  • Semi-Newbie
  • *
  • Posts: 49
Re:Re: PHP version supported
« Reply #4 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...

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,782
    • StoryBB/StoryBB on GitHub
Re:Re: PHP version supported
« Reply #5 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.
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 SugarD-x

  • Jr. Member
  • **
  • Posts: 365
  • Gender: Male
  • SMF and PHPBB Fan
    • SugarDx on Facebook
    • SugarD-x on GitHub
    • sugardx on LinkedIn
    • @SugarDx on Twitter
    • Clan Xperience
Re:Re: PHP version supported
« Reply #6 on: October 19, 2018, 03:07:46 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.

Offline @rjen

  • Full Member
  • ***
  • Posts: 508
  • Gender: Male
Re:Re: PHP version supported
« Reply #7 on: October 19, 2018, 07:58:53 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...
Running SMF 2.0 with Tinyportal 1.6.4 at www.fjr-club.nl
Testing SMF 2.1 RC2 with Tinyportal at http://test2.fjr-club.nl/

Offline fungolfer

  • Semi-Newbie
  • *
  • Posts: 49
Re: PHP version supported
« Reply #8 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 :)

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 84
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: PHP version supported
« Reply #9 on: November 18, 2018, 01:39:08 PM »
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?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Re: PHP version supported
« Reply #10 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline a10

  • Charter Member
  • Sr. Member
  • *
  • Posts: 894
2.0.15, ssl, php 7.1.31, MySQL 10.3.13-MariaDB~bionic
Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 84
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: PHP version supported
« Reply #12 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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,549
  • Gender: Male
    • Kindred-999 on GitHub
Re: PHP version supported
« Reply #13 on: November 18, 2018, 06:35:36 PM »
Version prior to 2.0.14 do not support php 7.0 or 7.1
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 SpacePhoenix

  • Semi-Newbie
  • *
  • Posts: 99
Re:Re: PHP version supported
« Reply #14 on: November 19, 2018, 12:50:59 AM »
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

Offline SomeoneElse

  • Semi-Newbie
  • *
  • Posts: 20
Re: PHP version supported
« Reply #15 on: November 24, 2018, 12:44:57 PM »
Version 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.

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

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.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,782
    • StoryBB/StoryBB on GitHub
Re: Re: PHP version supported
« Reply #16 on: November 24, 2018, 12:47:03 PM »
And that it’s “difficult” to make work on 7.2 properly...
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 lwiz

  • Semi-Newbie
  • *
  • Posts: 20
Re: PHP version supported
« Reply #17 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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,782
    • StoryBB/StoryBB on GitHub
Re: Re: PHP version supported
« Reply #18 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.
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 Plantje

  • Semi-Newbie
  • *
  • Posts: 84
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: PHP version supported
« Reply #19 on: December 01, 2018, 03:23:49 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

Offline SomeoneElse

  • Semi-Newbie
  • *
  • Posts: 20
Re: PHP version supported
« Reply #20 on: October 16, 2019, 07:06:07 PM »
Just under a year ago, I said:

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

Code: [Select]
[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?


Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 84
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: PHP version supported
« Reply #21 on: October 17, 2019, 01:05:54 AM »
I agree, looks like some action needs to be performed. What can be done to help?

Offline a10

  • Charter Member
  • Sr. Member
  • *
  • Posts: 894
Re: Re: PHP version supported
« Reply #22 on: October 17, 2019, 04:54:01 AM »
2.0.15, ssl, php 7.1.31, MySQL 10.3.13-MariaDB~bionic
Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Offline Plantje

  • Semi-Newbie
  • *
  • Posts: 84
  • Gender: Male
  • Running version 2.0.11
    • Vliegvissers.nl
Re: PHP version supported
« Reply #23 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….

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,618
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Re: PHP version supported
« Reply #24 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Online Irisado

  • Una Luz Brillante en la Oscuridad
  • Doc Coordinator
  • SMF Super Hero
  • *
  • Posts: 10,254
  • Soñando debajo del arco iris
Re: Re: PHP version supported
« Reply #25 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:


Hopefully a 2.0.16 will arrive > https://www.simplemachines.org/community/index.php?topic=569552.msg4030476#msg4030476
Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente