PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, December 30, 2021

[FIXED] Yii - 'white screen of death', debugging tips

 December 30, 2021     debugging, frameworks, php, yii     No comments   

Issue

I have a staging server running a Yii application that now gives a 'white screen of death'. I cannot see anything being ouputted to the screen (or even the source code when 'view source'), locally the same code runs without any issues.

Can anyone suggest a good routine to debug 'white screen of death' within a Yii application?


Solution

Getting a blank screen in yii is mostly because error_reporting is off. Put

error_reporting(-1);
ini_set('display_errors', true);

in index.php should get your output back.

Note that you can always look in application.log and apaches error.log for informations when you don't have some output.



Answered By - chris---
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing