Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: grandseb59 on August 03, 2020, 01:36:21 PM

Title: syntax error in 2.0.17
Post by: grandseb59 on August 03, 2020, 01:36:21 PM
hello,
I just uploaded the brand new 2.0.17 package on my new server, and after extracting it from the archive, it gives me syntax errors, why now when on the other server it was working fine???

Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /home/******/public_html/index.php on line 114

Parse error: syntax error, unexpected T_FUNCTION in /home/******/public_html/install.php on line 39
Title: Re: syntax error in 2.0.17
Post by: Arantor on August 03, 2020, 01:39:16 PM
You have a very old version of PHP on your server... would guess PHP 5.2 from the error message. You need 5.4 or higher to run 2.0.17.

(PHP 5.2 went unsupported by the PHP team in 2011)
Title: Re: syntax error in 2.0.17
Post by: grandseb59 on August 03, 2020, 01:45:06 PM
ok I had a doubt because to change the php selector it's much more complicated than on the other server, so I stayed in 5.2 despite it's marked 7.3 in front of my domains.
Thanks a lot
Title: Re: syntax error in 2.0.17
Post by: Arantor on August 03, 2020, 01:55:17 PM
Yeah, it won't work on 5.2 any more, needs to be at least 5.4, 5.6 is better, SMF 2.0 supports up to 7.2.