Jump to content


Photo

Yii "white page of death"

yii

  • Please log in to reply
2 replies to this topic

#1 Darghon

Darghon

    Advanced Member

  • Members
  • PipPipPip
  • 75 posts

Posted 23 April 2013 - 03: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
 
Thx

#2 hamza

hamza

    Advanced Member

  • Members
  • PipPipPip
  • 320 posts

Posted 10 July 2013 - 06:46 AM

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

 



#3 web_craftsman

web_craftsman

    Advanced Member

  • Members
  • PipPipPip
  • 50 posts
  • LocationUkraine

Posted 11 July 2013 - 02: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

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com