2017-03-25 1 views
1

En fait, j'essaie d'installer un nouveau projet dans Symfony 3.2 sur mon serveur (avec Plesk).Erreur Twig lorsque j'essaie d'exécuter le projet Symfony 3 sur le serveur

Je mets PHP 7.0.17.

Lorsque je regarde mon site Web dans "app_dev", c'est OK, mais sans cela ne fonctionne pas.

Je pense qu'il ya une relation avec l'erreur quand je lance « php bin/console assetic-dump --env=prod »:

[2017-03-25 10:20:21] assetic.ERROR: The template "SecurityBundle:Collector:security.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle::layout.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.rdf.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.css.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:logs.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.rdf.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.xml.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.xml.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:traces_text.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:traces.txt.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.json.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.atom.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.atom.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.json.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:traces.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.txt.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.js.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:error.js.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:trace.txt.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:trace.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.css.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:traces.xml.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception.txt.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "TwigBundle:Exception:exception_full.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "SwiftmailerBundle:Collector:swiftmailer.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "DoctrineBundle:Collector:db.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "DoctrineBundle:Collector:explain.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Accueil/Partials/A-la-une:location.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Accueil:index.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Layout:layout.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Layout:footer.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Layout/Accueil:menu.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Layout/Accueil:header.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Layout/Accueil:layout.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationFrontBundle:Layout/Autre:layout.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LocationBackBundle:Default:index.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "WhiteOctoberBreadcrumbsBundle::breadcrumbs.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LexikFormFilterBundle:Form:form_div_layout.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "LiipImagineBundle:Form:form_div_layout.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template ":default:index.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 
[2017-03-25 10:20:21] assetic.ERROR: The template "::base.html.twig" contains an error: Catchable Fatal Error: Argument 1 passed to Twig_Filter::__construct() must be an instance of string, string given, called in /xxx/vendor/twig/twig/lib/Twig/Extension/Core.php on line 139 and defined 

Quand je recherche une solution, je trouve que je dois mettre PHP 7.0.17. Mais c'est déjà fait.

Quelqu'un peut-il m'aider?

Merci d'avance.

Répondre

3

Plesk PHP - versions différentes ont PHP - executables:

/opt/plesk/php/5.2/bin/php -v 
/opt/plesk/php/5.3/bin/php -v 
/opt/plesk/php/5.4/bin/php -v 
/opt/plesk/php/5.5/bin/php -v 
/opt/plesk/php/5.6/bin/php -v 
/opt/plesk/php/7.0/bin/php -v 
/opt/plesk/php/7.1/bin/php -v 

Pls. utilisez le chemin de commande FULL, car votre commande "php ..." sans le chemin d'accès complet sera exécutée avec votre version standart, vendor PHP (c.-à-d./usr/bin/php)