ulearnpro / ulearn

ULEARN - Open Source(FREE) LMS script in Laravel 5.8 and ReactJS 16.9
https://www.ulearnpro.com
MIT License
635 stars 290 forks source link

Unsupported strict types #10

Open fadlisaad opened 4 years ago

fadlisaad commented 4 years ago

After following the instruction, all has been completed and expect it to run but found out this error in the log:

PHP Warning:  Unsupported declare 'strict_types' in /home/app/vendor/nette/di/src/compatibility.php on line 8

PHP Warning:  Unsupported declare 'strict_types' in /home/app/vendor/nette/di/src/DI/Config/Adapter.php on line 8

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

Appreciate your kind help

rafaelmb commented 4 years ago

Are you running php 7? Ulearn needs at least 7.1 to run and strict_types was released in 7.0 I have searched around and found some weird missing extensions related to this problem, specially mb_string. You shoud check system requirements.