Jump to content

Recommended Posts

Posted

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. 

Posted

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..

 

  • Like 2
Posted

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.

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...