THELIA Forum

Welcome to the THELIA support and discusssion forum

Announcement

Rejoignez la communauté sur le Discord Thelia : https://discord.gg/YgwpYEE3y3

Offline

#1 Error after composer update

(18-09-2018 09:50:33)


PHP 7.0.31
Thelia version 2.3.3

I had run 

composer require "symfony/cache": "~3.1.0"
but i get  this

php Thelia cache:clear -env=dev
or
php Thelia cache:clear -env=dev

```#!/usr/bin/env php
PHP Fatal error:  Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Parse error: syntax error, unexpected '=', expecting '{' in /var/www/cache/nv=dev/CoreNv=devDebugProjectContainer.php:15
Stack trace:
#0 /var/www/core/vendor/symfony/http-kernel/Kernel.php(131): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#1 /var/www/core/lib/Thelia/Core/Thelia.php(219): Symfony\Component\HttpKernel\Kernel->boot()
#2 /var/www/core/lib/Thelia/Core/Application.php(37): Thelia\Core\Thelia->boot()
#3 /var/www/core/Thelia(52): Thelia\Core\Application->__construct(Object(Thelia\Core\Thelia))
#4 /var/www/Thelia(5): include('/var/www/core/T...')
#5 {main}
  thrown in /var/www/cache/nv=dev/CoreNv=devDebugProjectContainer.php on line 15```


But if i run:    php Thelia cache:clear     works fine.

Br., Lucian

Last edited by lucian.criste (18-09-2018 10:01:11)

Offline


The env argument is -e, --env (double dash), not -env

php Thelia cache:clear --env=dev
php Thelia cache:clear -e dev

OpenStudio Toulouse

Offline


Thank's!