wikimedia-france / Lingua-Libre

LinguaLibre – Massive Open Audio Recording system
http://v1.lingualibre.fr
GNU General Public License v3.0
14 stars 5 forks source link

FatalErrorException in AppExtention.php 0 #49

Closed Lyokoi closed 6 years ago

Lyokoi commented 7 years ago

Hi there ! I git cloned and try to run the Vienna version of LinguaLibre. On localhost/app_dev.php I got this error :

screenshot from 2017-06-18 16-24-17

Any idea ?

wiese commented 7 years ago

Hi,

what you experience is a problem of dependency management, namely the lack of a composer.lock file - which leaves you with a twig version that is incompatible with AppBundle's AppExtension implementation. I can only speculate as to both, the version you have now installed, and the "correct" version which the application is meant to use. However, the error message indicates that you do have verison 1 of twig installed (getName was deprecated in 1.26 and removed in 2.0), try switching to version 2 and see if the error disappears.

You discovered a general problem (not one introduced during Vienna) and if you manage to configure your application in a satisfying way it would benefit the project if you submit the resulting composer.lock file as a PR.

Cheers

hugolpz commented 7 years ago

@Lyokoi : Did Wiese's answer solved your issue ? Can we close it ?