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

bjaspan’s picture

Do you have access to your server error logs? If so, do this:

grep Error /path/to/error_log | tail

and send me the results.

notabenem’s picture

This 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.

notabenem’s picture

Just 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.

bjaspan’s picture

Connect 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.

notabenem’s picture

DELETE 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 :(

notabenem’s picture

One 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?

Elmer Harris’s picture

I 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

bjaspan’s picture

Please 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.

bjaspan’s picture

One other thing. Try turning off page caching on the administer > Site Configuration > Performance menu. Does that make a difference?

notabenem’s picture

My 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.

notabenem’s picture

// $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.

bjaspan’s picture

Well, 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.

notabenem’s picture

Did 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/

bjaspan’s picture

Weird.

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.

notabenem’s picture

check your email at jaspan.com

bjaspan’s picture

Status: Active » Fixed

Fixed in PL 1.2.

bjaspan’s picture

Status: Fixed » Closed (fixed)