gregg Posted December 30, 2018 Share Posted December 30, 2018 While trying to install 3.0.123, i encountered the following error: Parse error: syntax error, unexpected '[' in /home/naucom5/public_html/wire/core/FunctionsAPI.php on line 469 In cPanel, i extracted the zip file to 'public_html', which created the directory 'processwire-master', and then moved the files from 'processwire-master' to 'public_html' (which previously had 1 unrelated directory). Installation went well choosing Uikit profile, including connecting to database. Compatibility check ok (mod_rewrite error cleared after recheck), successful database connection, config.php saved, unchecked a few cleanup items, then the error message. Any suggestions appreciated. Link to comment Share on other sites More sharing options...
flydev Posted December 30, 2018 Share Posted December 30, 2018 Hi, Choose / install a newer PHP version in cPanel. Your current version look too old (below 5.4) and do not support short array syntax.. 2 Link to comment Share on other sites More sharing options...
Robin S Posted December 30, 2018 Share Posted December 30, 2018 Welcome @gregg, Flydev is right that upgrading your PHP will solve the issue, but what you've raised does count as a bug because the minimum PHP version required for ProcessWire is 5.3.8: http://processwire.com/about/requirements/ I opened a GitHub issue here: https://github.com/processwire/processwire-issues/issues/777 4 Link to comment Share on other sites More sharing options...
gregg Posted December 31, 2018 Author Share Posted December 31, 2018 Thanks for your replies, that was the problem. The server information page says PHP 7.0.32, but <?php echo 'Current PHP version: ' . phpversion() ?> returned 5.3.29. I changed the PHP Configuration in cPanel>Software and the install completed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now