whitebear
whitebear

Reputation: 12445

Twig_Error_Loader - directory does not exist

I have this error when deleteing cache.

sudo php app/console cache:clear --env=prod --no-debug

 [Twig_Error_Loader]                                                                                                                                                 
  The "/Users/whitebear/CodingWorks/httproot/myapp/vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/Resources/views" directory does not exist ("/Use  
  rs/whitebear/CodingWorks/httproot/myapp/vendor/symfony/swiftmailer-bundle/Symfony/Bundle/SwiftmailerBundle/Resources/views"). 

I deleted all vendor/* and reinstalled by composer, but this error continues.

sudo php app/console cache:clear

This command shows no error.

Upvotes: 1

Views: 1597

Answers (1)

miikes
miikes

Reputation: 984

  1. Remove cache manually - rm -rf var/cache/*
  2. Clean spooled emails rm -rf SPOOL_DIRECTORY/*, by default rm -rf var/spool/*

Both from project root directory.

Upvotes: 4

Related Questions