2017-08-18 9 views
0

に書き込むことができませんメッセージ」がキャッチされない例外「のRuntimeExceptionに」私がしようと、私はこのエラーが発生しているサーバー上の私のウェブサイトを展開行いますキャッシュディレクトリ

Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to write in the cache directory (/home/e120223/public_html/ReclyZone/app/cache/prod) ' in /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:597 Stack trace: #0 /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(510): Symfony\Component\HttpKernel\Kernel->buildContainer() #1 /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(133): Symfony\Component\HttpKernel\Kernel->initializeContainer() #2 /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(182): Symfony\Component\HttpKernel\Kernel->boot() #3 /home/e120223/public_html/ReclyZone/web/app.php(16): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #4 {main} thrown in /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php on line 597

私はすでに明確なキャッシュを持っていますが、何も動作、行いますあなたは考えがありますか?キャッシュディレクトリに

+1

を参照してください – Liam

+1

https://symfony.com/doc/current/setup /file_permissions.html – Cerad

+0

キャッシュディレクトリのパーミッションが正しいことを確認し、後で 'cache:clear --no-warmup&cache-warmup'を使用してランダムエラーを回避します。 – yceruto

答えて

0

chmod -R 777問題は、あなたがそのキャッシュディレクトリに書き込み権限を持っていないということです読み、

+1

注意してください。これにより、運用サーバーで重大なセキュリティ問題が発生する可能性があります。より微妙なアプローチが良いかもしれません。 https://symfony.com/doc/current/setup/file_permissions.html – Cerad

+0

@Yceruto chmodはウィンドウ内に存在しませんか? –

+0

@PierreColart https://superuser.com/questions/106181/equivalent-of-chmod-to-change-file-permissions-in-windows – yceruto

関連する問題