Avoid PHP 7.1 to print warnings/errors in response#129
Conversation
After the last bump to PHP 7.* looks like the default is to throw errors and warnings on the screen even with WP_DEBUG set to false. This PR aims to fix it.
|
There's a I haven't seen the issue for myself yet, but is it happening on the Vagrant and Heroku both? I'm also not sure if that |
|
@ryanburnette thanks for the insights. I've noticed that on a couple of deployments on Heroku right after the last version updates. I don't actually use Vagrant so I'm not sure if that was affected as well and I am not sure this |
|
Hi @xyu ! After updating several WPs on heroku, one of them got lots of Warnings printing very verbose on the screen... I was able to quickly resolve by applying this PR as is. Would that be a possibility that we can use this PR to become a fix and avoid debugging on production sites? Thanks again! |
|
Hi @fagiani sorry for the extreme late in responses here, are you still getting those warnings now that Heroku's build pack is up to 7.2.7? |
|
#162 should fix this. |
After the last bump to
PHP 7.*looks like the default is to throw errors and warnings on the screen even withWP_DEBUGset tofalse. This PR aims to fix it.