AndyF Posted November 30, 2020 Posted November 30, 2020 (edited) Maybe to the init.php file, I'm not sure. Although it did not catch me out, one site I was looking at had by some chance switched back to php7.0 , this turned out to be due to replacing the 'use version x' in a .htaccess file being lost. Anyway, currently if you attempt to run (run not install) the suite on say php7.0.x or lower, you tend to end up with a blank page or if you are lucky an error such as... Parse Error : Unexpected '?', expecting variable (T_VARIABLE) init.php on line 1413 ... or something quite similar to that. This may be very confusing to some, assuming they see it and/or check their logs. My suggestion here: A simple addition perhaps in index.php or init.php with something along the lines of using phpversion() may help quite a bit here as if its treated like the requirements checker then the cause is shown, something the end user may be able to fix themselves, otherwise they'd end up with a ticket and the support tech would possibly direct them back to their host to fix, causing the client two tickets one at 'each' whereas with the error shown they may know to contact their host about it. Thanks for consideration. 🙂 Edited November 30, 2020 by AndyF Typo fixed
Morrigan Posted November 30, 2020 Posted November 30, 2020 It does this already. "You are using an older version of PHP we recommend...." and it shows in the admin notifications. AndyF 1
AndyF Posted November 30, 2020 Author Posted November 30, 2020 Oh I'll admit I don't think I'd checked the ACP out, the front end was completely blank and in the logs themselves I'd found said error and it sprung to mind what the likely cause was, so I stopped looking elsewhere. Tested on localhost dev with display_errors enabled (purposely at php7.0.3) and it displayed said error but that was expected.
Morrigan Posted December 1, 2020 Posted December 1, 2020 7.0 also hasn’t been supported for a while for anyone curious. 7.1 was minimum with 7.3 recommended. This is for anyone curious about current version. AndyF 1
Recommended Posts