jaredhendrickson13 / pfsense-api

The missing REST API package for pfSense
https://pfrest.org/
Apache License 2.0
672 stars 103 forks source link

Error on install #568

Open Joenny-stack opened 3 hours ago

Joenny-stack commented 3 hours ago

Describe the bug I tried to install the package command line: and it gave me the followingwhen I try to access the IP : Parse error: syntax error, unexpected ':', expecting ')' in /etc/inc/priv/restapi.priv.inc on line 21

To Reproduce Steps to reproduce the behavior:

  1. Go to pfsense command prompt, paste the following to install package pkg-static add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-2.7.2-pkg-RESTAPI.pkg,
  2. Edit link to leave it like this for an earlier version : pkg-static add https://github.com/jaredhendrickson13/pfsense-api/releases/latest/download/pfSense-2.7-pkg-RESTAPI.pkg and execute command
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots or Response image

jaredhendrickson13 commented 2 hours ago

The error suggests you have an old version of PHP. What version of pfSense are you using?