I have a problem, that I cannot solve on my own. After updating to the most recent framework version I noticed that PHP wouldn’t throw me any errors on my development environment. Checked error_reporting etc., everything correct.
Then I fooled around with the CLogRouter routes and after adding “error” to my CWebLogRoute’s levels, errors would be shown in browser again. Huh? And if I remove the CWebLogRoute route, remove “error” again or add “trace” (because I really like the trace feature…) to it’s levels no errors are shown!!! I also tried adding another CWebLogRoute route, tried with CFileLogRoute, etc. nothing works…
In over a year I never had this problem before. I need your help.
Has anyone an idea? I can’t even see PHP warnings in my Yii application anymore… it’s somehow related to the “log” component, but I can’t get my head around it.
I have spent hours trying to find out what is causing this issue.
error_reporting(E_ALL);
ini_set(‘display_errors’, ‘on’);
define(‘YII_DEBUG’, true);
I only get a blank page instead of a parsing errors with these settings if I don’t have CWebLogRoute’s levels set to “error” excluding “trace”. Right now I’m working with constantly editing the config on every blank page to see parse errors so I can keep the “trace” feature in.