Yii Framework Forum: Empty page (no response) after authenticate() - Yii Framework Forum

Jump to content

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

Empty page (no response) after authenticate() Rate Topic: -----

#1 User is offline   Trejder 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,257
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 15 February 2011 - 10:18 AM

Hi there,

I have a strange problem and don't know where or what for to look for.

When I run my Yii application on a new serwer I'm getting empty page right after user login (Firefox shows blank page, Chrome reports ERR_EMPTY_RESPONSE).

I've found out that problem lies in the line:

$user = Users::model()->find( 'LOGN=?', array( $username ) );

of authenticate() function of class UserIdentity declared in UserIdentity.php in protected/components.

I've also found out that source of this problem is that there was application installed on a new server, but now database preparation was done.

My question is, why there is no exception in situation like that and how can I catch situation like that to display any message to user to inform him with anything except a blank, empty page?

Thanks and Cheers,
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!

#2 User is offline   Gustavo 

  • Master Member
  • Yii
  • Group: Moderators
  • Posts: 916
  • Joined: 27-July 10
  • Location:Curitiba - Brasil

Posted 15 February 2011 - 10:40 AM

Its the config of your database connection
I had the same problem a couple days ago

EDIT: sorry, didnt read the post untill the end to answer
Yea, I agree .. Its pretty weird and should thrown some exception

This post has been edited by Gustavo: 15 February 2011 - 10:45 AM

translate modue - module to handle translations
multiActiveRecord - db selection in models
redisCache - redis cache component
mpCpanel - interact with cpanel api
mUploadify - use uploadify uploader in your application

Gustavo Salomé Silva

#3 User is offline   jolo 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-March 12

Posted 12 March 2012 - 03:55 AM

Trejder, did you solve this problem? I have same problem. When i try to log in, i see blank page, or in chrome ERR_EMPTY_RESPONSE).

#4 User is offline   sinus 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 12-March 11
  • Location:Germany

Posted 05 April 2014 - 11:45 AM

Hello, i've got that problem, too.
Does someone solved it already?


#5 User is offline   Ganesh Jha 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 10-September 17

Posted 15 December 2017 - 01:41 AM

did anyone solve this issue ? i have the same problem with all the browsers.

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