chicken burger
chicken burger

Reputation: 774

Symfony - botched project with cache:clear

I have a little problem concerning cache:clear following a tutorial that told me if I have an error while running the command, I could delete the dev folder by hand in var/cache/dev So when running the command to clear the cache, I got this error:

[Symfony\Component\Filesystem\Exception\IOException]                                  
  Failed to remove file "/var/www/html/Symfony/var/cache/de~/profiler/26/75/2d7526":

So as the error appeared I decided to delete the dev folder in /var/dev

But then I couldn't go anymore on my browser checking if everything worked fine. This error came up.

RuntimeException in ClassCollectionLoader.php line 309: Failed to write cache file "/var/www/html/Symfony/var/cache/dev/classes.php".

I have no idea as how to make it work again. My dev and prod cache folders are back in my cache folder as expected, but that doesn't do anything. It won't work anymore.

So I'm a bit desperate.

Upvotes: 0

Views: 306

Answers (1)

Alvin Bunk
Alvin Bunk

Reputation: 7764

Have you setup correctly the file permissions for the var folder?

See this link: http://symfony.com/doc/current/setup/file_permissions.html

Upvotes: 1

Related Questions