Yii Framework Forum: Blank White Page - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Blank White Page Yii fails to start app Rate Topic: -----

#1 User is offline   bwls103 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 28-November 13

  Posted 27 December 2013 - 11:31 PM

This is a clone of a working repository and it shows nothling but a blank page.

I can verify that it is running index.php by displaying a message just before the launching of the app.

<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/../../framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
$shortcuts=dirname(__FILE__).'/protected/shortcuts.php';
$globals=dirname(__FILE__).'/protected/globals.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($shortcuts);
require_once($globals);
require_once($yii);
//echo 'all is ok here.';
//die();
Yii::createWebApplication($config)->run();


PHP has display errors = on and the error_reporting is set to E_ALL

I never get any message or error, but the apache access log shows:

127.0.0.1 - - [27/Dec/2013:22:22:52 -0600] "GET /netstudy/ HTTP/1.1" 500 9787 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"
127.0.0.1 - - [27/Dec/2013:22:22:52 -0600] "GET /favicon.ico HTTP/1.1" 200 7782 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"
127.0.0.1 - - [27/Dec/2013:22:22:52 -0600] "GET /favicon.ico HTTP/1.1" 200 7782 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0"

Which looks like a 500 error but I am not positive about this. Not quite sure where to look for more clues.

This app runs just fine on other PC's.

Thanks.
Bill S.
0

#2 User is offline   PatrickM 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 14-July 12

Posted 28 December 2013 - 06:25 AM

Any error messages in Yii's log file (folder "runtime")?
0

#3 User is offline   bwls103 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 28-November 13

Posted 28 December 2013 - 06:38 AM

Thanks for the assistance.

No. Nothing is in the runtime folder.
0

#4 User is offline   bwls103 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 28-November 13

Posted 29 December 2013 - 04:50 PM

Just to finish this one off, it turned out to be a failed db connection that resulted in a blank screen.

Thanks for you help.
Bill S
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users