Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Parse error when using GPM

Started by Muut Archive 11 years ago · 2 replies · 380 views
11 years ago

Just installed Grav and it works great. However, whenever I try to use GPM, I get this error:

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in bin/gpm on line 16

(path to GPM truncated)

From my searching, the only solution I could find for this is making sure I have the latest version of PHP. I'm using PHP 5.6, and the requirements say that it only needs 5.4 or higher. What else could be going on here?

Thanks!

11 years ago

Depending on your environment, your CLI php version could be different from the one used by apache/nginx/... Could you try executing php -v from the command line (preferably from your grav root folder).

11 years ago

Ah. All versions of php are installed on my server, but I needed to change the default CLI version. And now it works! Thanks!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1328 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago