-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Warning on cache:warmup with empty var/cache dir #27234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Can you share some steps to reproduce the issue? I just did this but failed to reproduce:
|
Yes, output is ok to console. Try to add rollbar or set error handler. |
So, this is a silenced error, there's no bug here, that's how things work... |
I am going to close as explained. |
Hum, we can still prevent the notice in the usual case, see #27249 |
fabpot
added a commit
that referenced
this issue
May 18, 2018
…tice (nicolas-grekas) This PR was merged into the 3.4 branch. Discussion ---------- [HttpKernel] do file_exists() check instead of silent notice | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27234 | License | MIT | Doc PR | - Commits ------- f8cde70 [HttpKernel] do file_exists() check instead of silent notice
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.1.x
Description
Running
bin/console cache:warmup
on empty cache dir triggers error reporting to rollbar, really annoying.How to reproduce
var/cache
dirbin/console cache:warmup
Possible Solution
Do NOT trigger E_WARNING.
Additional context
symfony/src/Symfony/Component/HttpKernel/Kernel.php
Lines 531 to 540 in 226e2f3
The text was updated successfully, but these errors were encountered: