Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Install problem with /bin/grav install

Started by Hans van Schooten 7 years ago · 4 replies · 1277 views
7 years ago

Hello, after trying to install grav through git on a synology NAS, i get this error with the last step:
PHP Warning: Unsupported declare 'strict_types' in /volume1/web/grav/vendor/nette/di/src/compatibility.php on line 8

Warning: Unsupported declare 'strict_types' in /volume1/web/grav/vendor/nette/di/src/compatibility.php on line 8PHP Warning: Unsupported declare 'strict_types' in /volume1/web/grav/vendor/nette/di/src/DI/Config/Adapter.php on line 8

Warning: Unsupported declare 'strict_types' in /volume1/web/grav/vendor/nette/di/src/DI/Config/Adapter.php on line 8
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /volume1/web/grav/vendor/nette/di/src/DI/Config/Adapter.php on line 22

Parse error: syntax error, unexpected ':', expecting ';' or '{' in /volume1/web/grav/vendor/nette/di/src/DI/Config/Adapter.php on line 22

Does anybody have any idea on how to resolve this???

7 years ago

Hi and welcome! It's helpful to add information about your setup when posting questions like this.

This looks very much like a PHP version or environment error to me. Which PHP version are you using and are there any non-standard PHP options being used that you know of?

(maybe most people know your setup from "synology NAS" but not me)

7 years ago

I use php7.3.8 on my synology DS211+ i use nginx and followed exactly the instructions in the grav manual. I had to install the composer separate and while installing it said it couldn’t use the cache because it wasn’t readable/ writable.

No apache installed and it was a clean DSM install, and than followed the grav instructions

7 years ago

I've been trying this on a DS218, after many failures it looks like even though I had installed PHP7.2 (in my case), the DSM software uses PHP5.6 and grav uses that despite me having set all options in Web Station to 7.2. I went so far as to link the /bin/php executable on the NAS to the 7.2 executable which seemed to work for grav but broke DSM. I don't recall how I diagnosed this but somewhere in the grav logs it will tell you that it's not got the right version.

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 weeks ago
8 228 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 160 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago