Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: ylyco - maaliskuu 02, 2020, 01:56:24 IP

Otsikko: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: ylyco - maaliskuu 02, 2020, 01:56:24 IP
Hi all,

Does SMF 2.0.17 support PHP version above 7.1 ?
As for example PHP version 7.3 ?

Or do I have to wait SMF 2.1.x ?

Thanks
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: vbgamer45 - maaliskuu 02, 2020, 02:04:52 IP
Yes it does. 7.2 officially support.
But, in my experience works fine on 7.3
7.4 not supported and has known issues.
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: ylyco - maaliskuu 03, 2020, 12:17:07 AP
Ok, thank you vbgamer45  ;)

Have a nice day  :D
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: Sir Osis of Liver - maaliskuu 03, 2020, 05:05:13 IP
If you go above 7.1, keep an eye on your forum and server error logs, they can get quite large.
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: Chen Zhen - maaliskuu 04, 2020, 04:09:51 IP
I attempted to tell you in another thread that people can opt to use my compatibility mod.
It will replace all the deprecated native SMF code with up to date syntax.  It is updated for 2.0.17.
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: Sir Osis of Liver - maaliskuu 04, 2020, 08:44:48 IP
Missed it.  Link?
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: Chen Zhen - maaliskuu 05, 2020, 06:24:17 IP
The mod is available here:

https://web-develop.ca/index.php?action=downloads;area=stable_smf_modifications;file=48
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: Sir Osis of Liver - maaliskuu 05, 2020, 06:34:06 IP
Got it, thanks.  Does it remove the deprecated code or just hide the errors?
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: Chen Zhen - maaliskuu 05, 2020, 11:02:19 IP
It replaces all instances of create_function() with  anonymous functions in SMF default files.

It also adds a new option in your admin core features to hide or show deprecated warnings for that deprecated function (instead of hiding it by force). This way an admin can opt to disable hiding it to debug older mods.. or possibly hide them on purpose because they do not know how to fix/edit older mods still using that function.
Otsikko: Re: Does SMF 2.0.17 support PHP version above 7.1 ?
Kirjoitti: user999 - huhtikuu 06, 2020, 07:56:58 AP
Chen Zhen
this mod worked for me, thanks. I had deprecated lines on several forum tabs, they are gone now.