Advertisement:

Author Topic: Re: PHP version supported  (Read 2000 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,622
    • 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

Offline shawnb61

  • Developer
  • SMF Hero
  • *
  • Posts: 1,523
    • 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,561
  • 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,824
    • 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.

Online @rjen

  • Full Member
  • ***
  • Posts: 509
  • 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: 88
  • 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,622
    • 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: 88
  • 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,561
  • 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.

Online SpacePhoenix

  • Jr. Member
  • **
  • Posts: 100
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,824
    • 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,824
    • 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: 88
  • 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