My vhost entry has the DocumentRoot set to the base of the squirrelmail
distribution directory (I rename it, of course, but it is essentially put
into squirrelmail-1.2.11/). The index.php file in that root directory
simply does a header redirect to src/login.php. As I said before, this
has always worked correctly until this version. I have not made any
changes to my vhost config in almost a year. This worked correctly with
v1.2.10, so something has to have changed between the two versions to
cause the error.
Here's what index.php w/ the redirect looks like from v1.2.11:
<?php
/**
* index.php -- Displays the main frameset
*
* Copyright (c) 1999-2002 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Redirects to the login page.
*
* $Id: index.php,v 1.13 2002/02/19 15:05:03 philippe_mingo Exp $
*/
header("Location: src/login.php\n\n");
exit();
?>
> Hmmm, then you're not running anything like Password_Forget. That is
> very strange behavior. I have a patch for the login page that
> determines the cursor focus in a more flexible manner, which I am
> including below, however, since yours works as is on the 2nd try, it
> would seem to be more of an issue of something involved in how you are
> redirecting to the login page. This behavior doesn't happen when you
> open a browser and go straight to the login page? How exactly is that
> redirection happening?
>
> Here is the change to /src/login.php in case you want to give it a try:
>
>
> # diff -u login.php.old login.php
> --- login.php.old Fri Jan 31 02:41:50 2003
> +++ login.php Fri Jan 31 03:21:58 2003
> @@ -98,7 +98,16 @@
> "<!--\n".
> " function squirrelmail_loginpage_onload() {\n".
> " document.forms[0].js_autodetect_results.value = '" .
> SMPREF_JS_ON . "';\n".
> - ' document.forms[0].elements[' . (isset($loginname) ? 1 :
> 0) . "].focus();\n".
> + " var textElements = 0;\n".
> + " for (i = 0; i < document.forms[0].elements.length; i++)
> {\n".
> + " if (document.forms[0].elements[i].type == \"text\" ||
> document.forms[0].elements[i].type == \"password\") {\n".
> + " textElements++;\n".
> + " if (textElements == " . (isset($loginname) ? 2 : 1)
> . ") {\n".
> + " document.forms[0].elements[i].focus();\n".
> + " break;\n".
> + " }\n".
> + " }\n".
> + " }\n".
> " }\n".
> "// -->\n".
> "</script>\n";
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]] On Behalf Of
>> Benjamin Tomhave
>> Sent: Saturday, February 15, 2003 12:11 PM
>> To: [EMAIL PROTECTED]
>> Subject: RE: [SM-USERS] load w/ errors under 1.2.11
>>
>> The logo appears to reload and then yes, it goes directly to the
> username
>> field.
>>
>> > When you reload, does the focus go correctly to the username field?
>> >
>> >> -----Original Message-----
>> >> From: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED]] On Behalf
> Of
>> >> Benjamin Tomhave
>> >> Sent: Friday, February 14, 2003 10:27 PM
>> >> To: [EMAIL PROTECTED]
>> >> Subject: [SM-USERS] load w/ errors under 1.2.11
>> >>
>> >> Hello,
>> >>
>> >> Everytime an initial connection is made to the SquirrelMail front
> page
>> >> (src/login.php), it loads with the below error. Hitting refresh
>> > causes
>> >> the error to go away. This is for SquirrelMail 1.2.11 running on
> RH8
>> > w/
>> >> PHP 4.2.2 with "register_globals" set to "On" and apache2.
> Connecting
>> >> browser is IE6 on Win2k. I should note that this issue just
> started
>> > with
>> >> 1.2.11 and did not seem to exist under 1.2.10. I'm wondering if
> the
>> > error
>> >> is related to the "fix" that was implemented addressing the global
>> > vars
>> >> issue, or perhaps one of the other fixes. I shoudl also note that
> my
>> >> webmail vhost drops directly into the root of the squirrelmail
>> distribution directory (renamed, of course).
>> >>
>> >> Anyway, here's the error:
>> >>
>> >> Line: 10
>> >> Char: 5
>> >> Error: Can't move focus to the control because it is invisible, not
>> enabled, or of a type that does not accept the focus.
>> >> Code: 0
>> >> URL: http://webmail.sofast.net/src/login.php
>> >>
>> >> You'll note that this error corresponds to the cursor placement.
> On
>> > the
>> >> failure, the cursor does not jump to the Name: field like it
> should.
>> >>
>> >> Thank you,
>> >>
>> >> -ben
>> >>
>> >> --
>> >> Benjamin Tomhave, Senior Systems Engineer
>> >> [EMAIL PROTECTED]
>> >> Sofast Communications www.sofast.net
>> >>
>> >>
>> >>
>> >>
>> >> -------------------------------------------------------
>> >> This SF.NET email is sponsored by: FREE SSL Guide from Thawte are
>> you planning your Web Server Security? Click here to get a FREE
>> Thawte SSL guide and find the answers to all your SSL security
>> > issues.
>> >> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
>> >> --
>> >> squirrelmail-users mailing list
>> >> List Address: [EMAIL PROTECTED]
>> >> List Archives:
>> > http://sourceforge.net/mailarchive/forum.php?forum_id=2995
>> >> List Info:
>> > https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>>
>>
>> --
>> Benjamin Tomhave, Senior Systems Engineer
>> [EMAIL PROTECTED]
>> Sofast Communications www.sofast.net
>>
>>
>>
>>
>> -------------------------------------------------------
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> --
>> squirrelmail-users mailing list
>> List Address: [EMAIL PROTECTED]
>> List Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=2995
>> List Info:
> https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
--
Benjamin Tomhave, Senior Systems Engineer
[EMAIL PROTECTED]
Sofast Communications www.sofast.net
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users