Parse error: syntax error, unexpected 'ARRAY' (T_ARRAY) in /var/www/heimatvoll-api/api/src/core/Directus/Config/Schema/Schema.php on line 80
I tried it with a fresh boilerplate afterwards too but the error stays the same.
I also first had manually edited the api.php, and got the error, i deleted it, and tried it via commands. Same result.
Seeing something along these lines:
{"error":{"code":3,"message":"Unauthorized request"}}
Seeing this error when calling the API /
Parse error: syntax error, unexpected 'ARRAY' (T_ARRAY) in /var/www/heimatvoll-api/api/src/core/Directus/Config/Schema/Schema.php on line 80
Machine ID: 0f271d0350d94e188a7571ecd598cf54
Boot ID: 81789752772840dba45e624f4da5a675
Virtualization: kvm
Operating System: Ubuntu 18.04.1 LTS
Kernel: Linux 4.15.0-43-generic
Architecture: x86-64
@edenprojectde - May I know the version of API which you have been used?
It seems like you are using v2.5.0. Kindly upgrade your API version with v2.6.0. It will not reproduce over there :)
I've seen this a few times, commonly the answer is "Oh it says it's 7.2+ but it was actually still 5.6... my bad". Please ensure this is actually correct. :eyes: Ensure you're checking the apache version and not CLI version or something.
Agree — maybe this will help: https://github.com/directus/api/issues/1315
Yeah okay you are probably right, i just saw that there is an fpm on the server im sshing into; its using Version 5.6 of PHP instead of the CLI 7.3.
My bad guys, i will try to fix this. Sorry for making an Issue on this :')
At least i now know about what error i need to expect if php is too old :'D
No problem! Thanks for following up. 😊
Most helpful comment
Yeah okay you are probably right, i just saw that there is an fpm on the server im sshing into; its using Version 5.6 of PHP instead of the CLI 7.3.
My bad guys, i will try to fix this. Sorry for making an Issue on this :')
At least i now know about what error i need to expect if php is too old :'D