Jump to content


Yii "white page of death"


  • Please log in to reply
2 replies to this topic

#1 Darghon

  • Members
  • PipPipPip
  • Advanced Member
  • 83 posts

Posted 23 April 2013 - 08:12 AM

Hi all,
I'm developing a application with the Yii framework, and implemented a record security by adding 3 functions to all models (canIView, canIEdit and canIDelete).
All models extend the same basemodel class, and all crud interfaces are simular.
For some reason whenever I try to view the cruds of the models "Product" or "Order" I get a white page, and no logs anywhere...
Debugging some I can echo lines upto the following line in code
echo "before";
$model = Product::model();
echo "after";
Before is shown, but not after.
The same code on a different model like "Division" does work...
Both models extend the same class (AuditModel) which implements several security functions and populates audit fields etc...
Can anyone help me debug this... or give an indication where I can find anything to point me towards any error in the code...
Yii application log is empty
Apache log is empty

#2 hamza

  • Members
  • PipPipPip
  • Advanced Member
  • 321 posts

Posted 10 July 2013 - 11:46 AM

No matter which framework we use Enabling error_reporting and display_errors always work.:)


#3 web_craftsman

  • Members
  • PipPipPip
  • Advanced Member
  • 64 posts
  • LocationUkraine

Posted 11 July 2013 - 07:14 AM

have not you forgotten to implement model  static function in your child AR class?

It is described here:

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users