Jump to content

Install FunctionsAPI.php error


gregg
 Share

Recommended Posts

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

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

  • Like 4
Link to comment
Share on other sites

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

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
 Share

×
×
  • Create New...