Jump to content

Install FunctionsAPI.php error

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. 

Share this post

Link to post
Share on other sites


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

Share this post

Link to post
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

Share this post

Link to post
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.


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Robin S
      After forgetting the class name of the wonderful AdminPageFieldEditLinks module for what feels like the 100th time I decided I needed to give my failing memory a helping hand...
      Autocomplete Module Class Name
      Provides class name autocomplete suggestions for the "Add Module From Directory" field at Modules > New.
      Requires ProcessWire >= v3.0.16.

      Install the Autocomplete Module Class Name module.
      Choose the type of autocomplete options list: "Module class names from directory" or "Custom list of module class names". The latter could be useful if you regularly install some modules and would prefer a shorter list of autocomplete suggestions. The list of class names in the modules directory is generated when the Autocomplete Module Class Name module is installed. It doesn't update automatically (because the retrieval of the class names is quite slow), but you can use the button underneath when you want to retrieve an updated list of class names from the directory. The "fuzzy search" option uses custom filter and item functions for Awesomplete so that the characters you type just have to exist in the module class name and occur after preceding matches but do not need to be contiguous. Uncheck this option if you prefer the standard Awesomplete matching. Custom settings for Awesomplete can be entered in the "Awesomplete options" field if needed. See the Awesomplete documentation for more information.  
    • By Inxentas
      I love the option to export fields via the CMS, and wondered about using that export data in a module. Basicly, I'd want to configure a field using the CMS and then paste it's export data in the module code as a string, or save it in a seperate file I can read from the module code. Once I have that string as a variable or file, I'd want to run the same code the import option does... but then from my module code's install method!
      Is that possible? It would save a lot of time configuring fields through the API.
    • By Johannes P.
      Dear all,
      My name is Johannes and this is the first time I'm posting something in this forum.
      I get following error installing Processwire 2.7 in a subfolder:
      2017-09-14 13:37:27    ?    ?    Missing system template: 'permission' (in /wire/core/ProcessWire.php line 262)
      2017-09-14 13:59:35    ?   http://www.domain.com/?/  Error:     Exception: Missing system template: 'permission' (in /data/www/www.domain.com/docfinder/wire/core/ProcessWire.php line 262)
      I have used "processwire-legacy-master.zip". Please see also the screenshots from the installing process:
      Hoster is Plusserver (formerly HostEurope) on Linux and Apache/mysql.
      I have tried also to install 2.8.62 but result in the same error. 

      Any ideas? Should I try to install the most recent versin of Processwire? I have to migrate an existing page to this new server, thats why I used the version 2.7

    • By benbyf
      Done quite a bit of Googling and haven't quite worked out how one would create a field of type repeater and add fields to it via the API in a module. Anyone have any links or examples?
    • By Dee
      Today I was looking online to see what Content Management Systems are out there when I came across ProcessWire and by far the thing that caught my eye the most was the SkyScraper Demo.
      Until today I'd never heard of ProcessWire but the SkyScraper demo I saw looked so similar to a number of Google Maps based ideas I've had for such a long time.
      For example creating a website for my local town of places to eat and things to do based on their location.
      I have a shared hosting company that offers cPanel and when I checked ProcessWire 3.0.61 was available.
      Is it possible to install ProcessWire through cPanel and then add the profile / files that make the Skyscraper Demo work?  or do you have to install everything from scratch? being able to add it after installing on cPanel would be awesome, since it also automated backups, upgrades, etc.
      I'm very keen to play with the Sky Scraper Demo as I learn best when I have an existing demo site to edit and play with rather than starting from scratch with a totally blank website. Also are there any ProcessWire demo websites worth checking out that are similar to the SkyScraper demo, i.e. sites based on things on a Google Map?
  • Create New...