Closed (fixed)
Project:
Persistent Login
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2007 at 16:33 UTC
Updated:
28 Jul 2009 at 07:17 UTC
I get a completely blank screen in FF & IE6 if I do the following, while having 'Persistent Login' enabled.
1. Login and check the "remeber user" checkbox.
2. Logout.
At this point I get a blank screen. Not even I can't login back, but I don't see absolutely anything. The returned source of the webpage is 0 byte long. This keeps happening even if I restart the browser, or the webserver.
Cookies are enabled, and
ini_set('session.cookie_lifetime', 0);
is set in settings.php, just as the manual says.
Comments
Comment #1
bjaspan commentedDo you have access to your server error logs? If so, do this:
grep Error /path/to/error_log | tail
and send me the results.
Comment #2
notabenem commentedThis is in the error log of Apache:
[Mon Feb 05 19:35:37 2007] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Mon Feb 05 19:35:37 2007] [notice] Server built: Jul 27 2006 16:49:49
[Mon Feb 05 19:35:37 2007] [notice] Parent: Created child process 2520
[Mon Feb 05 19:35:38 2007] [notice] Child 2520: Child process is running
[Mon Feb 05 19:35:38 2007] [notice] Child 2520: Acquired the start mutex.
[Mon Feb 05 19:35:38 2007] [notice] Child 2520: Starting 250 worker threads.
[Mon Feb 05 19:35:38 2007] [notice] Child 2520: Starting thread to listen on port 8080.
as you see, there is no error.
Access Log:
127.0.0.1 - - [05/Feb/2007:23:35:41 +0100] "GET /mysite HTTP/1.1" 301 240
127.0.0.1 - - [05/Feb/2007:23:35:41 +0100] "GET /mysite/ HTTP/1.1" 200 4025
.. and nothing else. though the screen is blank.
Comment #3
notabenem commentedJust to clear things up:
the "persistent_login" table is completely empty, and there is no cookie in the browser, the cache has also been cleared. Still, the screen is blank.
Comment #4
bjaspan commentedConnect to your database and run the SQL command
DELETE FROM system WHERE name="persistent_login";
Does your site come back?
Please post the persistent_login.module file you are using as an attachment to this issue.
Comment #5
notabenem commentedDELETE FROM drupal5_system WHERE name="persistent_login";
---
(1 row(s) affected)
(0 ms taken)
=> The site is up & running again. No blank screen. If I enable the module again, and do the procedure above, I end up with the same blank screen :(
Comment #6
notabenem commentedOne more thing I have noticed: by doing this the module is not really disabled. The checkbox to "remeber me" is in fact on the for, although it is not working, has no effect.
In Administer/modules I see "Persistent Login" as disabled. Enabling it gives an error message that "drupal5_persistent_login" table already exists, but I guess this is minor issue, since the application was not disabled properly.
However, enabling it, and doing the proc (login/logout) results in the blank screen ... so what's wrong?
Comment #7
Elmer Harris commentedI can't get my admin pages back either. Admin page is blank. I increased memory to 28m in php.ini, settings.php, and .htaccess. Restarted Apache but admin section still blank.
thanks in advance for any help
Comment #8
bjaspan commentedPlease post here the second line of the file persistent_login.module file on your server. It starts "// $Id:".
Is it possible for me to log in to your web server? That will enable me to find the problem quickly.
Comment #9
bjaspan commentedOne other thing. Try turning off page caching on the administer > Site Configuration > Performance menu. Does that make a difference?
Comment #10
notabenem commentedMy webserver is unfortunately not public, at this moment is running only on my notebook. I will try the cache thing and send you the line you requested this evening. Thanks.
Comment #11
notabenem commented// $Id: persistent_login.module,v 1.9.2.6 2007/01/30 14:13:56 bjaspan Exp $
Disabling cacheing (was set to NORMAL, not aggressive) HELPS, I can't recreate the issue if the caching is disabled.
Comment #12
bjaspan commentedWell, I fixed this bug so I'm not sure why it is still happening to you. Next idea: Put the lines
ini_set('error_reporting', E_ALL);
error_log('This error is from settings.php.');
at the end of your settings.php file (in sites/default or which sites/ dir you are using). Load any page, and then check whether your error_log file contains "This error is from settings.php." If it does, re-enable Persistent Login, reproduce the bug, and check your error_log again for errors.
Comment #13
notabenem commentedDid as you adviced, but there was no error in the error log except this:
[Thu Feb 08 22:15:23 2007] [error] [client 127.0.0.1] This error is from settings.php., referer: http://localhost:8080/mysite/
Comment #14
bjaspan commentedWeird.
I will need to contact you offline about this. Please send me a message via my contact form at http://jaspan.com so I get your email address.
Comment #15
notabenem commentedcheck your email at jaspan.com
Comment #16
bjaspan commentedFixed in PL 1.2.
Comment #17
bjaspan commented